Software Archive
Read-only legacy content
17061 Discussions

Printing HPGL to a Laser Printer

jcbreeding
Beginner
467 Views
I am attempting to print a HPGL graphics file written by CVF to a laser printer. I used the Fortran_Winprint module in the samples but the printer printed out the HPGL commands as text instead of printing a graphic data plot. I know the file works as HPGL because it plotted fine after I moved it to a Sun workstation and printed from there to the same printer. I seems that Fortran_Winprint translates it into ASCII. Any suggestions?

Jim Breeding
0 Kudos
3 Replies
Steven_L_Intel1
Employee
467 Views
Fortran_WinPrint uses the Windows printing mechanism to render the text as a bitmap, which is the way most documents print. You want to send the text directly to the printer as-is. There's probably some mode to do that in the Windows printing API, but offhand I don't know what it is.

Steve
0 Kudos
durisinm
Novice
467 Views
I seem to remember doing something like this once before. Try OPENing the printer as a file, using FILE='server_nameprinter_name'. OPEN the HPGL file on a different unit. READ the records from the HPGL file and WRITE them out to the printer "file."

Mike Durisin
0 Kudos
jcbreeding
Beginner
467 Views
Mike Durisin
Thanks! That did the trick!

Jim Breeding
0 Kudos
Reply