Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Range doesn't work?!
Message
From
05/05/2003 18:26:20
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00785023
Message ID:
00785135
Views:
11
This message has been marked as the solution to the initial question of the thread.
ok, for anyone who is interested:

the work around in order to be able to print Fox2.5 reports from vfp 6 SP5 with a page range is as follows:
rptcmd = "report form dostest.frx noconsole to print"

* *** reset variables
_PBPage = 1
_PePage = 32767
PrintJob
   * *** set the print range
   _PBPage = 5
   _PEPage = 5
   * *** print the report
   &rptcmd
EndPrintJob
the vfp 'range' clause in the 'report form' command will not work with fox2.5 reports. also, just setting the variables '_PBPage' and '_PEPage' will not work. you must encapsulate the actual report command in 'PrintJob - EndPrintJob'. in the above test i have successfully printed only page 5 of a 7 page fox2.5 report from vfp 6.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform