Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and Outlook and Signature
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01414961
Message ID:
01415228
Views:
84
Cool stuff Sergey. Thanks.

>In case of multiple signatures you'll need to now which one is default. Only way I found is through Word automation. Tested in Outlook 2003 and later.
>
>loWord = CREATEOBJECT("Word.Application")
>loEmOpt = loWord.EmailOptions
>loOlSig = loEmOpt.EmailSignature
>lcSigFileName = ALLTRIM(loOlSig.NewMessageSignature )
>* Text signature
>lcPathAndFile = lcFilePath + lcSigFileName + ".txt"
>IF FILE(lcPathAndFile )
>	lcTextIn = FILETOSTR(lcPathAndFile  )
>	
>	IF  LEFT( lcTextIn ,2) = 0hFFFE
>		lcTextIn = SUBSTR(lcTextIn,3)		
>	ENDIF	
>	
>	lcFileContent = STRCONV(lcTextIn ,6)	
>ENDIF
>
>
>>
>>Not that I know of (assuming you are using automation or some such thing with outlook here). You can however just go ahead and read it from one of the files in the following location...
>>
>>C:\Documents and Settings\MyUserName\Application Data\Microsoft\Signatures\
>>
>>or Vista...
>>
>>C:\Users\MyUserName\AppData\Roaming\Microsoft\Signatures\
>>
>>... plenty of posts around on getting the path to special windows folders, GetEnv() will give you the UserName... then just read the format (rtf, txt, html) you want and plug it into your email (Microsoft's html is bloated like always of course).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform