how to customize your width & Height of a paper in documentprint1

  • Thread starter Thread starter ayoubahmed
  • Start date Start date
A

ayoubahmed

Hi,,
Im trying to print invoices in VB.net, and the invoice is 8.5 x 8.5 inches.
Now i have to specify the new height, but when i do specify it using the
following commands
------------------------------------------------
PrintDocument1.DefaultPageSettings.PaperSize.Height = 8.5

PrintDocument1.DefaultPageSettings.PaperSize.Width = 8.5

PrintDocument1.Print()

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

it tells me that i cann't do this because the Page's kind is not custom.
What can to print the invoices using these widths.

Thank you

Ahmed
 
If you use automation offered within Microsoft Word this is a snap.

Let me know if you would like help with that.
 
Back
Top