makaveliuk
Programmer
Hi,
I am trying to open a Crystal Report using CRAXDDRT20.dll from Crystal Reports .NET, I am using the code:
HRESULT hr = NULL;
IApplicationPtr Crystal;
IReportPtr rep;
hr = Crystal.CreateInstance("CRYSTALRUNTIME.APPLICATION");
rep = Crystal->OpenReport(report->CString());
But it fails at the point of CreateInstance(.....);
The hr result returned is -2147221005 which I believe means Invalid Class String.
Does anyone have any ideas where I'm going wrong?
I am trying to open a Crystal Report using CRAXDDRT20.dll from Crystal Reports .NET, I am using the code:
HRESULT hr = NULL;
IApplicationPtr Crystal;
IReportPtr rep;
hr = Crystal.CreateInstance("CRYSTALRUNTIME.APPLICATION");
rep = Crystal->OpenReport(report->CString());
But it fails at the point of CreateInstance(.....);
The hr result returned is -2147221005 which I believe means Invalid Class String.
Does anyone have any ideas where I'm going wrong?