- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My printer is a USB device. OPEN (UNIT = 4 FILE = 'PRN')
and writing to 4 produces Severe Error (564). FILE = 'CON' does write to the screen. USB is not listed in the Physical Devices section of Help Files.
Is there a way around this?
Thank you,
Joe
and writing to 4 produces Severe Error (564). FILE = 'CON' does write to the screen. USB is not listed in the Physical Devices section of Help Files.
Is there a way around this?
Thank you,
Joe
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can't write directly to a USB-connected printer. Opening PRN is a DOS technique no longer valid. Instead, you need to use Windows printing mechanisms. See Fortran_WinPrint.f90 for code you can use in your application to print a file.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the help, Steve.
Joe
Joe
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