Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on reports, To preview or not to preview
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Question on reports, To preview or not to preview
Miscellaneous
Thread ID:
00387163
Message ID:
00387163
Views:
55
I have a general question that involves reports and previewing.

My Situation: I have a menu 'Reports' and under that menu i a list of all the aviable reports someone can print. When they select a report its generated and run with 'report form reportname preivew' so every report is previewed. Now we all know that when you preview something you get that toolbar which allows you to cancel or print it. Well when you click on the printer it prints but does not prompt you to select a specific printer or a specific page. It dosent give you the option that 'report form reportname to printer' does. Now my users need to select which printer they want to print on, so ...


Possiable Solutions:

Solution 1: Figure out somehow to tell what button was pushed on the print preview toolbar. This way when the print button is pushed i can execute the 'to printer' or 'getprinter()' command that brings up the form that allows you to select printing options.

Solution 2: I can have a submenu under each report that makes them select 'preview' or 'print'

Solution 3: I can make a global form that run when each report is selceted that allows them to selct preview or printer. Or if the meun command already loads a form that gathers more information required for the report i can put it on there.

Solution 4: I have two meun options under 'File,' one prompting 'Preview first' and one 'Directly to printer.' Depending on which one is checked (or marked) the report acts accordingly.

Solution 5: Same as 4 but i could put the options on the 'Program Specifications' form of the program.

Solution 6: In my user table i could add a field for what printer each one wants to print on, and programatically change to the printer with 'set printer to name printername' everytime they want to print. This way i could preview everything.

Solution 7: When the user selects a report form the menu i could do a 'getprinter()' and the run the preview and when they click print it should print on the printer they selected earlier. (Havent tested this one yet, they guy next to my just thought of it)

I am leaning toward solution 4 or 7 cause i think those would be the simplest to understand not only for the users but for me too.

So my question is; What one do you think is the best solution? Or do you do it totally different from the solutions above? (if so please explain)

Thanks ahead for your time and opinions.
-Eric Stephani
Next
Reply
Map
View

Click here to load this message in the networking platform