Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CmdButton to Print/Preview Report
Message
From
29/10/1998 13:04:20
 
 
To
29/10/1998 12:28:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00152391
Message ID:
00152420
Views:
22
>>>The "Print Report" button has the following code in the click event: PreRepID = Names.name_id
>>> Report Form Intake.frx For Names.name_id = PreRepID To Printer
>>>
>>>The "Preview Report" click event is similar:
>>> PreRepID = Names.name_id
>>> Report Form Intake.frx For Names.name_id = PreRepID Preview
>>>
>>>Any suggestions?
>>>TIA
>>>--Lincoln
>>
>>You may make your code 100% reliable by selecting this one record to a cursor and print from this cursor.
>
>
>How do I do that?

Select * From ... Into Cursor tmp Where name_id=...
Report Form ...
Select tmp
Use
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform