[Mono-list] Portable way to print

Daniel Morgan danielmorgan@verizon.net
Tue, 28 Dec 2004 18:40:33 -0500


I don't have a solution for you, but I have some ideas for you to research.

You could print to a PDF file.  I have heard that a PDF is mostly just
PostScript.

I think Cairo even has Postscript output.  There is C# bindings to cairo
available.  On Mono on Linux, it just libgdiplus.so and cairo for
implementing System.Drawing.

There is GnomePrint# for C# bindings to GnomePrint, but it does not work on
Windows as far as I know.  Unless, the Cygwin project has ported that too.

Other things of interest:
- GimpPrint
- Xprint
- CUPS
- GDI and GDI+ in Windows
- Ghostscript

I would Google for the things above.

I would love to find a cross-platform printing solution for .NET and Mono
that works on Windows, Linux, etc...
However, I have not found one. 

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Sergio Duran
Sent: Tuesday, December 28, 2004 2:03 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Portable way to print


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. _______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list