Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing report controls toolbar
Message
From
05/03/1999 13:38:45
 
 
To
04/03/1999 22:41:04
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00194303
Message ID:
00194642
Views:
17
>a feature of my application allows a user to modify a report from the visual maxframe report catalog. functionally the user selects a report then clicks a button which copies the selected report as a new .frx with a new name and activates the report designer. does anyone have any suggestions for showing the fox report controls toolbar when the report designer is activated.

You can do this with
IF WEXIST("Report Controls")
ACTIVATE WINDOW "Report Controls"
ENDIF

but there is a problem.

you can only ACTIVATE WINDOW for windows that are already defined. So if the report controls toolbar wasn't there in the first place, you'll get an error trying to activate it. The way that to toolbar knows to put itself there in the first place is its corresponding record in the Foxuser.dbf file. It exists as id = "TTOOLBAR" and Name = "Report Controls". So if you make sure that this record exists in the foxuser file, the toolbar will show up when the user modifies a report. But the user can still close the window thereby removing it from the table, and preventing himself from ussing it in the future UNLESS you set that record's readonly field to T. I have not yet had to implement this in a distributed app, so I have not worked out code to ensure this, but it would involve ensuring that the Foxuser file distributed with your app had the toolbar defined in it, and making sure that that foxuser record was readonly.

Bet you wanted a simpler answer huh? Sorry, there's not one.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform