Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: Redirect LPT1?

$
0
0
Actually in the example that I posted a Printer Dialog box will be displayed allowing the user to select the printer that will be used. This is turned on by setting bit 0 of flags to 1. So I am turning on bit 0 and bit 5 which allows for raw print redirection. 01 flags                  pic x(4) comp-5 value 33. If you wanted to avoid the Printer Dialog then just set bit 5 on and it will print top the default printer. 01 flags                  pic x(4) comp-5 value 32. Werner, assigning the printer to a share name will work but if you are using PCL ESC codes in your data then these would be stripped out. This is why we are using the approach shown here. In managed .NET code you could actually set the tunable PRINTER_RAW_REDIRECTION=TRUE and then assign your file to PRINTER and then you can write the output directly to the default printer. This is not supported for native code however.

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>