[Mono-list] Printing from a service/non GDI app

Adam Tauno Williams adam at morrison-ind.com
Thu May 31 07:55:42 EDT 2007


> > > I should probably mention that this needs to work on both Unix and  
> > > Windows.
> > > Our test on Windows shows that System.Drawing.Print does not work for
> > > services. This is consistent with the MS documentation.
> > > (btw: In my opinion, a system that requires access to a graphic  
> > > display in
> > > order to print, is broken)
> > Have you tried setting the "allow interaction with desktop" option  
> > for the Windows service? That should allow access to graphics; not  
> > sure about Microsoft's implementation of printing though.
> No, I have not tried that. I resent doing that, actually. I simply can not 
> understand that one should have to allow something as lowlevel as a 
> print "thingy" to interact with the desktop. Clearly it can not be a sound 
> design?

Tomcat (Java) does much the same thing,  it tries to access DISPLAY
unless explictly told to run headless.

You could just create PDFs with one of several assemblies for that
purpose.  In any recent LINUX/UNIX system you can submit a PDF directly
to the print system and it will print.  Don't know about Windows, but
I'd bet you could rig it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070531/f896654c/attachment.bin 


More information about the Mono-list mailing list