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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Reports

Status
Not open for further replies.

AlastairP

Technical User
Feb 8, 2011
286
AU
Good morning,

I have created a report which can have negative numbers. I have configured the report using dynamic, to have negative values in red. When I preview the report, this works fine. But when I run the report in my previewer (Container on a form) , I don't see dynamic effects.



 
Dynamics depend on reportbehavior 90 and you have to add reportoutput.app and reportpreview.app to your exe to make it work.
And don't define window for a preview window, just use the PREVIEW clause of the REPORT FORM command.

Bye, Olaf.
 
Hi Olaf, I will look into this.
I had set reportbehavior 90
I get the problem during developement, so not sure whether reportoutput.app and reportpreview.app would make a difference at this stage.
I will experiement with PREVIEW clause of the REPORT FORM command, and report back

Alastair
 
So how do I preview the report in previewer I have on the form? There has to be a way to make it work.


Code:
rl=thisform.previewcont1.listenerref
REPORT FORM  dailysummary OBJECT rl 

lcRec=rl.OutputPageCount
thisform.previewcont1.totalpages=lcRec
lcPAge=thisform.previewcont1.pageNo


WAIT "" WINDOW AT 20,20 TIMEOUT .005
	
rl.OutputPage( lcPage, thisform.previewcont1, 2 )
 
Fine, you could have said earlier your using a reportlistener.

OK, what I did is a simple report with dynamics defined for a field and it didn't print in reportbehaviour 80, also not in 90 in a preview window I created by DEFINE WINDOW. That's how I came to my recommendation.

You're using a listener, which indicates you're already in reportengine 90 mode. I don't know whetern listener.outputpage renders dynamics, I know dynamics are working with a listener, even if you just start a report the legacy way witout a OBJECT clause a standard listener is used to render the dynamics via the script you can watch in the dynamics dialog and IIRC VFP just creates a reportlistener on the fly for that. Maybe you somewhere need to tell it should use r1, your own reportlistener. I'll have to investigate myself, before I could answer that.

Bye, Olaf.




 
Hi Olaf,
Thanks, I will keep looking into it and if I can find a work-around, report back

Alastair
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top