We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PDFViewer from command line

I'm attempting to use PDFViewerControl from a command line application to convert images to PDF documents unattended. I don't want to rewrite it to add a window if I don't need to.

The line that errors is:
Dim viewer As Syncfusion.Windows.PdfViewer.PdfViewerControl = New Syncfusion.Windows.PdfViewer.PdfViewerControl

I get an error saying: "The type initializer for 'Syncfusion.Windows.PdfViewer.PdfViewerControl' threw an exception"

Now sure what I need to do.

1 Reply

SM Suresh M Syncfusion Team August 13, 2013 08:40 AM UTC

Hi Andy,


Thank you for your interest in Syncfusion products.


Can you please confirm whether it is about inserting Image into the PDF document or Exporting pages of PDF document as images. This would be more helpful for us to further investigate on this query.


Please let us know if you have any concerns.




Live Chat Icon For mobile
Up arrow icon