Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Preview View Size
Message
From
17/12/2004 12:21:24
 
 
To
15/12/2004 06:01:08
Steve Jones
Business Systems Services Uk Ltd
Swansea, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00969371
Message ID:
00970104
Views:
16
Here is one example:
*disply report preview at 75%
*Replace myreport with your report name
LOCAL oPreviewForm
oPreviewForm = NEWOBJECT('PreviewForm')

REPORT FORM myreport WINDOW PREVIEWFORM PREVIEW
	
oPreviewForm.Release

DEFINE CLASS previewform AS form


	Height = 250
	Width = 375
	Desktop = .F.
	ShowWindow = 2
	ScrollBars = 3
	DoCreate = .T.
	AutoCenter = .T.
	BorderStyle = 3
	Caption = "Print Preview Window"
	ControlBox = .F.
	Closable = .F.
	MinButton = .F.
	Movable = .F.
	WindowType = 0
	WindowState = 2
	AlwaysOnTop = .F.
	Name = "previewform"


	PROCEDURE Deactivate
		DODEFAULT()
		IF WEXIST('Report Designer')
			MOUSE DBLCLICK AT -0.1,0.1 WINDOW "Report Designer"
		ENDIF
		IF WEXIST('Print Preview')
			MOUSE DBLCLICK AT -0.1,0.1 WINDOW "Print Preview"
		ENDIF
	ENDPROC


	PROCEDURE Init
		DODEFAULT()
		THIS.SHOW()
		CLEAR TYPEAHEAD
		KEYBOARD 'L'
	ENDPROC


ENDDEFINE
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform