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
print pdf files from a watch folder, of print commandline.
MDT OS import problem
Text control on Access form - double click highlights word
Combo box with Multiple Value Member in Vb.net Win Form
Doing a VLOOKUP in a pivot table???
How to filter a CurrentDb.OpenRecordset?
Hard question:Tab Control Pages;To many command buttons!!
How do I restore a Mirror in SQL Server 2005 when it is in a "Unsynchronized Disconnected / In Recovery" state?
Permissions - Cant access Server from XP machine
IEXPLORE.EXE VIRUS?