Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report preview ...
Message
De
25/05/2002 09:00:54
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
25/05/2002 03:32:28
Daniel C.
InfoData Bacau
Bacau, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00661336
Message ID:
00661346
Vues:
20
Hi Daniel,
You can use MOVE WINDOW and the like as Claudio suggests, however, I much prefer to create a form and use it as a template for the preview form. Here's an excerpt from my output class.
oPreview = NEWOBJECT('frmPreview'),'MSForms.vcx', '',This)
oPreview's caption is set in the init.
oPreview.IsPortrait = This.IsPortrait
REPORT FORM (m.FRXName) PREVIEW WINDOW (oPreview.Name)
oPreview.Release()

The frmPreview class is just a form--you can size it as you wish. In the Init I do this:
LPARAMETER oParent
SET SKIP OF MENU _MSYSMENU .T.
etc...

In the Destroy:
SET SKIP OF MENU _MSYSMENU .F.

You can also HIDE WINDOW "Print Preview" if you like, but I think you'll have to do that from the report itself (since you have to run that code after the preview has actually begun).
Note that frmPreview isn't made visible.



>Hi,
>I want to preview some reports into a specific area of the screen. Say like 1/2 of screen and get rid of the report toolbar ( print, close, etc ). Please advice, thanks.
Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform