[Mono-list] Portable way to print
Matt Nuzum
matt@followers.net
Tue, 28 Dec 2004 22:18:08 -0500
On Tue, 28 Dec 2004 13:03:13 -0600, Sergio Duran <sergioduran@gmail.com> wrote:
> 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.
This may or may not help you at all: fwiw there is a .net port of
wxWidgets that has cross platform (gnome, windows, mac) printing
support. I haven't tried it yet, but I'm in the "thinking about
planning" stage of a project that will generate reports. If I can get
wxWidgets to do the printing, I will, otherwise I'll be creating a
web-based application that creates PDFs on the fly.
--
Matthew Nuzum <matt@followers.net>
www.followers.net - Makers of "Elite Content Management System"
View samples of Elite CMS in action by visiting
http://www.followers.net/portfolio/