Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User ability to designate a report-specific printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01562970
Message ID:
01563032
Vues:
101
>>I need the ability of the user to specify that a particular report will always be
>>sent to a certain printer without the user having to select it every time the
>>report is printed.
>
>Create a form that links reports to printers. Before you run each report, access that table and set it to the indicated printer. Use the APRINTERS() function to make sure the printer they've setup on that form still exists in context on the local user's machine.
>
>>For example, all invoices will be sent to a pre-selected printer disregarding
>>any default printer settings at the workstation where the report was printed.
>
>Yup. That'll do it.

We do something very similar but note that if a printer has been replaced on a PC or the network and someone did NOT delete the old printer from the printers folder then it will still show in APRINTERS() and if selected will generate an error that needs to be trapped and reported to the user. This is almost always the case when a printer is replaced.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform