Refresh() not working in the CCrystalReportViewer11.
I am using CR X1 RDC report viewer. When I click on the Refresh button in the report viewer, the crystal report getting updated with the latest data base values. I have tried to refresh the crystal report through code by using the Refresh() function in the m_Viewer. But it is not working. The code snippet i have given below for your reference.
m_ReportType = m_Application->OpenReport(FilePath);
GroupName = (_bstr_t)csGroupName;
m_ReportType->FormulaFields->GetItemByName("GroupName")->Text = GroupName;
/* To hide the Preview section */
/* To hide the Border */
/* To hide the Preview Tab*/
Please suggest me to make it work.