Dave

There ain't no such beast as Tag1 :)

Paul
-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Dave Crozier
Sent: 30 September 2011 12:14
To: [email protected]
Subject: RE: Report Builder

Don't you need to replace Tag1 and Tag2 AND NOT TAG?

Dave


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Paul Newton
Sent: 30 September 2011 11:34
To: [email protected]
Subject: RE: Report Builder

Dave

OK I now have code which runs when the report is saved  ...

        Procedure Execute(oEvent)
                Go Top In FRX
                Replace Tag With "" In FRX
                oEvent.SetHandledByBuilder(.T.)
                oEvent.SetReloadChanges( .T.)
        EndProc

But after the report has been saved Tag still contains the original stuff that 
was there

Paul


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Dave Crozier
Sent: 30 September 2011 11:19
To: [email protected]
Subject: RE: Report Builder

I'm just looking at it now... if I find anything obvious I'll post it ... 

Hmm ... looking into the code .... "There be Demons"... lol!

Dave


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Paul Newton
Sent: 30 September 2011 11:06
To: [email protected]
Subject: RE: Report Builder

Dave

More progress - setting Objtype and Objcode to -1 in the frxbuilder table 
allows the code to fire ....

Paul

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Paul Newton
Sent: 30 September 2011 11:05
To: [email protected]
Subject: RE: Report Builder

Thanks Dave

I have added a record to the frxbuilder table with Record type "H" (event 
handler), class "ExitHandler", library "frxhandlers.prg" and event type "6" 
(layout is being saved to disk".  Unfortunately when I save a report the 
messagebox invoked by the ExitHandler class is not being displayed ...

Paul

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Dave Crozier
Sent: 30 September 2011 10:50
To: [email protected]
Subject: RE: Report Builder

Paul,
Just sent you the pdf "What's new in VFP9" which has a full chapter on 
extending the report builder. It was a free issue when VFP9 came out.

Dave


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Dave Crozier
Sent: 30 September 2011 10:41
To: ProFox Email List
Subject: RE: Report Builder

Ah, I see now.

Where are you trying to put your code in the Report Builder Event Handler?

Dave


[excessive quoting removed by server]

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

Reply via email to