Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview a report inside a form
Message
From
16/03/2002 00:33:53
Max Chen
Yx Software
Shunde, China
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00633318
Message ID:
00633692
Views:
20
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 
Previous
Reply
Map
View

Click here to load this message in the networking platform