Code Comments
Programming Forum and web based access to our favorite programming groups.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 print er "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 t o an HP laserjet 4000 ? Any suggestions please, but don't forget there is a 2200 line limit on compiler. Vince
Post Follow-up to this messageVince 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 pri nter > "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
Post Follow-up to this messageMy girlfriend cheated on me! Here is the revenge, look how I f^^^ed her! http://xx-amateur-movies.org/vid/218571/ Please share with friends
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.