Information générale
Catégorie:
Gestionnaire de rapports & Rapports
This is not a bad option and have considered it. Have you ever ran into a customer that would not allow wsh on the computers for security reasons? This was my only concern with going this route.
Thanks for the suggestion.
Tommy
>One way is to not use the PROMPT dialog at all; instead, select a printer from the APRINTERS()-returned array, and use the Wscript.Network's SetDefaultPrinter method to assign the printer as the default Windows printer, taking care of the printer assignment without invoking the PROMPT clause for every report - IOW, you can have a separate 'sticky' dialog that assigns the default printer, and then simply print the report without presenting the selection dialog each time, and you can query the current assignment at any moment using SET('PRINTER',2); the WSH method works the same regardless of Windows platform.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement