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!!
--
Best regards
Luc N

Re: Sent Crystal Report as pdf via Outlook by Eric

Eric
Sat Jul 28 07:41:37 CDT 2007

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)

"Luc" <Luc@discussions.microsoft.com> wrote in message
news:4E144BE3-C41B-4630-B829-AE41A93BD453@microsoft.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!!
> --
> Best regards
> Luc N



Re: Sent Crystal Report as pdf via Outlook by Luc

Luc
Sat Jul 28 10:12:01 CDT 2007

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" wrote:

> 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)
>
> "Luc" <Luc@discussions.microsoft.com> wrote in message
> news:4E144BE3-C41B-4630-B829-AE41A93BD453@microsoft.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!!
> > --
> > Best regards
> > Luc N
>
>
>

Re: Sent Crystal Report as pdf via Outlook by Eric

Eric
Sun Jul 29 08:04:24 CDT 2007

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" <Luc@discussions.microsoft.com> wrote in message
news:7DAEC2B5-38BB-4FC2-9B0C-A591F4A09E3B@microsoft.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" wrote:
>
>> 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)
>>
>> "Luc" <Luc@discussions.microsoft.com> wrote in message
>> news:4E144BE3-C41B-4630-B829-AE41A93BD453@microsoft.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!!
>> > --
>> > Best regards
>> > Luc N
>>
>>
>>



Re: Sent Crystal Report as pdf via Outlook by Martha

Martha
Thu Sep 27 06:50:02 PDT 2007

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

"Eric Moreau" wrote:

> 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" <Luc@discussions.microsoft.com> wrote in message
> news:7DAEC2B5-38BB-4FC2-9B0C-A591F4A09E3B@microsoft.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" wrote:
> >
> >> 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)
> >>
> >> "Luc" <Luc@discussions.microsoft.com> wrote in message
> >> news:4E144BE3-C41B-4630-B829-AE41A93BD453@microsoft.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!!
> >> > --
> >> > Best regards
> >> > Luc N
> >>
> >>
> >>
>
>
>

Re: Sent Crystal Report as pdf via Outlook by Eric

Eric
Fri Sep 28 03:01:15 PDT 2007

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

--


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


"Martha Hoffmann" <Martha Hoffmann@discussions.microsoft.com> wrote in
message news:103AB0F6-B99F-4D8D-8B4E-C42AFD974039@microsoft.com...
>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
>
> "Eric Moreau" wrote:
>
>> 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" <Luc@discussions.microsoft.com> wrote in message
>> news:7DAEC2B5-38BB-4FC2-9B0C-A591F4A09E3B@microsoft.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" wrote:
>> >
>> >> 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)
>> >>
>> >> "Luc" <Luc@discussions.microsoft.com> wrote in message
>> >> news:4E144BE3-C41B-4630-B829-AE41A93BD453@microsoft.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!!
>> >> > --
>> >> > Best regards
>> >> > Luc N
>> >>
>> >>
>> >>
>>
>>
>>



Re: Sent Crystal Report as pdf via Outlook by MarthaHoffmann

MarthaHoffmann
Mon Oct 01 06:03:01 PDT 2007

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


"Eric Moreau" wrote:

> 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
>
> --
>
>
> 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
>
>
> "Martha Hoffmann" <Martha Hoffmann@discussions.microsoft.com> wrote in
> message news:103AB0F6-B99F-4D8D-8B4E-C42AFD974039@microsoft.com...
> >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
> >
> > "Eric Moreau" wrote:
> >
> >> 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" <Luc@discussions.microsoft.com> wrote in message
> >> news:7DAEC2B5-38BB-4FC2-9B0C-A591F4A09E3B@microsoft.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" wrote:
> >> >
> >> >> 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)
> >> >>
> >> >> "Luc" <Luc@discussions.microsoft.com> wrote in message
> >> >> news:4E144BE3-C41B-4630-B829-AE41A93BD453@microsoft.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!!
> >> >> > --
> >> >> > Best regards
> >> >> > Luc N
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>