Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Collection Object with report
Message
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017295
Message ID:
01017302
Views:
25
Marcel,

The FoxPro reports work of the cursor/table only and print one detail record per one record in the current alias. If you want to print one time and not from a cursor, create a tem cursor with one record and make it current before running a report.

>I have a ReportBizObj that is instantiated in the MyReport Click Event on MyForm.
>In this ReportBizObj after setting up a FieldValueCollectionObject property and some other properties I call ReportBizObj.Get()
>
>There I have the following code
>
<snip>
>
>After this I call:
>REPORT FORM WindShieldSticker.frx PREVIEW
>
>In the report I tested with just one field retrieving a value from the Collection of Field Values:
>
>this.FieldValueCol.item('RepairOrderNumber')
>
>
>(sorry for the lengthy setup)
>
>Questions
>Why would it try to print this value 13 times? I did notice that the lookuptable where I use the locate commands contains 13 values in it. Am I putting a loop in it inadvertantly? I can't find it.
>
>Also, is this an entirely retarded way of doing things?
>
>Thanks
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform