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

Date Stamp Attachments



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 9th 07, 09:37 PM posted to microsoft.public.outlook.program_vba
Mcd62
external usenet poster
 
Posts: 4
Default Date Stamp Attachments

I have a customer that wants to be able to print attachments from Outlook and
include an automatically generated date on the printed attachment. Any help
would be appreciated.


Ads
  #2  
Old February 9th 07, 09:53 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Date Stamp Attachments

Would the file types of these attachments always be known? You'd only use
Outlook programming part of the way, as editing the file associated with the
attachment would require the use of any available APIs that can work with
that file type. For example, if it's a Word attachment, you'd use the Word
Object Model to edit the file; the Microsoft Scripting Runtime Library for
ASCII based files; Excel for .xls, whatever Adobe API's exist for .pdfs, etc.
etc.

You'd actually only use Outlook for saving the attachments locally in any
case. You'd need to use the Win32 API to execute a print command for the
modified files, or even maybe the API for the document type itself to print
it from the associated application. Your Outlook code would also need to
delete the temporarily saved attachment once it is edited and printed.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Mcd62" wrote:

I have a customer that wants to be able to print attachments from Outlook and
include an automatically generated date on the printed attachment. Any help
would be appreciated.


  #3  
Old February 9th 07, 10:29 PM posted to microsoft.public.outlook.program_vba
Mcd62
external usenet poster
 
Posts: 4
Default Date Stamp Attachments

Word and Adobe Acrobat would be the two formats.
If I understand correctly, I would use Outlook Object Model to save the
attachment in a location on the hard drive, then open the document using the
Word Object Model and add the date stamp and save the file with the new date
information. Is that correct? Since I'm new at the programming, I'm
paraphrasing what I think you are saying. Am I correct?

"Eric Legault [MVP - Outlook]" wrote:

Would the file types of these attachments always be known? You'd only use
Outlook programming part of the way, as editing the file associated with the
attachment would require the use of any available APIs that can work with
that file type. For example, if it's a Word attachment, you'd use the Word
Object Model to edit the file; the Microsoft Scripting Runtime Library for
ASCII based files; Excel for .xls, whatever Adobe API's exist for .pdfs, etc.
etc.

You'd actually only use Outlook for saving the attachments locally in any
case. You'd need to use the Win32 API to execute a print command for the
modified files, or even maybe the API for the document type itself to print
it from the associated application. Your Outlook code would also need to
delete the temporarily saved attachment once it is edited and printed.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Mcd62" wrote:

I have a customer that wants to be able to print attachments from Outlook and
include an automatically generated date on the printed attachment. Any help
would be appreciated.


  #4  
Old February 10th 07, 05:31 AM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Date Stamp Attachments

Yup, you got it. I've never worked with Adobe's APIs before, so I can't help
you there. I'm sure there's an SDK on their website; hopefully it's easy to
figure out.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Mcd62" wrote:

Word and Adobe Acrobat would be the two formats.
If I understand correctly, I would use Outlook Object Model to save the
attachment in a location on the hard drive, then open the document using the
Word Object Model and add the date stamp and save the file with the new date
information. Is that correct? Since I'm new at the programming, I'm
paraphrasing what I think you are saying. Am I correct?

"Eric Legault [MVP - Outlook]" wrote:

Would the file types of these attachments always be known? You'd only use
Outlook programming part of the way, as editing the file associated with the
attachment would require the use of any available APIs that can work with
that file type. For example, if it's a Word attachment, you'd use the Word
Object Model to edit the file; the Microsoft Scripting Runtime Library for
ASCII based files; Excel for .xls, whatever Adobe API's exist for .pdfs, etc.
etc.

You'd actually only use Outlook for saving the attachments locally in any
case. You'd need to use the Win32 API to execute a print command for the
modified files, or even maybe the API for the document type itself to print
it from the associated application. Your Outlook code would also need to
delete the temporarily saved attachment once it is edited and printed.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Mcd62" wrote:

I have a customer that wants to be able to print attachments from Outlook and
include an automatically generated date on the printed attachment. Any help
would be appreciated.


  #5  
Old February 12th 07, 03:15 PM posted to microsoft.public.outlook.program_vba
Mcd62
external usenet poster
 
Posts: 4
Default Date Stamp Attachments

Thanks Eric,

I'll take a look at Adobe's website.

"Eric Legault [MVP - Outlook]" wrote:

Yup, you got it. I've never worked with Adobe's APIs before, so I can't help
you there. I'm sure there's an SDK on their website; hopefully it's easy to
figure out.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Mcd62" wrote:

Word and Adobe Acrobat would be the two formats.
If I understand correctly, I would use Outlook Object Model to save the
attachment in a location on the hard drive, then open the document using the
Word Object Model and add the date stamp and save the file with the new date
information. Is that correct? Since I'm new at the programming, I'm
paraphrasing what I think you are saying. Am I correct?

"Eric Legault [MVP - Outlook]" wrote:

Would the file types of these attachments always be known? You'd only use
Outlook programming part of the way, as editing the file associated with the
attachment would require the use of any available APIs that can work with
that file type. For example, if it's a Word attachment, you'd use the Word
Object Model to edit the file; the Microsoft Scripting Runtime Library for
ASCII based files; Excel for .xls, whatever Adobe API's exist for .pdfs, etc.
etc.

You'd actually only use Outlook for saving the attachments locally in any
case. You'd need to use the Win32 API to execute a print command for the
modified files, or even maybe the API for the document type itself to print
it from the associated application. Your Outlook code would also need to
delete the temporarily saved attachment once it is edited and printed.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Mcd62" wrote:

I have a customer that wants to be able to print attachments from Outlook and
include an automatically generated date on the printed attachment. Any help
would be appreciated.


 




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
date/time stamp Max Outlook Express 3 December 19th 06 11:04 PM
Need a time-date stamp for MS Outlook, please Hugo Acosta Outlook - Calandaring 2 September 22nd 06 07:49 PM
Need a time-date stamp for MS Outlook, please Hugo Acosta Outlook - General Queries 1 September 22nd 06 06:13 PM
email date stamp Saira Outlook - General Queries 2 September 19th 06 04:18 PM
"Date Created" section to date stamp when appointments were made themdragons Outlook - Calandaring 1 August 1st 06 02:51 PM


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


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.