cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with InvokeHelper method in CWnd

Former Member
0 Kudos

Hi,

I am Using VC++ MFC Application, add one dialog and inculded CRYSTAL ACTIVEX REPORT VIEWER 13.0, when i load report it showing error in Invokehelper method in cwnd.

my code is

-


pCtrlReportViewer.SetReportFileName("Report.rpt");

pCtrlReportViewer.SetWindowTitle("Retrieving Mutually Exclusive Records with Crystal Reports");

pCtrlReportViewer.PrintReport();

-


short CViewreport::PrintReport()

{

short result;

InvokeHelper(0x1c, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);

return result;

}

void CViewreport::SetReportFileName(LPCTSTR lpszNewValue)

{

static BYTE parms[] =

VTS_BSTR;

InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,

lpszNewValue);

}

void CViewreport::SetWindowTitle(LPCTSTR lpszNewValue)

{

static BYTE parms[] =

VTS_BSTR;

InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,

lpszNewValue);

}

PLEASE GIVE ME SOME EXAMPLE CODE FOR HOW TO LOAD & VIEW REPORT USING CRYSTAL ACTIVEX REPORT VIEW 13.0

Thanks & Regards,

Esha Abdullah M

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

PLEASE GIVE ME SOME EXAMPLE CODE FOR HOW TO LOAD & VIEW REPORT USING CRYSTAL ACTIVEX REPORT VIEW 13.0

- You have a number of threads on the issue and every time you are given the same, consistent information. So, here it is again:

There is no Crystal ActiveX report viewer 13.0 that you can use. There is no licensing for Crystal activeX report viewer 13.0. You must use the CR assemblies for .NET and the CR viewer for .NET.

If this is message and Don's messages are not clear enough, with all due respect, I'd like to suggest a phone case that you can create here:

http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100?resid=S6I@hgoHAkEAAGsiyV...

Oh, and refrain from capitalizing, please. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Answers (0)