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.