Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports

Status
Not open for further replies.

Sjoker

Programmer
Aug 4, 2000
30
NL
How can I open an report made with Crystal Reports, by passing some values from a datawindow as parameters.
 
Call that Crystal report through an OLE object defined within a Window /Datawindow and set the property within the scripts to open it.
For Example :

string lsReportPath
if FileExists(lsReportPath+'rpt') then

TRY
<Window>.ole_1.Object.ReportFileName(lsReportPath+'rpt')
<Window>.ole_1.Object.Action = 1

CATCH (runtimeerror er)
MessageBox(&quot;Runtime Error&quot;, string(<Window>.ole_1.object.lasterrorstring))

END TRY
else
Messagebox ('Error','Error launching '+lsReportPath+'rpt')
end if
 
Hi Sjoker
i am also having the same requirement of passing parameters to a crystal report. I am able to send a single paramer, but not multiple. Were you able to get some help out of the code given by vulcanjena?please let me know.
thanx
praveen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top