Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Continuous labels
Message
De
13/04/2012 17:03:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Continuous labels
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01541484
Message ID:
01541484
Vues:
169
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform