Sent Crystal Report as pdf via Outlook

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

is it possible to sent an Crystal report as pdf file via outlook in code??
does someone have a code snippet to get me started??

Thx!!
 
You can save the report as a PDF to disk and then attach the file to a
e-mail.

--


HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. (http://www.emoreau.com)
 
This I did and do at this time,
My goal is to write a small VB.NET method, which save the Report as PDF on
my local disk and attach this to an email.

Is this possible or is Crystal reports not the right tool for this???
are there alternatives??
--
Best regards
Luc

Eric Moreau said:
You can save the report as a PDF to disk and then attach the file to a
e-mail.

--


HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. (http://www.emoreau.com)
 
Crystal reports can easily render into a PDF file on a local disk:
http://www.emoreau.com/Entries/Articles/2006/10/Crystal-Reports-_e2_80_93-Part-II.aspx

Then, you can use system.web.mail / system.net.mail to send you e-mail.

--


HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. (http://www.emoreau.com)

Luc said:
This I did and do at this time,
My goal is to write a small VB.NET method, which save the Report as PDF
on
my local disk and attach this to an email.

Is this possible or is Crystal reports not the right tool for this???
are there alternatives??
 
I have been trying to figure out how to Embed the pdf into my outlook message
with VB. Can you give me a place to look for the answer to that. Thanks in
advance.

Martha Hoffmann
 
Yes, exactly, I want to embed as opposed to attach. I did the steps manually
in Outlook and recorded a macro in VBA. Here is the code that was generated:

Selection.InlineShapes.AddOLEObject ClassType:="AcroExch.Document.7", _
FileName:="M:\Compliance\Reports\irsshort.pdf", LinkToFile:=False, _
DisplayAsIcon:=False

I have been trying to find the VB equivalent, but I cannot figure it out. I
will try your method described in your document. Thanks so much for your
help.

Martha Hoffmann
 
Back
Top