I change RunTime the SQLQuery of a Report in this way:
BSTR bstrQuery = pReport->GetSQLQueryString();
CString strQueryOK;
strQueryOK = (CString)bstrQuery;
CString str;
str = ::ChangeTypeString(vJob);
strQueryOK.Replace("0000",str);
pReport->PutSQLQueryString((_bstr_t)strQueryOK);
Is there a way to change the SQLQuery of a SubReport??
Thanks...
Marco
BSTR bstrQuery = pReport->GetSQLQueryString();
CString strQueryOK;
strQueryOK = (CString)bstrQuery;
CString str;
str = ::ChangeTypeString(vJob);
strQueryOK.Replace("0000",str);
pReport->PutSQLQueryString((_bstr_t)strQueryOK);
Is there a way to change the SQLQuery of a SubReport??
Thanks...
Marco