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.
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.
What method are you using to print the content programatically ? i.e are you using Printer object ?
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.
I have tried this :
Printer.PaperSize = vbPRPSUser
But it gives "Invalid Property Value Error."
Regards,
Rocky Roggers.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.