Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report not printing correct record
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00243306
Message ID:
00243307
Views:
23
A much safer way of doing this is to create a cursor with the records that you want to display and use this for the source of the report. You can fill the cursor with 1 records or many and the report will behave better. Ensure that you remove the alias from all the textboxes on the report. Things like printing from the print preview screen will work also.

>Using VFP 5.0 I have created a form that is used to simply view records in a table. Since I used the form wizard I utilized the buttonset that VFP drops on the form during the wizard setup. The problem is that when I use the buttons to maneuver around the table the record pointer is apparently not moving. I have a form that is supposed to print the info from the current record with the following command:
>
>REPORT FORM /reports/gpcalc.frx RECORD RECNO() NOCONSOLE TO PRINTER
>
>No matter which record the form shows me to be on the report still prints the info from the top record in the table.
>
>Next, I created four new buttons and gave them the commands to move to the top of the table, go to the next record, go to the previous record, and to go to the bottom of the table. I used the GO command on these since I figured that would make the pointer move. I have the same problem as with the buttonset. The report still only prints the info for the top record.
>
>I can only get the report to work properly when I use the FIND button from the button set. Using another button that I created to BROWSE the table I confirmed that in that instance the pointer does move.
>
>What am I doing wrong? How do I get the pointer to move? I've used various refresh commands at different places, but that does not seem to work.
>
>Thanks for any help.
>
>Greg Matthews
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform