MODIFY REPORT (m.vFile) NOENVIRONMENT PROTECTED SAVEAlthough our customers get access to create/modify individuals reports, we never save the dataenvironment with the default report and it will always run in protected mode. BTW the MODI REPO is called from within a small exe which receives just one parameter and that's the frx including the path. If the parameter can be validated, there are some SET commands like path, reportbehavior and sysmenu and then the above mentioned modi repo.
>lvtemp='C:\Programme\Microsoft\VFP9.1\' >*lvtemp=ADDBS(THIS.hcStartPath) > _REPORTOUTPUT = lvTemp+'ReportOutput.app' > _REPORTPREVIEW = lvTemp+'ReportPreview.app' > _REPORTBUILDER = lvTemp+'ReportBuilder.app' > >?FILE(_REPORTOUTPUT) and FILE(_REPORTPREVIEW ) and FILE(_REPORTBUILDER) > >SET PATH TO C:\Programme\Microsoft\VFP9.1 >SET REPORTBEHAVIOR 90 >CREATE CURSOR cur1 (c1 c(10)) >INSERT INTO cur1 VALUES ('1') >INSERT INTO cur1 VALUES ('2') >INSERT INTO cur1 VALUES ('3') > >MODIFY REPORT e:\se\temp\modrep.frx >>