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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using crystal 208 with delphi 2009

Status
Not open for further replies.

Bobby2008

Programmer
Dec 4, 2008
1
US
Can anyone post some code calling crystal report from delphi 2009.
thank you
 
I used the following blog entry:

Make sure that you select the correct the correct Type library as what your end user has.

And the following code to load the report:
//CRViewer is the viewer component
//CRReport is the report component
//CRApp is the application component
//sRptPath is the path to the report

CRReport.ConnectTo(CRApp.OpenReport(sRptPath));
CRViewer.ReportSource := CRReport.DefaultInterface;
CRViewer.ViewReport;

Hopefully with D2009 supporting UniCode we'll get a VCL for Crystal 11 since that was one of the reasons they gave for not supporting the Crystal VCL wrapper.
 
PS - my code was from D2006 but the process should still work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top