Skip to Content
0
Former Member
Mar 18, 2009 at 11:25 AM

why the Parameter Dialog not invoked with OpenReport RDC SDK?

75 Views

Hai,

I am working in Crystal Reports XI Release 2 with Visual studio .Net 2003 (VC++).I am using RDC SDK

OpenReport function to create report.The report is generating without any fail.But the parameter dialog not invoked though the report is designed with parameter .

Here is the code snippet i used to generate

OnInitDialog()

{

CoInitialize(NULL);

IApplicationPtr m_Application;

IReportPtr m_Report;

HRESULT hr = m_Application.CreateInstance("CrystalRuntime.Application");

m_Report = m_Application->OpenReport("Sample.rpt");

m_Viewer.SetReportSource(m_Report);

m_Viewer.ViewReport();

}

It creates report in ActiveX viewer but the parameter dialog not invoked before showing in viewer.

But in my another project i have used Crystal report 8 and CRPE32 dll(8 version) API PEStartPrintJob

It invokes parameter dialog automatically before showing report in Viewer.

Thankyou,

SatheeshKumar

Edited by: SatheeshDharmaraj on Mar 18, 2009 12:29 PM