Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My preview switches select areas
Message
 
 
To
22/09/2000 14:29:02
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00419936
Message ID:
00420147
Views:
32
George,

I've never seen this, but grids seem to be forceful about pulling the current alias back to themselves while they have focus. Is it possible to actually run the form from another default datasession form? Or maybe force focus out of the grid to an unbound control and keep the grid from getting focus while the report preview is up?

>I have a report which is previewed from a form with a grid on it. The method of the form which prints the report is as follows:
>
>LOCAL lnSelect
>lnSelect = SELECT()
>SELECT * FROM test INTO CURSOR rptTemp
>REPORT FORM test PREVIEW
>SELECT (lnSelect)
>
>
>The report TEST.FRX has the following in it:
>A text field which displays ALIAS() in the detail band.
>
>If there are 6 records selected, the output looks like:
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>
>This is correct.
>
>When the user presses the page-down key, the page number stays at 1, but the report says:
>LV_TRAD
>LV_TRAD
>
>As I said, there is a grid on the form which is used to run the report preview. As you may have surmised, the recordsource of the grid is 'LV_TRAD'.
>
>Sometimes, if there are a lot of records in rptTemp, the report will look like:
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>RPTTEMP
>LV_TRAD
>LV_TRAD
>
>Any ideas on what would cause this odd and intermittent (though usually reproducible) behavior?
>
>- George [Perplexed]
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform