PDA

View Full Version : Taking a word doc, Saving as PDF and emailing it in Outlook with one button



Zephid15
08-27-2007, 07:28 AM
I was wondering if this was possible. I have a document in word that I want to save as a PDF using CutePDF writer (it really just involves printing to a location), then taking that PDF and attaching it in an Outlook e-mail. I would like this to all automatically happen when I press a button if possible.

fumei
08-27-2007, 12:17 PM
What have you tried so far?

Zephid15
08-27-2007, 01:19 PM
Fumei,
I attempted the:

strEmail = "e-mailaddres (dave.larson@renishaw.com)@domin.com"
strSubject = "?subject=Test"
strEmailHyperlink = strEmail & strSubject
ActiveDocument.FollowHyperlink Address:=strEmailHyperlink, NewWindow:=True



But i want to use outlook.

fumei
08-27-2007, 01:43 PM
Then use Outlook. You will have to make an instance of Outlook (if one is not already running).

Look in the Outlook part of this forum, or google it. This is fairly basic. Essentially you use an instance of Outlook to make a new MailItem, and then attach your file to it, and then send it. The fact that it is a PDF is irrelevant.

You can NOT record an Outlook macro. They must be written.

mdmackillop
08-29-2007, 12:27 AM
You'll also need to check the CutePDF Help to see how to save to a particular file name location. Print it from Word before cerating the Outlook session. The creation of the pdf is simply
ActivePrinter = "CutePDF" 'or whatever
Activedocument.Printout
'your code to attach

Zephid15
08-29-2007, 07:28 AM
Thanks for the help, i will give it a try!