[Mono-list] Portable way to print

Sergio Duran Sergio Duran <sergioduran@gmail.com>
Tue, 28 Dec 2004 13:03:13 -0600

Hi everybody,

I'm looking for a way to send some text to a printer, I'm need
portability since my program will be running on windows and linux, I
now I cannot use FileStream("LPT1") on windows, and I've been reading
about some ways using P/Invoke kernel32.dll  and CreateFile(), what's
the best solution for this? (I dont need spoolers, I'll be sending the
text to the printer directly)

I'm currently coding in Visual Studio 2003, and the code compiles and
runs perfectly under mono.