We are using DynamicPDF4Net in WPF application using WindowsFormsHost, but While using control.OpenStream method, it is throwing an exception
InvalidActiveXStateException occurred {"Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown."}.
eg:
usercontrol = (DynamicPdfViewer)obj;
usercontrol._pdfDocument.OpenStream((Stream)e.NewValue,"");
It was suggested that when the control is not properly initialized this exception occurs. I tried initializing the component, but while setting OcxState
eg
this._pdfDocument.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("_pdfDocument.OcxState")));
it again is throwing an exception
MissingManifestResourceException occurred {"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure \"ceTe.DynamicPDF.AxViewer.DynamicPDFViewer.resources\" was correctly embedded or linked into assembly \"ceTe.DynamicPDF.AxViewer\" at compile time, or that all the satellite assemblies required are loadable and fully signed."}
Please update us as soon as possible.
Regards,
Anwar
DynamicPDF Viewer Control OcxState is not able to set in WPF Application
Re: DynamicPDF Viewer Control OcxState is not able to set in WPF Application
Support · Feb 15, 2010Hello Anwar,
Can you please send over a sample application to our [^a|mailto:support@cete.com|Support Team^] which can give this error so that we can look into it further. We will do some further testing and we will post a message as soon as we have our test results.
Thanks,
ceTe Software Support Team.
Re: DynamicPDF Viewer Control OcxState is not able to set in WPF Application
Support · Feb 16, 2010Hello Anwar,
We are able to use our Viewer product in the WPF window without any problem. You can refer to this procedure on using ActiveX in WPF
application in MSDN site.
Please send an email to our [^a|mailto:support@cete.com|Support Team^] if you need a sample project for this.
Thanks,
ceTe Software Support Team.