Tracy Pearson wrote:
> If you use a tool to open the report outside your environment you might see
> this behavior. I see the global setting is saved in the registry. However,
> modifying a report in the runtime does not seem to respect this setting,
> from what I've seen. I have to check it myself from time to time.
>
Likewise, you might look at a ProjectHook---specifically the BeforeBuild
event---to go through the reports in your project and manipulate them to
make sure that nothing is saved in the TAG, TAG2 fields and some
manipulation possible in the EXPR field. Here's a snippet of a
projecthook.BeforeBuild that I used in an old project (from VFP7 days,
iirc):
FOR EACH oFile IN Application.ActiveProject.Files
WITH oFile
DO CASE && Check .Type to see what operation needed
CASE .Type = "R" && clear out report tags
lcCopyFile = LEFT(.Name,LEN(.Name)-1) + "*" && will make it ??*
to get all parts
USE (LEFT(lcCopyFile,LEN(lcCopyFile)-1)+"x")
&& mjb 01-18-01 thanks to wOOdy from Profox
LOCATE FOR objtype=1 AND objcode=53
IF FOUND() THEN
replace Tag WITH "", Tag2 WITH "" && mjb 09-20-02 BLANK doesn't
work!!!!
IF "ORIENTATION=1" $ Expr
REPLACE Expr WITH "ORIENTATION=1"
ELSE
REPLACE Expr WITH ""
ENDIF
ENDIF
USE && close report file
ENDCASE && .Type
ENDWITH && oFile
ENDFOR
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.