Hi
Can someone please help me? I am not a VB programmer - i just know the very basics.
I am using Stephen Lebans PDF code to create a report which converts into PDF format.
Currently the user clicks on a button to preview the report - i have added the following line (in blue) underneath the open report function.
DoCmd.OpenReport stDocName, acPreview, , "[CPID]=" & Me!CPID
Call ConvertReportToPDF(stDocName, , "C:\Documents and Settings\All Users\Desktop\ContactMessage.pdf", False, False)
This works fine - I get a preview of the report onscreen in snapshot format and the pdf saves to the desktop.
What I would like to do is add some code which will close the snapshot view and open the PDF so users can email the document via FILE - SEND.
Ideally I would prefer an outlook window to come up when they press the button with the PDF attached.
Can someone help me with this please?
Many Thanks in advance
Daz
Can someone please help me? I am not a VB programmer - i just know the very basics.
I am using Stephen Lebans PDF code to create a report which converts into PDF format.
Currently the user clicks on a button to preview the report - i have added the following line (in blue) underneath the open report function.
DoCmd.OpenReport stDocName, acPreview, , "[CPID]=" & Me!CPID
Call ConvertReportToPDF(stDocName, , "C:\Documents and Settings\All Users\Desktop\ContactMessage.pdf", False, False)
This works fine - I get a preview of the report onscreen in snapshot format and the pdf saves to the desktop.
What I would like to do is add some code which will close the snapshot view and open the PDF so users can email the document via FILE - SEND.
Ideally I would prefer an outlook window to come up when they press the button with the PDF attached.
Can someone help me with this please?
Many Thanks in advance
Daz