Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxypreviewer datasession doesn't release
Message
From
23/04/2011 13:16:47
 
 
To
22/04/2011 15:17:47
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01508144
Message ID:
01508199
Views:
138
FoxyPreviewer238a
in command window
SET Procedure To foxypreviewer.APP
*

DEFINE CLASS form1 AS form


DataSession = 2
Top = 24
Left = 15
ShowWindow = 1
DoCreate = .T.
Caption = "Form1"
Name = "Form1"


ADD OBJECT command1 AS commandbutton WITH ;
Top = 139, ;
Left = 172, ;
Height = 27, ;
Width = 84, ;
Caption = "Command1", ;
Name = "Command1"


PROCEDURE Load
create Cursor test_cur (col1 c(10), col2 c(10), col3 c(10))
*
for i = 1 to 20
insert into test_cur values (sys(2015), sys(2015), sys(2015))
endfor
ENDPROC


PROCEDURE command1.Click
select test_cur
*
*report form mob_fill to printer prompt preview noconsole
LOCAL loReport AS "PreviewHelper" OF "FoxyPreviewer.App"
loReport = CREATEOBJECT("PreviewHelper")
loReport.AddReport("testrepo", "to printer prompt preview", "test_cur")
loReport.RunReport()
ENDPROC


ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform