Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Default printer for deployment
Message
 
 
À
12/04/2001 13:47:45
Sammy Derban
Ghana Telecom
Accra, Ghana
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00494956
Message ID:
00495207
Vues:
16
>Hello all,
>I have this code for user to change default printer.
>lcPrinter=GETPRINTER()
>SET PRINTER TO NAME "&lcPrinter"
>This works fine on development machine.
>When i deploy my application it does not work. no dialog box at all.
>What am i missing out.
>Thanks in advance.

Unrelated observation, but you don't need to use macro here. Just use name expression, e.g.
if !empty(m.lcPrinter) && User not Cancel the dialog
  set printer to name (m.lcPrinter)
endif
I just have a habit to avoid unnecessary macros if possible. Check David's Filer FAQ here in FAQ section regarding Macro/Evaluate/Name expression usage.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform