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
Open a new Excel 2007 instance in Windows 7
Login failed for user 'sa'. (.Net SqlClient Data Provider)
The SQL service failed to start on Windows 2003 Server
XP Pro SP3 boots to blank blue screen.
BSOD 0X40000080
In MS Access 2003 - how do I import scanned images easily into record?
Disable save a copy in Outlook 2003's Sent folder when sending out emails
Get autonumber ( unique ID ) of newly inserted record, then insert value into a relating table, ms access 2003
Access 2003 report to print labels
sql cluster - moving tempdb