Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
1st Time Report Listener Help
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
1st Time Report Listener Help
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01224572
Message ID:
01224572
Vues:
60
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.PNG
r1=NEWOBJECT('ReportListener')
r1.ListenerType     = 1 && Buffer all pages, use preview container
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform