Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 9 - Report using ReportListener
Message
 
 
To
27/09/2004 19:47:40
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00946484
Message ID:
00946727
Views:
11

When I run a Report clicking it from a form all controls star scrolling

When you say that you are "clicking on it", do you mean the preview?

I don't see this effect, even by trying really hard <g>, as shown by the property settings in the code snippet below, (using original Public Beta builds).


That typically was a SET TALK OFF, but I tried that and it doesn't work, or may be it's me, but the thing is I can't prevent it.


Yes, you can prevent it <s>.

If you're written your own preview or are using your own ReportListener to handle preview, you may have SET TALK OFF in the wrong session. IOW, the code that ReportListener is running may occur in any one of several sessions.

To fix this, you have to know what kind of code you're running and where it is occurring (session-wise). You need to think about:

*1 -- what session was the report listener created in?

*2 -- what session is the report data in ? (could be the form's session, could be private, could be a different one, could be the same as #1, might not be)

*3 -- what session is the private FRX copy in ?

*4 -- what session was the report launched in ? (could be the same as #2, might not be)

>L<
SET REPORTBEHAVIOR 90
SET TALK ON
ox = CREATEOBJECT("form")
ox.AddObject("x","commandbutton")
x.Visible = .t.
x.Top = 30
ox.AllowOutput = .T. && this is the default anyway
ox.Show()
REPORT FORM ? NOWAIT PREVIEW
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform