Hi All,
Can anyone please let me know how to convert an aspx page output with images to html page, word or pdf document thru c# coding
I have tried using itextsharp, but it did not worked.
Thanks In Advance.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Kiran MohantyRank #821 · 2.8K reputationPosted Feb 8, 2021, 3:32 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Feb 8, 2021, 3:32 AM EST
Vamsi kRank #5,163 · 309 reputationPosted Feb 8, 2021, 4:23 AM EST
Webpage has to download as it is when i click on button.
Vamsi kRank #5,163 · 309 reputationPosted Feb 8, 2021, 4:24 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Feb 8, 2021, 5:12 AM EST
Vamsi kRank #5,163 · 309 reputationPosted Feb 8, 2021, 5:19 AM EST
I tried the below code , at Parse method i am getting exception because i have image in masterpage. Everytime i am getting exception at htmlparser.Parse(sr);
Response.ContentType = "application/pdf";
Sachin SinghRank #66 · 26.2K reputationPosted Feb 8, 2021, 5:26 AM EST
Rijwan AnsariRank #82 · 24.2K reputationPosted Feb 8, 2021, 11:58 AM EST