How to get screenshot of an asp.net page?
-
Hello All, We have a scenario to get the screenshot and export it to PDF. I would like to know the process to take the screenshot/Thumbnail of the asp.net image. I found some third party dlls, but Forms Authentication causes the issue with them. With the third party dlls, if we give any url directly to the dll, its getting the thumbnail of the login page as it will be redirected to login. Our Scenario: --------------- We will have multiple pages in our Asp.Net web application. On every page we have export button. When the export button is clicked, the screenshot/thumbnail of the current page should be taken and save as image. Can anybody shed some light on this scenario and let me know if the solution found. Thank you, Raheem MA
-
Hello All, We have a scenario to get the screenshot and export it to PDF. I would like to know the process to take the screenshot/Thumbnail of the asp.net image. I found some third party dlls, but Forms Authentication causes the issue with them. With the third party dlls, if we give any url directly to the dll, its getting the thumbnail of the login page as it will be redirected to login. Our Scenario: --------------- We will have multiple pages in our Asp.Net web application. On every page we have export button. When the export button is clicked, the screenshot/thumbnail of the current page should be taken and save as image. Can anybody shed some light on this scenario and let me know if the solution found. Thank you, Raheem MA
I dont think forms authentication will be a issue here..! Make ths dll url to give access add the configuration in web.config file Give the dll to access to all the pages..!
<location path="YourDlllocation">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
I dont think forms authentication will be a issue here..! Make ths dll url to give access add the configuration in web.config file Give the dll to access to all the pages..!
<location path="YourDlllocation">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
Thank you for your quick response, but, Even though its not working with the third party tools. Anybody knows any other way to take screenshot/thumbnail of the current page in asp.net web application? Thank you in advance, Raheem MA
Try this links it may help...! http://www.codegod.de/WebAppCodeGod/Screenshot-of-Webpage-with-ASP-NET-AID398.aspx[^] http://www.developerfusion.com/code/4630/capture-a-screen-shot/[^]
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.