Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29073 Discussions

Shared printers in a QuickWin program

rselzer
Beginner
476 Views
My QuickWin programs open the printer with OPEN(UNIT = IPR, FILE = PRINTFILENAME, CARRIAGECONTROL='FORTRAN'). IPR defaults to 6 and PRINTFILENAME to 'PRN'. This worked splendidly until I started getting customers who were sharing printers. I made provision for users to enter a different PRINTFILENAME to communicate with the shared printer which worked but was a pain even when the customers IS consultant was called in.

A current customer, running Windows 2000 with a Canon printer (I don't know the model) identifies the printer with an IP address and neither I nor the IS consultant know how to make that a file name to communicate with the printer. Can anyone help ?

I using VF 6.6, have minimal expertise in C++ and don't know anything about networked computers sharing a printer.

I also read somewhere in the VF Help about a Common Box Dialog Library used to simplify things such as printer setup. I haven't been able to find this library and I don't know if it can be used with QuickWin. Any advice would be greatly appreciated.
rselzer



0 Kudos
3 Replies
Steven_L_Intel1
Employee
476 Views
Windows printing changed the rules for how one does printing - you can, as you have discovered, no longer assume that you have a local printer attached to a parallel port to which you can write ASCII text.

I developed a module that can be used to print using Windows printing mechanisms. You'll find it in the FORPRINT sample on the CVF 6.6 CD-ROM and at http://h18009.www1.hp.com/fortran/examples/Fortran_WinPrint.f90

Steve
0 Kudos
rselzer
Beginner
476 Views
Steve:
Thanks for the assist on the directing output to shared printers. It works but I lose interpretation of the PCL commands that I use to change fonts, underline, bold words, etc. I get the codes themselves printed. Any way to activate them with Fortran_winprint ?

Thanks again for the help.

Bob Selzer
0 Kudos
Steven_L_Intel1
Employee
476 Views
In that case you want WinPrintDirect.

Steve
0 Kudos
Reply