A
Andrew Falanga
Hi,
I have a case where I need to write, in binary form, pre-processed/
print-ready files to a printer. I tried to open the printer by using
the share name but got this error when I did so:
FileStream was asked to open a device that was not a file. For support
for devices like 'com1:' or 'lpt1:', call CreateFile, then use the
FileStream constructors that take an OS handle as an IntPtr.
The file I need to write to the printer is print ready, i.e. I do not
have to pass the file through a print driver. How would I use the
objects referenced in the exception thrown above to do this? What is
it talking about?
Thanks,
Andy
I have a case where I need to write, in binary form, pre-processed/
print-ready files to a printer. I tried to open the printer by using
the share name but got this error when I did so:
FileStream was asked to open a device that was not a file. For support
for devices like 'com1:' or 'lpt1:', call CreateFile, then use the
FileStream constructors that take an OS handle as an IntPtr.
The file I need to write to the printer is print ready, i.e. I do not
have to pass the file through a print driver. How would I use the
objects referenced in the exception thrown above to do this? What is
it talking about?
Thanks,
Andy