Last post Nov 19, 2010 04:17 PM by firstname.lastname@example.org
Nov 18, 2010 03:08 PM|deadveloper|LINK
I'm not sure if this is even possible so I need to ask the forum for guidance.
If I have a C# ASP.NET Web Application form, how can I display a web page as an Image?
What I am doing is creating an app that will send out dynamic emails by giving the User a choice of what goes into the email to be sent.
So from the top working down the form I have Labels and Text boxes to enter recipients name, company, account #, and email address. Then some image buttons for Cancel and Send. Then an area for the selections to be made for the email content, and at the
bottom is the same row of image buttons for Cancel and Send.
What I want to do is use the URL stored in the database of the email (which is out there as a web page) and somehow display it across from the selections to be made. The area is about 4 inches wide by 6 inches tall.
So can I make an Image out of it for display OR is there a way to shrink it to fit the area?
I have been searching Google but cannot find what I am looking for, so any samples would be greatly appreciated.
BTW, I cannot just screen scrape an turn it into an Image as there will constantly be new emails created all the time.
Nov 19, 2010 04:12 AMemail@example.com|LINK
What about displaying it as a pdf using itextsharp?
Nov 19, 2010 05:28 AM|florinlabou|LINK
I found a good example here:
It captures a possible scrollable page.
Nov 19, 2010 12:18 PM|deadveloper|LINK
Those are both good ideas but not exactly what I have in mind.
I tried the example Florin mentioned but it only gets the viewable content and not the whole page.
Plus I do not want to save anything. I just want to get the webpage (all of it) and shrink it to fit in the area on the fly, without saving anything.
So when the page loads it should just display it.
Nov 19, 2010 04:17 PMfirstname.lastname@example.org|LINK
Well i believe that is very hard to do. Since you create a webpage, you display it on the clients browser, and in the meantime the page is rendered you aslo want it to render an image and display it on the same page you just rendered?
But wait i cam across this same topic: