Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing multiple reports
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01426232
Message ID:
01426575
Vues:
72
>>Hi everybody,
>>
>>I'm using this code REPORT FORM oRegistry.ReportDir + "ShopInvoice" OBJECT loListener TO PRINTER PROMPT PREVIEW and then try to print several other reports using the same code.
>>
>>Is it possible to print all the reports to the same printer chosen by the first statement and don't preview the rest of the reports? Also, if the first report was cancelled, cancel the rest of the reports?
>>
>>Thanks in advance.
>
>I've done very similar in the past and here's how. I would create either an array or a cursor of the following reports I would want to run and the "alias" that specific report required to ensure it would be pre-selected before the next instance of "REPORT FORM" was called. Before calling the first report form, check the current active printer, you will probably have to test within the listener to see if / what the status changes to. Then, use that in subsequent calls via set printer to name...
>
>Then do a loop through the array or cursor and trap the escape and kick out as needed. First pass include the TO PRINTER PROMPT, but just have "TO PRINTER" on the rest of the reports.

Don,

1. How would you know if the first PREVIEW was cancelled or not or if any of subsequential to printer were cancelled or not (I think Agnes had a FAQ on the last one - I'll check).

2. How do you know (through listener) which printer was selected?

Thanks.
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