Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preserving user's choice
Message
From
25/06/2007 11:17:51
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01235348
Message ID:
01235350
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>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.

I don't see any particular problem. In case of printing from preview you may check some local variable flag that will be reset by any report form band to catch printed/non-printed cases. In case of interactive printer selection you could give to user your own small form to do it and catch any user actions accordingly.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform