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
Custom indexing on sub folders
Selected collating sequence not supported
gpedit.msc not found in Windows 7 Home Premium
JET SQL - Merging fields from two tables into one, skipping duplicates
which is worse - missing index or unused indexes
Move Mailbox from Exchange 2007 SP2 to Exchange 2010
Bridge Network Connections
How do I match pixel size to physical size for printing?
SQL View to show the data using PIVOT
Excel / VBA: Code must check if there is any Cell in some filtered rows highligthed in RED...If so code must not run.