?
Solved

Setting the paper size for a printer in VB

Posted on 2003-03-20
5
Medium Priority
?
342 Views
Last Modified: 2010-05-19
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
Comment
Question by:Rocky_Roggers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Expert Comment

by:tejas_pathak
ID: 8179189
What method are you using to print the content programatically ? i.e are you using Printer object ?
0
 

Author Comment

by:Rocky_Roggers
ID: 8179207
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
 
LVL 3

Accepted Solution

by:
VBtom earned 280 total points
ID: 8179315
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
 

Expert Comment

by:CleanupPing
ID: 9446933
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Simple Linear Regression

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question