Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2007

Tip: Looking for answers? Try searching our database.

Sent Crystal Report as pdf via Outlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luc - 26 Jul 2007 16:04 GMT
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!!
Signature

Best regards
Luc N

Eric Moreau - 28 Jul 2007 13:41 GMT
You can save the report as a PDF to disk and then attach the file to a
e-mail.

Signature

HTH

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

> 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!!
Luc - 28 Jul 2007 16:12 GMT
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??
Signature

Best regards
Luc

> You can save the report as a PDF to disk and then attach the file to a
> e-mail.
[quoted text clipped - 5 lines]
> >
> > Thx!!
Eric Moreau - 29 Jul 2007 14:04 GMT
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-I
I.aspx


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

Signature

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
[quoted text clipped - 14 lines]
>> >
>> > Thx!!
Martha Hoffmann - 27 Sep 2007 14:50 GMT
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

> 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-I
I.aspx

[quoted text clipped - 19 lines]
> >> >
> >> > Thx!!
Eric Moreau - 28 Sep 2007 11:01 GMT
Do you mean Embed (as opposed to simply Attached)?

see "Embedding an image into a HTML body " from
http://www.emoreau.com/Entries/Articles/2007/09/Using-SystemNetMail.aspx

Signature

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. (http://www.emoreau.com)
Membre du réseau .NET Expertise  www.dotnet-expertise.com

>I have been trying to figure out how to Embed the pdf into my outlook
>message
[quoted text clipped - 28 lines]
>> >> >
>> >> > Thx!!
Martha Hoffmann - 01 Oct 2007 14:03 GMT
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

> Do you mean Embed (as opposed to simply Attached)?
>
[quoted text clipped - 33 lines]
> >> >> >
> >> >> > Thx!!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.