Printing Attachments

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

Hi All

Is there away of printing the attachment from an email without opening the
email first.

I would like to be able to put a button on the toolbar that when pressed
will print the attachment from the selected email.

I am new to this so any help would be greatly appreciated.

Thanks in advance


Gary
 
Hi Gary,
Is there away of printing the attachment from an email without opening the
email first.

whether the e-mail is opened or not, you first have to save the
attachment(s) to your filesystem. Then you can use the API
"ShellExecute" to print the file. This works only, if the filetype is
registered, for e.g. doc- oder xls-files.

I´m not sure for the syntax, I think it is:

ShellExecute(0, "Print", FileName, "", 0&, 1)

Try it, or google for "ShellExecute" and "print" for better
informations :-)
 
Back
Top