Home > Archive > Cobol > June 2007 > Net Express v5.- personal edition
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Net Express v5.- personal edition
|
|
| Vince Coen 2007-06-02, 6:55 pm |
| Hello All!
I'm having a problem converting some old Workbench programs to NE.
The biggest problem is just to print out reports.
Original assign clause is Select print-rep assign "PRN:".
This doesn't work and have also tried assign printer as well as assign printer
"print.txt".
This last one does work to some point but I have to manually spool out the
print.txt file. How do you set printing up in NE to auto go to spool say to
an HP laserjet 4000 ?
Any suggestions please, but don't forget there is a 2200 line limit on
compiler.
Vince
| |
| James J. Gavan 2007-06-11, 6:55 pm |
| Vince Coen wrote:
> Hello All!
>
> I'm having a problem converting some old Workbench programs to NE.
>
> The biggest problem is just to print out reports.
>
> Original assign clause is Select print-rep assign "PRN:".
> This doesn't work and have also tried assign printer as well as assign printer
> "print.txt".
> This last one does work to some point but I have to manually spool out the
> print.txt file. How do you set printing up in NE to auto go to spool say to
> an HP laserjet 4000 ?
>
> Any suggestions please, but don't forget there is a 2200 line limit on
> compiler.
>
> Vince
>
>
The question has already been partially answered but you simply can't
mix and match the old DOS OS syntax with Windows OS.
Possibilities are :-
- assign print file to disk - see some examples at University of
Limerick - http://www.csis.ul.ie/COBOL/. Then of course you subsequently
print the disk file.
- use PC_PRINT routines - plenty of M/F examples - think of setting up
your common print lines in W/S rather like laying out Screen Section or
Report Writer lines
- third party 'Windows' printer software like -
http://www.sanface.com/txt2pdf.html
If you want to try the PC_PRINT e-mail me, (editing my address). I can
give you an OO class, while not containing all the printer routines,
would certainly get you off the ground. (It's a while since I did it,
so it can be improved upon).
Jimmy
| |
|
|
|
|
|