Crystal Reports
-
Hi all I am using cr 10 for showing some reports saved as rpt files. I change the database connection at runtime. Everything works fine. But when the report window is opened (this is another window, a modelless) and if the export button is selected, my application remains running on the task manager. And this happens only on widnows 2000. All the Crystal report objects are made inside a function and shown on the OnInitDialog of the report window. I included the craxdrt.h and created FunctionCalledFromOnInitDailog() { IApplication app; app.CreateDispatch(_T("CrystalRuntime.Application"),NULL) //I do the rest of the things here, set the datasource of the viewer //control etc m_cysApp.DetachDispatch(); } Any idea whats going on ? Please help me. Regards Shiraz The Best Relligion is Science. Once you understand it, you will know God.