Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Printer To - Network Printer IP Printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00858153
Message ID:
00858706
Vues:
12
Kirk,

Take a look at Re: Changing printer from default Message #856526. Maybe it's the same problem.

>In my application, I allow the the user to save the name of the printer where they want an additional report to be printed. To fill in the printer, I call the getprinter() function and save the value. Then in the program, after I send a report to the default printer, I :
>
>
>* If there is a secondary printer send it to that one with no prompt
>IF !EMPTY(lcPrinter2)
>  IF STREXTRACT(lcPrinterChoice,[|],[|],2)=[1]
>	SET PRINTER TO NAME (lcPrinter2)
>	REPORT FORM ctReprintDemo TO PRINTER noconsole
>  ENDIF
>ENDIF
>
>
>This seems to work fine as long as the printer name is something like \\Server\PrinterName. But at the client, they have an IP printer on the network, and when they select it from the list in getprinter() it shows on the list as "AdmissionPrinter" and this is what I end up saving. When my code actually tries to send it there, I'm guessing it can't figure out what "AdmissionPrinter" is and ends up sending the second copy to the default printer. But if put a prompt in the report command (they don't want this by the way), and they select "AdmissionPrinter" it goes to the admission printer.
>
>Anybody have an idea on how I can correct this behavior?
>
>Kirk
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform