Prasad

Prasad

  • NA
  • 1
  • 0

Printer settings through C# coding

Mar 6 2006 11:19 PM

Hi,
    I am using the below code to print some content

ProcessStartInfo psi = new ProcessStartInfo();
psi.UseShellExecute = true;
psi.FileName = Application.StartupPath + "\\ActionPlan.html";
psi.Verb = "Print";
psi.WindowStyle = ProcessWindowStyle.Hidden;
System.Diagnostics.Process.Start(psi);

But the problem with this code is, it is printing the content with default printer settings.
My requirement is to print the content in A4 size layout.

How to do it in C#.Net coding.