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
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