AREV32 and CTO_SET_PRINTER (AREV Specific)
At 26 JUN 2009 11:48:52AM James Foulkrod wrote:
How can I use CTO_SET_PRINTER from AREV32? I've tried to declare and use the function but the compiler says it has not been dimensioned or declared. Do I need to code the printer routine in OI and, if so, how do I call the OI routine from RBasic?
Thanks,
JIm
At 26 JUN 2009 04:39PM Bryan Shumsky wrote:
Hi, Jim. You can call CTO_SET_PRINTER from AREV32, but can I ask why you need to? The CTO_SET_PRINTER commands are used "behind" all the AREV32 print commands, so whatever code you used in AREV should still work in AREV32 seamlessly.
Thanks,
- Bryan Shumsky
Revelation Software
At 27 JUN 2009 04:15PM James Foulkrod wrote:
Hi Bryan,
The code I am working with is old (1997-98). The only print formatting commands I see are SETLPTR(width,height)and sending ascii codes and strings for compressed print. My client uses different printers which don't recognize these codes so I have line wrapping problems. The old AREV manuals don't give me anything else for printer control so I thought the CTO_SET_PRINTER could give me different font sizes etc. Am I missing something in old arev?
Thanks,
Jim
At 29 JUN 2009 08:23AM Dave Harmacek wrote:
Am I missing something in old arev?
James,
ArevDOS didn't have much in the way of printer control until version 3. By that time I had created my own set of routines to control printers, page size, line size, and fonts. Looks like the authors had sent PCL code characters to control the printers. The Direct Print routines are supposed to allow you to do the same in OI/Arev32, but if you are not using the same printers (and PCL codes) you are better off creating some new printer definitions to handle the upgraded system. See Utility/ Configure/ Workstation/ Printer/ Definitions. Make note of the section titled OIPI Fonts and experiment.
Dave
At 29 JUN 2009 09:40AM James Foulkrod wrote:
Thanks again Dave.
At 29 JUN 2009 12:35PM Bryan Shumsky wrote:
Hi, Jim.
Both OI and AREV32 support two different types of print generation - OIPI (which typically generates a Windows "print preview" window), and Direct Print (which is much more like the AREV way of printing). When you define printers (as per Dave's explanation), you can specify a variety of printer control messages (especially for the Direct Print-type printers; there is less formatting control over the OIPI printers). Depending on which printer you then select, you will either generate OIPI or Direct Print output (and AREV32, behind the scenes, handles routing the information as appropriate).
As Dave has suggested, you might have a poke around the printer setup and configuration menus.
Hope that helps,
- Bryan Shumsky
Revelation Software
At 30 JUN 2009 10:47AM James Foulkrod wrote:
Thanks Bryan,I'm making progress now.
Jim