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 / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

attach page to email

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PokerJoker - 22 Oct 2007 20:57 GMT
I created a page that generates an order confirmation pdf and returns it to
the browser.  My client now requested that I attach said pdf to the order
confirmation email.  I tried to use
HttpWebRequest.GetResponse.GetResponseStream();  but the page is protected,
and even though I'm requesting it from within the application, i keep getting
the login page attached to my email :)

I tried grabbing the cookies from the current response, and sending them
with the new request, as well as modifying the viewstate and posting with the
login info and even though I'm logged in, its still attaching the login page.
Thanks in advance for any help.
Alexey Smirnov - 22 Oct 2007 22:30 GMT
On Oct 22, 9:57 pm, PokerJoker <PokerJo...@discussions.microsoft.com>
wrote:
> I created a page that generates an order confirmation pdf and returns it to
> the browser.  My client now requested that I attach said pdf to the order
[quoted text clipped - 7 lines]
> login info and even though I'm logged in, its still attaching the login page.
>  Thanks in advance for any help.

I think you can save PDF as a file on a server and attach it to the
message
PokerJoker - 22 Oct 2007 22:38 GMT
The component that I used to crreate the pdf accepts the page object as a
parameter, and then returns the pdf in the response.  It has no option to
save the pdf which is why I am trying to save the response stream and send
that.  I could of course replace the pdf component, but i dont know of a good
free one that would be easy to use.

> On Oct 22, 9:57 pm, PokerJoker <PokerJo...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 12 lines]
> I think you can save PDF as a file on a server and attach it to the
> message
Mark Rae [MVP] - 22 Oct 2007 22:44 GMT
> The component that I used to crreate the pdf accepts the page object as a
> parameter, and then returns the pdf in the response.  It has no option to
> save the pdf which is why I am trying to save the response stream and send
> that.  I could of course replace the pdf component, but i dont know of a
> good
> free one that would be easy to use.

This is by far the best I've seen: http://www.siberix.com/

It's not free, but you (don't) get what you (don't) pay for...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Alexey Smirnov - 22 Oct 2007 22:52 GMT
On Oct 22, 11:38 pm, PokerJoker <PokerJo...@discussions.microsoft.com>
wrote:
> The component that I used to crreate the pdf accepts the page object as a
> parameter, and then returns the pdf in the response.  It has no option to
[quoted text clipped - 20 lines]
>
> - Show quoted text -

Well, I think you can find some free components for .NET, but it
depends on your needs.

What component are you using right now?
kaza - 23 Oct 2007 16:28 GMT
> On Oct 22, 11:38 pm, PokerJoker <PokerJo...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 30 lines]
>
> - Show quoted text -

hi try this, its free and worked great for my

http://itextsharp.sourceforge.net/

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.