473,385 Members | 1,855 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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.Heigh t = 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
Nov 20 '05 #1
2 1695
If you use automation offered within Microsoft Word this is a snap.

Let me know if you would like help with that.

"ayoubahmed" <ay********@hotmail.com> wrote in message
news:VB***********************@news4.srv.hcvlny.cv .net...
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.Heigh t = 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

Nov 20 '05 #2
yes,
i would like help with that. Anything to solve this problem.

"scorpion53061" <sc************@nospamhereeveryahoo.com> wrote in message
news:Ox**************@TK2MSFTNGP10.phx.gbl...
If you use automation offered within Microsoft Word this is a snap.

Let me know if you would like help with that.

"ayoubahmed" <ay********@hotmail.com> wrote in message
news:VB***********************@news4.srv.hcvlny.cv .net...
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.Heigh t = 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


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gilga123 | last post by:
Trying & trying ad infinitum to print page in landscape mode from Java program - orientation is correct landscape but printing width will NOT go to landscape - always prints in portrait mode width...
11
by: Not4u | last post by:
Hello, I have a problem with CSS code. I want to have one menu column with a fixed width and a 100% height and the rest of the page for content. ---------------- |.|.|<--100%-->|...
5
by: S | last post by:
Whew! Thanks for your help on that last post. I actually understand what you wrote. I'm trying not to use these groups as a way to get my code written for me, I really want to understand what...
9
by: Adam | last post by:
Can someone please help!! I am trying to figure out what a font is? Assume I am working with a fixed font say Courier 10 point font Question 1: What does this mean 10 point font Question 2:...
1
by: VB Programmer | last post by:
I have a datagrid which is bound to a datatable that I create on the fly. How do I set the width of each column via code? Ex: Column 1 is always 100, Column 2 is always 250, etc... Thanks!
0
by: Raed Sawalha | last post by:
I have a table inside repeater like following: <asp:Repeater id="Repeater1" runat="server"> <ItemTemplate> <TABLE id="Table3" cellSpacing="1" cellPadding="1" width="300" border="1"> <TR> <TD...
1
by: JuanCarlos Gomez | last post by:
I am try to customize papersize on VBNET (PrintDialog, PritnDocument), but only have access to defined Paper Size on my Printer (FX-2180), how I can customize papersize and use it. Because all the...
2
by: Farce Milverk | last post by:
Hi, I'm looking for an algorithm to resize an image of arbitrary size to a "fixed" / required width and height. For example, my application requires that images be no larger than 440 pixel...
1
by: karleyb | last post by:
Could someone please tell my why this won't work. THe value purchase.value seems to be blank. Is there any way to get the value of a radio box? <table width="57%" border="0" align="center"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.