Link to home
Start Free TrialLog in
Avatar of Rocky_Roggers
Rocky_Roggers

asked on

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.


 
Avatar of tejas_pathak
tejas_pathak

What method are you using to print the content programatically ? i.e are you using Printer object ?
Avatar of Rocky_Roggers

ASKER

Yes, I am using the Printer Object.
I have tried this :
Printer.PaperSize = vbPRPSUser
But it gives "Invalid Property Value Error."


Regards,
Rocky Roggers.

ASKER CERTIFIED SOLUTION
Avatar of VBtom
VBtom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.