- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Jim Breeding
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Mike Durisin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mike Durisin
Thanks! That did the trick!
Jim Breeding
Thanks! That did the trick!
Jim Breeding
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page