Microsoft
Software
Hardware
Network
Question : visual Basic PowerPacks PrintForm margins
Hi All,
I am trying to Print my Winforms in C#, using the visual Basic PowerPacks PrintForm, But I am not sure how to set the margins for the print page?
Any help would be appreciated.
Thanks,
Code Snippet:
1: 2: 3: 4:
private void btnPrint_Click_1(object sender, EventArgs e) { printForm1.Print(); }
Open in New Window
Select All
Answer : visual Basic PowerPacks PrintForm margins
If you hover over the error and click on it it will show you how you can qualify it.
Try: new Microsoft.VisualBasic.Powe
rPacks.Pri
nting.Marg
ins(0, 0, 0, 0);
Or
Try: new System.Drawing.Printing.Ma
rgins(0, 0, 0, 0);
I believe either one will work.
Random Solutions
SendObject doesn't send the email.
ODBC - Insert On A linked Table Failed
Mail Merge: Data across multiple rows
Access Return to Main Menu
windows server 2008 stop beeps, muting sound did not stop all beeps
How do I get rid of Microsoft 2007 Office
Integrate a counter variable into VBA code... how to?
Printer Driver Bull 4/68 for NT 4.0
Problem with subreport printing?
IIS setting transfer to new web front end