Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Zoom disappointing
Message
From
14/06/2004 18:24:06
Emmanuel Huybrechts
Technimeca International Corp.
Montréal, Quebec, Canada
 
 
To
14/06/2004 16:53:05
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00913246
Message ID:
00913673
Views:
26
>Emmanuel -
>
>>>> What is interesting is that the ZoomLevel = 10 compute
>>>> a percent to fit the window. So it really shouldn't be
>>>> that difficult for the VFPT to let us access any zoom
>>>> level we want.
>>>
>>> VFPT *has* let you do what you want to do. What you're
>>> saying here is that the shipping Xbase preview component
>>> (REPORTPREVIEW.APP) does not happen to provide this ability.
>>
>> Could you elaborate on this? From what I read in the readme,
>> this limitation is in the API not in the ReportPreview.App.
>
>It's a limitation of the API of the object that ReportPreview.App returns to VFP9 when asked for a Preview Container.
>
>However, do not confuse the extended API of the object that REPORTPREVIEW.APP generates with the very limited API that VFP9 demands of a candidate Preview Container object. When you write your own _REPORTPREVIEW / Preview Container factory, the only methods your object must support are:
> .SetReport( oListenerRef )
> .Show( 0 | 1 ).
>
>No restrictions are placed on how your object deals with Zoom Level because VFP9 is never specify it.
>


OK I think I got it. That API is just an interface definition. We have to implement it ourselves, that's what the ReportPreview.app does. Fortunately we have the source code for this one and so we could customize it as we wish.

I suppose I should have RTFM more carefully :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform