Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a particular page/ range of pages
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01061313
Message ID:
01061348
Views:
14
>>>How do I do this?
>>>
>>>What I am trying to do is setup my own preview container, with zoom, etc.
>>>One of the needs is to print a particular page, range of pages etc. (Some of
>>>the reports are 60-100 pages, so they may not want to print all of the
>>>pages.)
>>>
>>>I have a preview form with an array property called PagesToPrint. I populate
>>>this array with the pages the user selected. Then I called the
>>>IncludePageInOutput method with each page.
>>>
>>>I tell the OnPreviewClose .t. so that it will print when the preview window
>>>closes. I still get all the pages in the reort.
>>>
>>>What did I forget to do?
>>>
>>>TIA,
>>Mike,
>>
>>Have you looked at the RANGE clause of REPORT FORM?
>
>Yes, I have, but it is not sufficient...
>The issue is thus... I need to have this functionality..
>Print Pages 1,3, 6-11, 25... so how could the range command help?
>As stated above, i creeated a PagesToPrint array that would hold
>1,2,6,7,8,9,10,11,25 in the above example. This is the source for popultin the IncludePageInOutput method... i.e.
>for x=1 to alen(PagesToPrint)
> oReport.IncludePageInOutput(PagesToPrint[x])
>endfor
>Then oReport.OnPreviewClose(.t.)
>Then I close the form. and all the pages of the report print... any ideas?
>
>TIA,

Mike,

Unfortunately, I don't. Since I don't know exactly what the situation is, it's hard for me to come up with an alternative. I do have a suggestion, however.

In my work, rarely is the same data on the same page as a previous time. What I mean by that is that from one interval report to another the same information might not fall out on the same page each time.

As a result, in order to handle this situation, I prompt the user to enter what data they want to see based on the data grouping. This can then be used either (beforehand) in the WHERE clause of the SQL statement that generates the report, or as a filter.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform