Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Control command of the Set_Printer function
Does anyone know if the Control command of the Set_Printer function works.
I tried the example and the only information that printed was the "Test 1 2 3"
The Code example was:
==============================================================================
* The following example shows how to use the CONTROL message to set the first page header
* and footer.
declare function Set_Printer
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("CONTROL", "", "First Head", "First Foot", "Times New Roman":@FM:18)
stat = Set_Printer("TEXT", "Test 1 2 3")
stat = Set_Printer("TERM") ;* End printing
I tried the example and the only information that printed was the "Test 1 2 3"
The Code example was:
==============================================================================
* The following example shows how to use the CONTROL message to set the first page header
* and footer.
declare function Set_Printer
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("CONTROL", "", "First Head", "First Foot", "Times New Roman":@FM:18)
stat = Set_Printer("TEXT", "Test 1 2 3")
stat = Set_Printer("TERM") ;* End printing
Comments
I tried messing around with this, and my test routine kept crashing on a program called OIPI_PRINTHEADER. I switched the setting in SYSYENV, CFG_OIPI from VSPRINTER to VSPRINTER2, and it started working after that. Not exactly sure what is going on. Maybe someone else can shed some light on this.