Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preview not displaying when there IS data
Message
De
18/05/2007 13:44:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Vista
Divers
Thread ID:
01226683
Message ID:
01226880
Vues:
21
>Can you show your idea in more details? I was thinking, that perhaps you can originally set window position outside the screen, then the preview appears, re-set top and left coordinates of the window. But it's just a vague idea, I don't see a clear implementation yet.
>>Thanks, it helped.
>>
>>Because we have serveral dozen reports, I used a slightly different approuch. If the output is a preview, a timer is created (interval = 1 sec). Then when the preview appears, it is maximized and the is stopped. This mazimizes it on openning but still allows the user to resize.

When the user requests a preview,
  LOCAL loMaxPreview
  loMaxPreview = CREATEOBJECT("tmrMaxPreview")
        
  lcReportCmd = "report form " + cReportName + " preview "
Then the report is ran,
  &lcReportCmd

  RELEASE loMaxPreview
and at the bottom of the code,
   *05/18/2007 11:29:12- GLR -------------------------
   * when the preview opens, maximize once.
   *--------------------------------------------------
   DEFINE CLASS tmrMaxPreview as Timer
	Enabled = .t.
	Interval= 1000
	PROCEDURE timer
		IF WEXIST("Report Designer")
			ZOOM WINDOW "Report Designer" max
			this.Enabled = .F.
		ENDIF 
	ENDPROC 
   ENDDEFINE 
Pretty basic, I thought.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform