Hi all, I'm currently working with a Report Listener for the 1st time and have some difficulties I hope someone can help me with. so far all the examples I've seen are implemented using a form as a preview container but I'm trying to make it work within a container object.
The example in the VFP documentation worked as expected for the preview part but if I try to access some of the properties of the listener I get an error message stating the property doesn't exist. Browsing the objects with the debugger at run time confirms that. Now, as far as I understand once you set the PreviewContainer property, that container gets a reference to the Report Listener Object and inherits all of his properties and methods but in this case that's just no happening.
My questions are: what am I doing wrong? Is it even possible to set a container as the PreviewContainer of a Report Listener object and that container inherits all its properties and methods as a form does?
Maybe I'm taking a wrong approach from a design POV, so if that's the case I'd like to hear suggestions.
Finally, here's the code I'm using to call the report and a screenshot of the form so you have a better understanding of what I'm trying to accomplish.
http://egomez.tripod.com/Otros/containerexample.PNGr1=NEWOBJECT('ReportListener')
r1.ListenerType = 1
r1.PreviewContainer = This.parent.parent.ctnReporte.Egreportviewer1.ctnPreview
REPORT FORM cxpsup01 OBJECT r1
This.parent.parent.ctnReporte.Egreportviewer1.Setreport(r1)
This.parent.parent.ctnReporte.Egreportviewer1.Refresh()
Thanks in advance,
Enmanuel
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain