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

Is there a user table you can store each user's printer name in?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform