Setting Printer Orientation using System.Drawing.Printer.PrinterSettings

  • Thread starter Thread starter Nalini
  • Start date Start date
N

Nalini

Hi All,

I am using Win32 APIs to set the orientation of Printer at runtime. I
get StackOverFlow in SetPrinterInfo method.

I tried to use the the System.Drawing.Printer.PrinterSettings class to
do the same. But could not get this done.

If anyone has tried using System.Drawing.Printer.PrinterSettings
class, can you pls post the some sample code.

Thanks
Nalini
 
* (e-mail address removed) (Nalini) scripsit:
I am using Win32 APIs to set the orientation of Printer at runtime. I
get StackOverFlow in SetPrinterInfo method.

I tried to use the the System.Drawing.Printer.PrinterSettings class to
do the same. But could not get this done.

If anyone has tried using System.Drawing.Printer.PrinterSettings
class, can you pls post the some sample code.

<http://www.mvps.org/dotnet/dotnet/samples/printing/downloads/PrintFramework.zip>
 
Thank you Wagner.
I have a different scenario. I have html pages,dwf files,jpg which
need to be printed at runtime. The type of file is decided only at
runtime, so I cannot use Graphics to for the same.

I think, the SetHDevMode of PrinterSettigns can help me, but did not
get it to work.

May be you can help me.

Thanks
Nalini
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top