Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Physical Devices

jwyoung40
Beginner
416 Views
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
0 Kudos
2 Replies
Steven_L_Intel1
Employee
416 Views
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
0 Kudos
jwyoung40
Beginner
416 Views
Thanks for the help, Steve.

Joe
0 Kudos
Reply