• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

Setting the paper size for a printer in VB

Hi,
   I am using EPSON LX-300 printer to print receipts for a supermarket automation.

   Now, my problem is that the driver for the printer does not support a smaller paper size. So when I print, the smallest paper size available is 8" in height. And I want to print receipts which are 5" in height.

  How do I programatically set the papersize? I am using VB as the programmnig language and if I give any other papersize the error shown is "Invalid Property Value". Is there any other workaround possible? Are there any other drivers available with EPSON LX 300 which support smaller paper size?

  Kindly Suggest.

Regards,
Rocky Roggers.


 
0
Rocky_Roggers
Asked:
Rocky_Roggers
1 Solution
 
tejas_pathakCommented:
What method are you using to print the content programatically ? i.e are you using Printer object ?
0
 
Rocky_RoggersAuthor Commented:
Yes, I am using the Printer Object.
I have tried this :
Printer.PaperSize = vbPRPSUser
But it gives "Invalid Property Value Error."


Regards,
Rocky Roggers.

0
 
VBtomCommented:
Try if this also generates an error, it might work
e.g.: 8 inch width, 5 inch height

Printer.Width = 8 * 1440 'twips
Printer.Height = 5 * 1440
0
 
CleanupPingCommented:
Rocky_Roggers:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now