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

Mads Bondo Dydensborg mbd at dbc.dk
Thu May 31 05:50:34 EDT 2007


onsdag 30 maj 2007 16:14 skrev David Anes:
> I've had no problems using System.Drawing.Printing in Unix from command-line
> applications. If you have the SMB printer configured and running in CUPS you
> will not have problems printing there either.

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)

Also: our source material will be mostly pdf. We surely do not want to write a 
pdf to System.Drawing.Print "program". Do we?

So, would you recommend looking at calling out to a configured cups server? 
Does cups run on windows (the server program)? We need to be able to deploy 
in a Windows only setting.

I must admit I am quite confused about printing under Windows. This could have 
been clearer from my post.

Thanks in advance,

Mads

> 
> Regards,
> David Anes.
> 
> 2007/5/30, Mads Bondo Dydensborg <mbd at dbc.dk>:
> >
> > Hi there
> >
> > I need to print from a remoting service (assume for the discussion I need
> > to
> > print pdf/ps). Using C++/Unix, I would normally call out to a cups server,
> > and get it printed. No problem. .NET however?
> >
> > I am quite confused about the right approach in Mono/.NET?
> >
> > System.Drawing.Printing does not work in services.
> >
> > Could I somehow get a cups server to support an SMB printer attached to
> > e.g. a
> > Windows workstation, and print using that?
> >
> > Should I look for third party solutions?
> >
> > I am quite at loss here, please advise.
> >
> > Regards,
> >
> > Mads
> >
> > --
> > Med venlig hilsen/Regards
> >
> > Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo
> > Dydensborg
> > Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86
> > 77 34
> >
> > _______________________________________________
> > Mono-list maillist  -  Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
> 

-- 
Med venlig hilsen/Regards

Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo Dydensborg
Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77 34



More information about the Mono-list mailing list