Skip to Content
author's profile photo Former Member
Former Member

Problem with InvokeHelper method in CWnd

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 19, 2011 at 03:43 PM

    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@hgoHAkEAAGsiyVkAAAAR&rests=1282226845369

    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]

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.