I'm hoping one of you guys have messed with the Crystal Reports Object and can give me some info on it. I'm creating a Crystal report object like so:
CCrystalCtrl *Rpt;
Rpt = new CCrystalCtrl;
Rpt->Create("Crystal", WS_VISIBLE|WS_CHILD, CRect(0, 0, 300, 300), FromHandle(this->m_hWnd), 30);
I'm thinking that the create function would work like any other Create functions. Well, when I set the ReportFileName and set it to show the report, it works fine and I get the basic report. But when I set the SelectionFormula then try and show the report, nothing comes up....no Crystal window, ZIP!
I get a funny First-change exception when I create the window, so maybe I'm creating it wrong:
First-change exception in prg.exe (blab blab bla) Microsoft C++ exception.
then right after that, I get:
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
I've looked up this DISP_E_MEMBERNOTFOUND, so I know basically what it means. But for the life of me I can't figgure out if this is what is causing my problem or not. Maybe I just need to take another peek at my selection formula and make sure it is correct. Any info on this subject would be greatly appreciated. Thanks in advance!
Niky Williams
NTS Marketing
CCrystalCtrl *Rpt;
Rpt = new CCrystalCtrl;
Rpt->Create("Crystal", WS_VISIBLE|WS_CHILD, CRect(0, 0, 300, 300), FromHandle(this->m_hWnd), 30);
I'm thinking that the create function would work like any other Create functions. Well, when I set the ReportFileName and set it to show the report, it works fine and I get the basic report. But when I set the SelectionFormula then try and show the report, nothing comes up....no Crystal window, ZIP!
I get a funny First-change exception when I create the window, so maybe I'm creating it wrong:
First-change exception in prg.exe (blab blab bla) Microsoft C++ exception.
then right after that, I get:
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
I've looked up this DISP_E_MEMBERNOTFOUND, so I know basically what it means. But for the life of me I can't figgure out if this is what is causing my problem or not. Maybe I just need to take another peek at my selection formula and make sure it is correct. Any info on this subject would be greatly appreciated. Thanks in advance!
Niky Williams
NTS Marketing