I am trying to run a Visual Basic program from RPG using runrmtcmd.
The VB program prints image files (JPEG).
When I run this program from PC it runs fine, but when i run it from RPG i get an error msg.
Also if anyone knows a way to print images from RPG, that would also work.
This is an error i am getting.
Unhandled Exception: System.ComponentModel.Win32Exception: An attempt was made to reference a token that does not exist at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e) at System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument document, PrintEventArgs e) at System.Drawing.Printing.PrintController.Print(PrintDocument document) at System.Drawing.Printing.PrintDocument.Print() at DirectPrint.Module1.Main()