Free Support Forum - aspose.com

PDF Viewer method throws exception in Visual Studio .Net 2010

Hello,

We are developing applicaiton in Visual Studio .Net 2010. Following code snippets that we are currently using and highlighted line throwing exception "Object reference not set":

Aspose.Pdf.Kit.PdfViewer viewer = new Aspose.Pdf.Kit.PdfViewer();

viewer.OpenPdfFile(pdffilename);

picPDFViewer.Image = viewer.DecodePage(1);

viewer.ClosePdfFile();

If we are using wrong code snippets then please suggest us how we would achive this to show PDF in our application.

Thanks,

Sanjay

Hi Sanjay,

Please share a problematic PDF file with us, so we could test the issue at our end. You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,