Spire.PDFViewer is a powerful PDF Viewer component for .NET. It allows developers to load PDF document from stream, file and byte array.

Mon Jul 24, 2017 11:31 am

Hi

The PDFDocument does what I want, except that it throws on Form Unload.

The PDFDocument is embedded in a user control.

"An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.Windows.Forms.dll"

Module info: 4.7.2094.0 built by: NET47REL1LAST
Original Location: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

I am already done with the control at this point; but cannot shut down the form.

I have tried adding
if (pdfViewer.IsDocumentLoaded)
pdfViewer.CloseDocument();
pdfViewer.Dispose();

to the user controls 'Dispose'

The exception occurs even if the PDFDocument has not been used .. just drawn on the form.

Any suggestions, please.

roger.thord.gray
 
Posts: 1
Joined: Sun May 28, 2017 1:41 am

Tue Jul 25, 2017 1:59 am

Dear roger.thord.gray,

Thanks for your inquiry.
After an intial testing with the latest Spire.PDFViewer Pack(Hotfix) Version:2.12.19, sorry that I didn't encounter the issue you mentioned. Please provide a sample project here or send it to us(support@e-iceblue.com) via email to help us reproduce the issue.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDFViewer

cron