Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie to ReportListener - Preview probs
Message
From
03/10/2006 16:18:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Newbie to ReportListener - Preview probs
Miscellaneous
Thread ID:
01159111
Message ID:
01159111
Views:
94
Hi Everyone,

Someone suggested I try out the new ReportListener class to solve a problem. First off, any good "basics of" ReportListener articles out there - I read one by Tamar on her EffectsListener but could use more info.

Secondly, when I was setting up my test environment to start learning, a wierd thing happened with previewing a report. The code is simple:
* simple subclass of ReportListener
STORE CREATEOBJECT("QuotesReportListener") TO loReportListener

* set the output type; 0 = print, 1 = preview
STORE 1 TO loReportListener.ListenerType

* don't use the object this test...
REPORT FORM TestRept NOCONSOLE PREVIEW
Above previews the data properly.

If I instead hook in the report listener by changing above to
REPORT FORM TestRept NOCONSOLE PREVIEW OBJECT loReportListener
I get 3 of the columns of data disappearing (out of 5). I also get a memo field in the page headers not printing completely (it should print 6 lines of memo text but ends up printing 4 lines plus 1 line with "..." in it - nice of someone to add in the ellipsis :-) but I would rather it just print.

Are there bugs in the default ReportListener class? Can't go much further if I cannot even get the report to print "as it was" let alone doing the new things.

Thanks,

Albert
Next
Reply
Map
View

Click here to load this message in the networking platform