Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass parameters to be used in a activex control
Message
From
03/03/2000 17:18:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/03/2000 16:59:57
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00341524
Message ID:
00341533
Views:
20
>I have a foxpro form that displays and prints a crystal report!
>Thanks to the help of Phil and Universal Thread:)
>Well.... I want to be able to set filters on the table Im reporting from how can I go about that?
>Idealy I want foxpro to do the SQL and crystal to report from the database... is that possible?


It would be "Crystal.CRPE.Application".
select * from (tcTable) where ... into cursor myCursor
lcTemp = sys(2015)
Copy to (tcPath+lcTemp) type fox2x
oCrystal=CreateObject("Crystal.CRPE.Application")
#Define WS_MAXIMIZE  29949952
DECLARE integer GetForegroundWindow in WIN32API
DECLARE short IsWindow in WIN32API integer
....
oRpt = oCrystal.OpenReport(lcReportName+".RPT")
With oRpt
  With .Database.Tables(lcTable)
    .Location = tcPath+lcTemp+".dbf"
  Endwith
...
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform