A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

HOW 2 VIEW THE XML SCHEMA OF AN EBC?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 7th 08, 08:48 PM posted to microsoft.public.outlook.program_vba
FARAZ QURESHI
external usenet poster
 
Posts: 14
Default HOW 2 VIEW THE XML SCHEMA OF AN EBC?

A praiseworty MVP "Ken Slovak" sure did present me with an special idea in
respect of changing the layout of a contact card with the following code:

Public Sub ConvertToDesiredBusinessCard()
Dim obj As Object
Dim oFolder As Outlook.MAPIFolder
Dim oContact As Outlook.ContactItem
Dim oModel As Outlook.ContactItem
Dim colItems As Outlook.Items
Dim i As Long
Dim lCount As Long
Dim sXML As String

Set oFolder = Application.Session.GetDefaultFolder(olFolderConta cts)
Set colItems = oFolder.Items

Set oModel = Application.ActiveExplorer.Selection.Item(1)

sXML = oModel.BusinessCardLayoutXml

lCount = colItems.Count
For i = 1 To lCount
Set obj = colitems.Item(i)
If (obj.Class = olContact) Then
Set oContact = obj
oContact.BusinessCardLayoutXml = sXML
oContact.Save
End If
Next
End Sub

However, any idea:
1. How to view the XML schemas of a default and a special card, so as to
compare the both? &
2. How to set a special background like C:\xyz.jpg for all the EBCs?
--

Best Regards,
FARAZ A. QURESHI
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Appointments shown in Active appointment View but not in Day/Week/Month View udaymg@gmail.com Outlook - Calandaring 3 March 6th 07 09:27 PM
Outlook difficulties: Unable to switch to calendar view (does not refresh right hand side view) Sid B Outlook - Calandaring 2 November 12th 06 06:09 AM
Filter/Schema to use for AdvancedSearch of Drap/Drop Files EricTempPA Outlook and VBA 0 June 29th 06 09:24 PM
Icon in Outlook contacts view (address cards view) weseral Outlook - Using Forms 1 March 9th 06 06:02 PM
View free/busy not consisten in folder/schedule view & Exclusive l Toàn Outlook - Calandaring 0 February 9th 06 02:20 PM


All times are GMT +1. The time now is 10:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.