Problem with printer (OpenInsight Specific)
At 21 JUN 1999 12:08:08PM Susana Garcia wrote:
Hi,
I'm trying to print in the default printer. I use the follow method:
Printer On
Print Linea1
Print Linea2
Printer Off
But I need to print compress.
Can I do this? If anyone knows please tell me how.
Thanks
Susana Garcia
At 22 JUN 1999 10:34AM Frank Tomeo wrote:
I don't know if you have heard of or used the Open Insight Printer Interface (OIPI), but I think that would be something that you would want to look in to. It gives you a far greater ability to control the way your data prints to any printer. You can change font size and type on the fly (which is what you are trying to accomplish), as well as add lines, shading, etc.
To print something in compressed would be as simple as:
rv=Set_Printer("FONT", Arial_Narrow_10$)
rv=Set_Printer("TEXT", "Your line here.")
… where Arial_Narrow_10$ equals the name of the compressed font that you would like to use.
Hope this helps.
You also have the option of using Revelation's two printing solutions: the Basic+ print functions or the Reporter. The former is another, but not very powerful or flexible, programmatic approach. The Reporter is a drap and drop template based report design tool. In all of the options above you can choose any available Windows font for your reports.
The issue you are facing is moving away from a DOS based printing solution where you told the printer what to do versus using the Windows print engine and relying on it to do what you want. There are some semi-working solutions out there where people are printing in OpenInsight but still using their old AREV code. This can be a headache though. Unless there is a very compelling reason for needing this approach I strongly suggest you become skilled in a true Windows printing solution like the above choices offer.
dbakke@srpcs.com