Midrange News for the IBM i Community


Posted by: Alex Fishbein
Running PC Commands
has no ratings.
Published: 04 Oct 2012
Revised: 23 Jan 2013 - 2187 days ago
Last viewed on: 18 Jan 2019 (4277 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Running PC Commands Published by: Alex Fishbein on 04 Oct 2012 view comments(5)

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()                                                   

 

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS