Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preserving user's choice
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Preserving user's choice
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01235348
Message ID:
01235348
Vues:
64
Hi everybody,

I have an application which is printing Bills (in a scan loop). Originally it always was just printing them to the default printer. I thought I gave a user some option to view the bill before printing or to select a printer.

So, I have a dialog form with three options (Print/Preview/Prompt), which basically does:
DO CASE
CASE m.tnOption = 1
	REPORT FORM (m.tcReportName) TO PRINT NOCONSOLE
CASE m.tnOption = 2
	REPORT FORM (m.tcReportName) PREVIEW
CASE m.tnOption = 3
	REPORT FORM (m.tcReportName) TO PRINT PROMPT NOCONSOLE
ENDCASE
RETURN
Now, my problem is the following - if the user selected Print after previewing the first bill, I want to print all the bills now.

If the user didn't press Print from the preview, I want to cancel the process.

Same story with the prompt - if the user selected a printer, I want to output the rest of the bills on the same printer.
If the user selected Cancel option from this dialog, I want to cancel the process.

Do you have any ideas how can I achieve this functionality (preferably without report modifications) in VFP8?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform