Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define window coord for report preview
Message
 
 
À
03/03/2015 19:53:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01616170
Message ID:
01616183
Vues:
39
>>Hi,
>>
>>I am testing Report Form command with option "PREVIEW Window WindowName"
>>
>>When I define the WindowName I have to specify the coordinates. As in
>>
>>
>>define window WindowName from 1,1 to x, y  
>>
>>
>>What should be the values of x and y when you are previewing report in Landscape format? Are there rules for setting these coordinates?
>>
>>TIA
>
>The coordinates would be in terms of "foxels" -- so you'll have to scale those coordinates based on the default font for _SCREEN. As an alternative you should also be able to create an instance of FORM and set the NAME property to the name used in the PREVIEW clause. Obviously you probably don't want to set the coordinates such that the preview window is larger than the screen.

What I did (so far) is set the values of x and y to some small numbers and then call ZOOM command as follows:
ZOOM Window WindowName  Max
This way the window is maximized before the report goes there. So far this seems to be working.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform