Main Topics
Browse All Topicshttp://www.codeproject.com
i'm trying to use the following project. No problem using it. My issue is that i'm trying to actually have access to the rendered pdf file at runtime to allow a user to email it to a third party. I will have the email address setup in an sql table. I have generated email from .net code in the past, but not attached files to them.
Is this possible?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
no my issue is not with attaching the file, my issue is with saving the pdf file to access it.
please check out the link i posted.
it creates a pdf file on the fly for a reporting services page. problem is it comes up to the user save/open.
I don't want that to come up. I want to save the pdf file automatically so i can access it using similar code to what you just posted.
Ok
You need to remove all the code starting from the link contains rsExec.Render(format, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
and replace it with the attached code to save the fiile to local disk. once you save it to the disk, then you can attached it to your email.
i get these errors. how do i check the length of these variables?
yes the report has some data. when i do it the orignal way it works fine.
Error 1 'string' does not contain a definition for 'length' C:\Data\Development\RsPdf\
Error 2 'System.Array' does not contain a definition for 'length' C:\Data\Development\RsPdf\
Business Accounts
Answer for Membership
by: strickddPosted on 2009-10-05 at 07:58:24ID: 25495895
http://msdn.microsoft.com/ en-us/libr ary/ system .net.mail. attachment .aspx