Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preview Screen Size
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00100888
Message ID:
00101099
Vues:
32
Hello Marcus,

I actually have a pretty good solution that works very well for this and also prevents another intermittent "gotcha" if the user clicks on the close window when doing a report and it locks the sysmenu controls.

Create a form with the following code somewhere in the beginning of the entire program, maybe just before the READ EVENTS...
public Rep_Preview
Rep_Preview = createobject( "form" )
With Rep_Preview
  .Caption     = "Report Preview"   && or any caption you want
  .Closable    = .F.
  .ControlBox  = .F.
  .MaxButton   = .F.
  .MinButton   = .F.
  .Name        = "My_Preview"   && This is the key to the preview
  .WindowState = 2   && maximized property setting
  .Visible     = .F.
EndWith
Then when you are ready to actually run the report do the following
Rep_Preview.Visible = .T.
report form <your report> noconsole preview window "My_Preview"
Rep_Preview.Visible = .F.
I have found this to work great.

Don
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform