Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modify report protected

Status
Not open for further replies.

samsnead

Programmer
Sep 3, 2005
100
CA
I have tried following code but unable to preview report unless I remove the word protected. Is there a way around this as we want users to be able to modify reports but want to use protected mode so they can have "real captions" instead of field names in report

SET REPORTBEHAVIOR 90

_REPORTBUILDER='reportbuilder.app'
_REPORTPREVIEW="ReportPreview.app"
_REPORTOUTPUT="ReportOutput.app"

SELECT billclntdriver

*THE COMMENTED LINES DON'T WORK WITH PREVIEW
* MODIFY REPORT ? protected WINDOW (oRepForm.Name)
* MODIFY REPORT ? protected
MODIFY REPORT ? WINDOW (oRepForm.Name) THIS WORKS
 
MODIFY REPORT without protection and from the Report menu, choose Properties. Click on the Protection tab and see which items are checked.

Tamar
 
Hi Tamar - we wanted to run it in protected mode so that we could display meaningful captions for our users that would be modifying the report. I am just reading all I can on the report listener to see if I can code around this.
 
Understood. My suggestion is to do what I said at design-time and make sure you have the protection settings you intend. It sounds like someone's been overzealous in setting them.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top