Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Continuous labels
Message
From
13/04/2012 17:03:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Continuous labels
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01541484
Message ID:
01541484
Views:
167
An application I inherited prints labels on dedicated label printers using continuous feed. The printer names were hard-coded in the application, like this:
* For example
SET PRINTER TO NAME Labels
LABEL FORM SomeLabel TO PRINT
There were several different specifically-named printers. Since different users had different printers installed, this was causing some errors. So I changed the code to prompt for a printer instead:
LABEL FORM SomeLabel TO PRINT PROMPT
Now the users are complaining that they have to set the page size every time they choose the right printer. I tried adding these lines (with the appropriate length and width for the given label) to the Expr field of the first record in the LBX, but it doesn't seem to have helped:
PAPERSIZE=256
PAPERLENGTH=1524
PAPERWIDTH=1016
Short of going back to SET PRINTER TO NAME, is there a way to solve this?

(And, of course, I don't have any of these printers available for testing, so I have to guess and let the client try it.)

Tamar
Next
Reply
Map
View

Click here to load this message in the networking platform