[Mono-list] Portable way to print

Daniel Morgan danielmorgan@verizon.net
Tue, 4 Jan 2005 01:08:09 -0500


System.Drawing.Printing.PrintDocument has not been implemented yet.

GnomePrint is the way to go if on Linux if you use Gnome as your =
desktop.

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Scott Willeke
Sent: Monday, January 03, 2005 11:27 PM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Portable way to print


IMHO, the suggestions here are quite complicated for basic printing=20
needs. Additionally, some of the suggestions are really not printing=20
solutions at all, but seem to just produce printable documents such as =
PDF.

Does System.Drawing.Printing.PrintDocument not work in mono? Why=20
couldn't one create code like that mentioned in the MSDN docs for=20
PrintDocument below?
http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/cpref/=
html/
frlrfsystemdrawingprintingprintdocumentclasstopic.asp

Thanks,

-scott

Sergio Duran wrote:

>Hi everybody,
>
>I'm looking for a way to send some text to a printer, I'm need=20
>portability since my program will be running on windows and linux, I=20
>now I cannot use FileStream("LPT1") on windows, and I've been reading=20
>about some ways using P/Invoke kernel32.dll  and CreateFile(), what's=20
>the best solution for this? (I dont need spoolers, I'll be sending the=20
>text to the printer directly)
>
>I'm currently coding in Visual Studio 2003, and the code compiles and=20
>runs perfectly under mono.=20
>_______________________________________________
>Mono-list maillist  -  Mono-list@lists.ximian.com=20
>http://lists.ximian.com/mailman/listinfo/mono-list
>
> =20
>
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list