473,396 Members | 1,786 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,396 software developers and data experts.

Getting the paper size for a custom printer form

Have you successfully added a custom form and then retrieved the paper size
using VB.

I tried
GetDeviceCaps(Hdc, PHYSICALWIDTH)

GetDeviceCaps(Hdc, PHYSICALHEIGHT)

and

DefaultPageSettings.PaperSize

But neither approach returns the correct values.

If you've done the above successfully I'd like to know so I'll keep looking
for a bug.

If you've had problems, that of cause would be good for me to know.

Thanks in advance for any help at all


Mar 29 '06 #1
1 1905
I want to make sure I was clear in my post.
I only have problems getting the paper size with my custom forms.


"Allen" <al***********@a-znet.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
Have you successfully added a custom form and then retrieved the paper
size using VB.

I tried
GetDeviceCaps(Hdc, PHYSICALWIDTH)

GetDeviceCaps(Hdc, PHYSICALHEIGHT)

and

DefaultPageSettings.PaperSize

But neither approach returns the correct values.

If you've done the above successfully I'd like to know so I'll keep
looking for a bug.

If you've had problems, that of cause would be good for me to know.

Thanks in advance for any help at all

Mar 29 '06 #2

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

Similar topics

0
by: Desmond | last post by:
hi, I am trying to print a report (custom paper size- 8.5inchx5.5inch) to a panasonic KX1121 dot matrix printer using crystal report that comes with vs.net 2003. The report print & preview ok...
1
by: Bruce Wood | last post by:
I'm having a devil of a time calling DeviceCapabilities() in order to get the list of paper names / codes / sizes for a printer. Here is my code and the input it produces: static extern Int32...
0
by: Anniech | last post by:
I use VB.NET to integrate with crystal report 9.0 to print a report with custom paper size (using Dot Matrix printer). I have already added a custom paper size in the printer server and set the...
0
by: Keith Wilson | last post by:
Hello all, not sure if this has been posted before but all similar posts never seem to get anywhere. I need to programmatically (vb.net) create a custom paper size for a specified printer...
1
by: lcifers | last post by:
I'm writing a batch printing app that will interface with other applications to print their native documents. All of the documents will be printed on the same size paper. On the main form, where...
4
by: Sukh | last post by:
Hi, I am tring to change the paper size from default to custom paper size. In print preview its showing my custom size but when I print it print on default paper size. Can any one help me to...
6
by: Brewtzaff | last post by:
Hello, I have a little problem to print my reports on custom sized paper. I got a db containing clubmembers, a query which selects only the needed infos to print out my membershipcards. My...
1
by: Anne DeBlois | last post by:
Hi, I want to programatically set the paper size of a print document. I created a class that inherits PrintDocument, so I can print some database records on 8" x 10" paper. I added this line...
2
by: Steve | last post by:
Hi All Using VB.net 2008, windows forms application on Windows XP SP2 I need to set the paper size when printing to an 80mm Epson docket printer using windows drivers Some customers have...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.