C# Printing

  • Thread starter Thread starter Meenakshi
  • Start date Start date
M

Meenakshi

Hello everyone
Can anybody help me out. i want to print two pages per single sheet. a
book like printing. that is first page as well as last page of the
document print on same side of the single sheet. how can i do this
thru C# language
Thanks
Regards
Meenakshi
 
You can enable the user to change printer settings by
performing the following steps.

Create an instance of the
System.Drawing.Printing.PrinterSettings class. For our
form, add the following line of code:
private PrinterSettings prtSettings = new PrinterSettings
();

Set prtSettings to the PrinterSettings property of the
PageSetupDialog:

private void filePageSetupMenuItem_Click(Object sender ,
EventArgs e)
{
PageSetupDialog pageSetupDialog = new PageSetupDialog
();
pageSetupDialog.PageSettings = pgSettings;
pageSetupDialog.PrinterSettings = prtSettings;
pageSetupDialog.AllowOrientation = true;
pageSetupDialog.AllowMargins = true;
pageSetupDialog.ShowDialog();
}

Now the Printer button in the Page Setup dialog is
enabled. If you click the Printer button, the Printer
setting page will be displayed.


Please check at
http://www.ondotnet.com/pub/a/dotnet/2002/06/24/printing.ht
ml
 
Back
Top