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.
 
yes,
i would like help with that. Anything to solve this problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top