We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Use PdfViewer to launch PDF file inside browser window?

Hi! Is there a way to use a PdfViewer to launch a PDF file inside a browser window (ascx page)? I've tried things like the below, but it just seems to spawn an Adobe Reader with my file.

MemoryStream ms = new MemoryStream ();
// ... fill the memorysteam with a pdf worked on earlier with Aspose.Words
doc.Save (ms, exportType );
PdfViewer pv = new PdfViewer();
pv.OpenPdfFile(ms);
Response.Flush();
Response.End();

Hi Chris,

I would like to share with you that PdfViewer allows you to either print the PDF files or decode the pages to images i.e. the pages can be converted to images, and then you can view those images using any image control. I’m afraid, PdfViewer is not a visual tool to view PDF files like Adobe Reader etc.

I hope you understand. If you have any further questions or concerns, please do let us know.
Regards,