How to print a card of 2.3*3.5 inches using VB and data report

Hello Experts,
I am working on a project with Visual basic 6.0 as front end and MS access as back end. My reports are Data reports. I have to print ID cards on a paper of size  2.3*3.5  inch. Please guide me how to set the paper size through Coding.(I have used Adodc for reports, Not Data environment.)
laveshvermaAsked:
Who is Participating?
 
LeithauserCommented:
Use
Printer.Height = Y
Printer.Width = X
X and Y are in pixels. 1440 twips equal 1 inch, so you could also say
 
Printer.Height = 230 * 1440
Printer.Width = 3.5 * 1440
 
0
 
GRayLCommented:
you meant:

Printer.Height = 2.30 * 1440
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.