Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the sort order
Message
From
07/05/2002 08:07:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
07/05/2002 08:02:24
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00653027
Message ID:
00653427
Views:
20
>Hi Jim,
>
>I agree 100%, I am using a view that groups and sorts the data before vfp gets a hold of it. But the view is the data environment. How do I run a report from code?

Let's assume you have a report that lists clients, and that you already erased any table from the report's DataEnvironment.

A sample might be:
select ClientCode, ClientName, CurrentDebt;
  from Client;
  order by CurrentDebt descending;
  into cursor Temp
* Preview:
report form SimpleClientList preview
* Print:
report form SimpleClientList to printer prompt
Or do you need anything else?

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform