Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I make visible Reports control toolbar ..
Message
From
29/10/1998 12:40:07
 
 
To
29/10/1998 11:05:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00152355
Message ID:
00152411
Views:
24
>How can I make visible Reports control toolbar when I issue a modify report command from an application.
>I use VFP 5.0 and it shoud work with EXE version.
>I try to allow user to customize report, and without the toolbar user can modify fields in report, but it is not possible to change a caption in any label.
>Or is there another way to do it?
>Janusz

Edward's solution will work if you make the view menu available in your app. If not, the solution becomes considerably more difficult.
From what I have found, the most dependable way to do this is to make sure that the report controls toolbar is open when you close the report designer. Then when you compile, it should be open in the exe. But if the user closes the toolbar, there is no way for you to get it back.
ACTIVATE WINDOW doesn't work, because if the toolbar wasn't open in the first place, it can't be activated. So, after compiling your program with the toolbar open, go to your Foxuser.dbf table and locate the record for this toolbar (id = "TTOOLBAR", name = "Report Controls"), and set that record's readonly field to T. This prevents the user closing the toolbar from being written to his preferences. You will then have to distribute this foxuser.dbf to your users, or figure out a mechanism for adding this record to their foxuser file. A real PITA, I know, but I believe this is the only way to do it.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform