I have a C# WPF application which was using an older 32-bit version of the eDrawings EModelView DLL. I have upgraded this to the latest 64-bit version by following the guidance online. Part of the application allows the user to print out a specific drawing without showing any dialog box. This used to work OK but since upgrading I now get a full program crash when I use the SetPageSetupOptions function. If I comment out this line and set the Print5 command to show the print dialog box, it does work.
The application is intended to be run on a touch-screen kiosk so I really want it to work as it did before ... Is this an issue with the latest version or is there something I am not doing correctly which I was getting away with before? Other than the Printing, everything else seems ok
SolidWksVwrCntrl.eDrawingsControl.SetPageSetupOptions(EModelView.EMVPrintOrientation.eLandscape, (int)System.Drawing.Printing.PaperKind.A4, 0, 0, 1, (int)System.Drawing.Printing.PaperSourceKind.AutomaticFeed, strPrinterName, 0, 0, 0, 0);
SolidWksVwrCntrl.eDrawingsControl.Print5(true, strFilename, false, false, false, EModelView.EMVPrintType.eScaleToFit, 1, 0, 0, true, 1, 1, "");