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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

printing attachment name in Word



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 6th 06, 11:14 AM posted to microsoft.public.outlook.program_forms
Martin
external usenet poster
 
Posts: 87
Default printing attachment name in Word

I'm using the export-to-Word solution to printing Outlook forms in version
2003. Is there a way to see the attachments listed in the Word template?
The text in the Message (or Body) field comes across fine but just shows a
gap where the attachments are - confusing for users who are used to seeing
everything on the printout.

Thanks.
Ads
  #2  
Old April 6th 06, 11:38 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default printing attachment name in Word

You could write code to iterate the Attachments collection, put all the names in a list, then insert that information into your Word document at a bookmark you've set up for that purpose, just as you would the Body property, something like:

strAtts = ""
For Each att in Item.Attachments
strAtts = strAtts & att.DisplayName & vbCrLf
Next
objDoc.Bookmarks("Attachment_List").Range.InsertAf ter strAtts

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
I'm using the export-to-Word solution to printing Outlook forms in version
2003. Is there a way to see the attachments listed in the Word template?
The text in the Message (or Body) field comes across fine but just shows a
gap where the attachments are - confusing for users who are used to seeing
everything on the printout.

Thanks.

  #3  
Old April 7th 06, 10:46 AM posted to microsoft.public.outlook.program_forms
Martin
external usenet poster
 
Posts: 87
Default printing attachment name in Word

Thanks very much Sue - works like a dream...

"Sue Mosher [MVP-Outlook]" wrote:

You could write code to iterate the Attachments collection, put all the names in a list, then insert that information into your Word document at a bookmark you've set up for that purpose, just as you would the Body property, something like:

strAtts = ""
For Each att in Item.Attachments
strAtts = strAtts & att.DisplayName & vbCrLf
Next
objDoc.Bookmarks("Attachment_List").Range.InsertAf ter strAtts

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
I'm using the export-to-Word solution to printing Outlook forms in version
2003. Is there a way to see the attachments listed in the Word template?
The text in the Message (or Body) field comes across fine but just shows a
gap where the attachments are - confusing for users who are used to seeing
everything on the printout.

Thanks.


 




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
Problem Printing Customized Outlook Form using Word Template ajkim001 Outlook - Using Forms 15 April 28th 06 05:28 PM
Outlook 2003 Attachment Printing Last Mcspec Outlook - General Queries 1 March 7th 06 07:39 AM
Word error when printing Outlook form Martin Outlook - Using Forms 0 March 1st 06 01:04 PM
Default Word Attachment Opening View Marc Seidler Outlook - General Queries 1 January 26th 06 05:30 AM
Word as editor [email protected] Outlook - General Queries 0 January 19th 06 05:25 PM


All times are GMT +1. The time now is 04:44 PM.


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