It is used to fill the report with some additional options such as heading,additional heading, footer and header
Example code
CComPtr<IReports>m_Reports; HRESULT hr=m_Reports.CoCreateInstance(CLSID_Reports); BSTR bstrHeading,bstrAdditionalHeading ; CString strSQLQuery = _T(""SELECT * FROM ""+ strTableName); //strTableName Should be a valid table name varSQLQuery.vt=VT_BSTR; varSQLQuery.bstrVal=strSQLQuery.AllocSysString(); CString strHeading =_T(""Some Heading""); CString strAddHeading =_T(""Some Additional Heading""); bstrHeading=strHeading.AllocSysString(); bstrAdditionalHeading=strAddHeading.AllocSysString(); BOOL bShowHeader=TRUE;//(For showing header / FALSE to hide) BOOL bShowFooter = TRUE;//(For showing footer / FALSE to hide) m_Reports->FillReportEx(bstrSQLQuery,bstrHeading,bstrAdditionalHeading,bShowHeader,bShowFooter);