printing question
- Posted by Michael Packard <lgp at EXO.COM> Oct 18, 1997
- 739 views
hi. My program needs to print a report when it gets finished. I prepare the report, which looks kinda like this: =B3 Memory Assessment Program = =B3 =B3 Student Report 10/20/1997 = =B3 =B3Student: Michael Packard Sex:Male Age:31 Date of Birth: 01/11/1966= =B3 =B3 1218 Karen Ave = =B3 =B3 Santa Ana, Ca 92704 = =B3 =B3 (714) 839-4265 = =B3 =B3 Visual Test Auditory Test = =B3 =B3 =DA=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4= =C4=C4=C4=BF =DA=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4= =C4=C4=C4=C4=BF =B3 =B3 =B3 123456789 =B3 =B3 123456789 =B3 = =B3 =B3 =B3Immediate =B0=B0=B0=B0=B0=B0=B0=B0=B0 =B3 =B3Immedia= te =B0=B0=B0=B0=B0=B0 =B3 =B3 =B3 =B3Short Term =B1=B1=B1=B1=B1=B1 =B3 =B3Short Term = =B1=B1=B1=B1=B1=B1=B1 =B3 =B3 =B3 =B3Long Term =B2=B2=B2=B2=B2 =B3 =B3Long Term =B2= =B2=B2=B2=B2 =B3 =B3 =B3 =C0=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4= =C4=C4=C4=D9 =C0=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4=C4= =C4=C4=C4=C4=D9 =B3 =B3 Ordered Recall Ordered Recall = =B3 =B3 = =B3 and I print it like this: printer=3Dopen("PRN","w") if printer=3D-1 then puts(1,"you have a problem with the printer")=20 else for i =3D 1 to length(report) do puts(printer,report[i]&"\n") end for puts(printer,12) --form feed end if This works great on my cannon bubblejet, but NOT on my bosses HP laserjet. "I print all the time, just now in windows! You must be an idiot!" how do I get it to work on that printer? It's standard ascii text, nothing fancy, but I need to be able to print on any printer, without having to have the people using the program tell it what kind of printer they have.=20 They tried printing the report in dos Edit and it didn't do it either. (as I'm directing them over the phone, again see quote above...) Michael Packard Lord Generic Productions =20