Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preview a report inside a form
Message
De
16/03/2002 00:33:53
Max Chen
Yx Software
Shunde, Chine
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00633318
Message ID:
00633692
Vues:
19
Hi

follow is code snippet for my preview class

max.
REPORT FORM (thisform.cFrxFile) PREVIEW NOCONSOLE ;
		In windows (thisform.oInWin.cWindowName) nowait 

this.lPreviewOK =.t.
activate windows (thisform.oOutwin.cWindowName)
CLEAR TYPEAHEAD 
KEYB '{ctrl+f10}' plain








*------------------------------------------------------------

IF TYPE("thisform.oOutwin")<>'O'
	define window (thisform.Name+'_OutWin') AT 0,0 SIZE 1,1 ;
			 IN WINDOW (thisform.name) name (thisform.Name+'_OutWin')
	define window (thisform.Name+'_InWin') AT 0,0 SIZE 1,1 ;
			 IN WINDOW (thisform.Name+'_OutWin') name (thisform.Name+'_InWin')
	thisform.oOutWin=EVALUATE(thisform.Name+'_OutWin')
	thisform.oInWin=EVALUATE(thisform.Name+'_InWin')
Endif	
*---

WITH thisform.oOutWin 
	.backcolor=RGB(128,128,128)
	.borderStyle=0
	.left=0
	.top=30
	.width=thisform.Width 
	.height=thisform.Height - 27 - thisform.tabstrip.Height -4
	.addProperty('cWindowName',thisform.Name+'_OutWin')
ENDWITH 

WITH thisform.oInWin
	.backcolor=RGB(128,128,128)
	.borderStyle=0
	.left=-2
	.top=-24
	.width=thisform.oOutwin.Width + .left + 3
	.height=thisform.oOutwin.Height + ABS( .Top )	
	.addProperty('cWindowName',thisform.Name+'_InWin')
ENDWITH 
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform