Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added Reference of

System.Windows.Forms

to create Screen Short of entire page but when i deploy it on server or IIS screen short is not getting generating
Posted

1 solution

If you add a reference to System.Windows.Forms, the screen shot is taken at the server side, so, the computer that runs your ASP.NET application. But you want to take a screen shot of the client-side: the rendered page in the browser.

The best thing you can do is to convert your page to a PDF instead of an image:
http://www.c-sharpcorner.com/UploadFile/9f0ae2/convert-aspx-page-into-pdf-in-Asp-Net/[^]
http://www.aspsnippets.com/Articles/Export-ASPNet-Web-Page-with-images-to-PDF-using-ITextsharp.aspx[^]
 
Share this answer
 
v2
Comments
Member-515487 29-Oct-13 8:40am    
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: The handle is invalid

Google Chrome Console
Thomas Daniels 29-Oct-13 8:42am    
I added a second link. I hope that link can help you.
Member-515487 29-Oct-13 9:01am    
but i want to send it in Attachment file means i want to mail it
Thomas Daniels 29-Oct-13 9:04am    
Member-515487 29-Oct-13 9:08am    
not geeting i want to send this pdf file
there is way to save this file in file strame

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900