How to view the doc and pdf file in browser
how to view the doc and pdf file in web browser without using (using Microsoft.Office.Interop.Word) in asp.net C# with image and if table foemate is available in doc file or pdf
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 attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 2, 2014, 1:52 AM EST
Edda Brown16 reputationPosted Aug 13, 2014, 10:05 PM EDT
Streaming a file directly to the Response will work but only for PDFs, browsers cannot render DOCs. So what you can try is to manipulate with DOC files in .NET in order to transform (convert) those Word documents to PDFs in C# and then use the same approach that Satyapriya mentioned.
Lim Shyan4 reputationPosted Nov 20, 2014, 6:08 AM EST
If your goal is to view DOC and PDF files as images in a Web Page, you might need to use a toolkit (Leadtools) that supports loading document formats. For more information you can refer to this page:
https://www.leadtools.com/help/leadtools/v18/dh/co/leadtools.codecs~leadtools.codecs.rastercodecs~load.html
Vinodh NarayananRank #175 · 13.8K reputationPosted Dec 12, 2014, 1:29 AM EST