-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: LovedJohnySmith
Message 5 in Discussion

  Hey Buddy:      You can achive this by using ReportDocument.PrintToPrinter 
Method. Which prints the specified pages of the report to the printer selected 
using the PrintOptions.PrinterName property. If no printer is selected, the 
default printer specified in the report will be used.  Lemmi explain the 
solution for your scenario.    Please put command button on your report viewer 
page, just rename it as "Print". Jut copy and paste the following code into 
Print Button Event:   PageMargins margins;    margins = 
Report.PrintOptions.PageMargins;
   margins.bottomMargin = 350;
   margins.leftMargin = 350;
   margins.rightMargin = 350;
   margins.topMargin = 350;
   Report.PrintOptions.ApplyPageMargins(margins);    // Select the printer.
   Report.PrintOptions.PrinterName = << Your Printer Name >>;    // Print the 
report. Set the startPageN and endPageN
   // parameters to 0 to print all pages.
   Report.PrintToPrinter(1, false,0,0);   Thanx, Smith


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to