// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ // NOTE: Do not modify the contents of this file. If this class is regenerated by // Microsoft Visual C++, your modifications will be overwritten. #include "stdafx.h" #include "orxcon.h" ///////////////////////////////////////////////////////////////////////////// // CRunner IMPLEMENT_DYNCREATE(CRunner, CWnd) ///////////////////////////////////////////////////////////////////////////// // CRunner properties CString CRunner::Get_ReportName() { CString result; GetProperty(0x0, VT_BSTR, (void*)&result); return result; } void CRunner::Set_ReportName(LPCTSTR propVal) { SetProperty(0x0, VT_BSTR, propVal); } CString CRunner::GetReportName() { CString result; GetProperty(0x1, VT_BSTR, (void*)&result); return result; } void CRunner::SetReportName(LPCTSTR propVal) { SetProperty(0x1, VT_BSTR, propVal); } CString CRunner::GetDocumentName() { CString result; GetProperty(0x2, VT_BSTR, (void*)&result); return result; } void CRunner::SetDocumentName(LPCTSTR propVal) { SetProperty(0x2, VT_BSTR, propVal); } CString CRunner::GetReportsServer() { CString result; GetProperty(0x3, VT_BSTR, (void*)&result); return result; } void CRunner::SetReportsServer(LPCTSTR propVal) { SetProperty(0x3, VT_BSTR, propVal); } short CRunner::GetOutputDestination() { short result; GetProperty(0x4, VT_I2, (void*)&result); return result; } void CRunner::SetOutputDestination(short propVal) { SetProperty(0x4, VT_I2, propVal); } CString CRunner::GetOutputName() { CString result; GetProperty(0x5, VT_BSTR, (void*)&result); return result; } void CRunner::SetOutputName(LPCTSTR propVal) { SetProperty(0x5, VT_BSTR, propVal); } CString CRunner::GetDatabaseUser() { CString result; GetProperty(0x6, VT_BSTR, (void*)&result); return result; } void CRunner::SetDatabaseUser(LPCTSTR propVal) { SetProperty(0x6, VT_BSTR, propVal); } CString CRunner::GetDatabasePassword() { CString result; GetProperty(0x7, VT_BSTR, (void*)&result); return result; } void CRunner::SetDatabasePassword(LPCTSTR propVal) { SetProperty(0x7, VT_BSTR, propVal); } CString CRunner::GetDatabaseName() { CString result; GetProperty(0x8, VT_BSTR, (void*)&result); return result; } void CRunner::SetDatabaseName(LPCTSTR propVal) { SetProperty(0x8, VT_BSTR, propVal); } short CRunner::GetReportMode() { short result; GetProperty(0x9, VT_I2, (void*)&result); return result; } void CRunner::SetReportMode(short propVal) { SetProperty(0x9, VT_I2, propVal); } CString CRunner::GetUserDefinedParameters() { CString result; GetProperty(0xa, VT_BSTR, (void*)&result); return result; } void CRunner::SetUserDefinedParameters(LPCTSTR propVal) { SetProperty(0xa, VT_BSTR, propVal); } CString CRunner::GetCommandFile() { CString result; GetProperty(0xb, VT_BSTR, (void*)&result); return result; } void CRunner::SetCommandFile(LPCTSTR propVal) { SetProperty(0xb, VT_BSTR, propVal); } short CRunner::GetOnRunSuccess() { short result; GetProperty(0xc, VT_I2, (void*)&result); return result; } void CRunner::SetOnRunSuccess(short propVal) { SetProperty(0xc, VT_I2, propVal); } short CRunner::GetOnRunFailure() { short result; GetProperty(0xd, VT_I2, (void*)&result); return result; } void CRunner::SetOnRunFailure(short propVal) { SetProperty(0xd, VT_I2, propVal); } BOOL CRunner::GetShowParameterForm() { BOOL result; GetProperty(0xe, VT_BOOL, (void*)&result); return result; } void CRunner::SetShowParameterForm(BOOL propVal) { SetProperty(0xe, VT_BOOL, propVal); } CString CRunner::GetPageSize() { CString result; GetProperty(0xf, VT_BSTR, (void*)&result); return result; } void CRunner::SetPageSize(LPCTSTR propVal) { SetProperty(0xf, VT_BSTR, propVal); } short CRunner::GetOrientation() { short result; GetProperty(0x10, VT_I2, (void*)&result); return result; } void CRunner::SetOrientation(short propVal) { SetProperty(0x10, VT_I2, propVal); } long CRunner::GetNumberOfCopies() { long result; GetProperty(0x11, VT_I4, (void*)&result); return result; } void CRunner::SetNumberOfCopies(long propVal) { SetProperty(0x11, VT_I4, propVal); } CString CRunner::GetOutputDriver() { CString result; GetProperty(0x12, VT_BSTR, (void*)&result); return result; } void CRunner::SetOutputDriver(LPCTSTR propVal) { SetProperty(0x12, VT_BSTR, propVal); } CString CRunner::GetCurrencyString() { CString result; GetProperty(0x13, VT_BSTR, (void*)&result); return result; } void CRunner::SetCurrencyString(LPCTSTR propVal) { SetProperty(0x13, VT_BSTR, propVal); } CString CRunner::GetThousandsCharacter() { CString result; GetProperty(0x14, VT_BSTR, (void*)&result); return result; } void CRunner::SetThousandsCharacter(LPCTSTR propVal) { SetProperty(0x14, VT_BSTR, propVal); } CString CRunner::GetDecimalCharacter() { CString result; GetProperty(0x15, VT_BSTR, (void*)&result); return result; } void CRunner::SetDecimalCharacter(LPCTSTR propVal) { SetProperty(0x15, VT_BSTR, propVal); } long CRunner::GetArrayBufferKBSize() { long result; GetProperty(0x16, VT_I4, (void*)&result); return result; } void CRunner::SetArrayBufferKBSize(long propVal) { SetProperty(0x16, VT_I4, propVal); } long CRunner::GetVirtualMemoryKBSize() { long result; GetProperty(0x17, VT_I4, (void*)&result); return result; } void CRunner::SetVirtualMemoryKBSize(long propVal) { SetProperty(0x17, VT_I4, propVal); } long CRunner::GetLongColumnBufferKBSize() { long result; GetProperty(0x18, VT_I4, (void*)&result); return result; } void CRunner::SetLongColumnBufferKBSize(long propVal) { SetProperty(0x18, VT_I4, propVal); } BOOL CRunner::GetSetTransactionReadOnly() { BOOL result; GetProperty(0x19, VT_BOOL, (void*)&result); return result; } void CRunner::SetSetTransactionReadOnly(BOOL propVal) { SetProperty(0x19, VT_BOOL, propVal); } BOOL CRunner::GetAutomaticCommit() { BOOL result; GetProperty(0x1a, VT_BOOL, (void*)&result); return result; } void CRunner::SetAutomaticCommit(BOOL propVal) { SetProperty(0x1a, VT_BOOL, propVal); } BOOL CRunner::GetNonBlockingSQL() { BOOL result; GetProperty(0x1b, VT_BOOL, (void*)&result); return result; } void CRunner::SetNonBlockingSQL(BOOL propVal) { SetProperty(0x1b, VT_BOOL, propVal); } BOOL CRunner::GetDebuggingChecks() { BOOL result; GetProperty(0x1c, VT_BOOL, (void*)&result); return result; } void CRunner::SetDebuggingChecks(BOOL propVal) { SetProperty(0x1c, VT_BOOL, propVal); } CString CRunner::GetProfileLogFile() { CString result; GetProperty(0x1d, VT_BSTR, (void*)&result); return result; } void CRunner::SetProfileLogFile(LPCTSTR propVal) { SetProperty(0x1d, VT_BSTR, propVal); } CString CRunner::GetErrorLogFile() { CString result; GetProperty(0x1e, VT_BSTR, (void*)&result); return result; } void CRunner::SetErrorLogFile(LPCTSTR propVal) { SetProperty(0x1e, VT_BSTR, propVal); } CString CRunner::GetTraceLogFile() { CString result; GetProperty(0x1f, VT_BSTR, (void*)&result); return result; } void CRunner::SetTraceLogFile(LPCTSTR propVal) { SetProperty(0x1f, VT_BSTR, propVal); } short CRunner::GetTraceMode() { short result; GetProperty(0x20, VT_I2, (void*)&result); return result; } void CRunner::SetTraceMode(short propVal) { SetProperty(0x20, VT_I2, propVal); } BOOL CRunner::GetTraceLogAll() { BOOL result; GetProperty(0x21, VT_BOOL, (void*)&result); return result; } void CRunner::SetTraceLogAll(BOOL propVal) { SetProperty(0x21, VT_BOOL, propVal); } BOOL CRunner::GetTraceLogPerformance() { BOOL result; GetProperty(0x22, VT_BOOL, (void*)&result); return result; } void CRunner::SetTraceLogPerformance(BOOL propVal) { SetProperty(0x22, VT_BOOL, propVal); } BOOL CRunner::GetTraceLogReportsObjects() { BOOL result; GetProperty(0x23, VT_BOOL, (void*)&result); return result; } void CRunner::SetTraceLogReportsObjects(BOOL propVal) { SetProperty(0x23, VT_BOOL, propVal); } BOOL CRunner::GetTraceLogPLSQLObjects() { BOOL result; GetProperty(0x24, VT_BOOL, (void*)&result); return result; } void CRunner::SetTraceLogPLSQLObjects(BOOL propVal) { SetProperty(0x24, VT_BOOL, propVal); } BOOL CRunner::GetTraceLogSQLTrace() { BOOL result; GetProperty(0x25, VT_BOOL, (void*)&result); return result; } void CRunner::SetTraceLogSQLTrace(BOOL propVal) { SetProperty(0x25, VT_BOOL, propVal); } BOOL CRunner::GetTraceLogTimeStamp() { BOOL result; GetProperty(0x26, VT_BOOL, (void*)&result); return result; } void CRunner::SetTraceLogTimeStamp(BOOL propVal) { SetProperty(0x26, VT_BOOL, propVal); } BOOL CRunner::GetTraceLogErrors() { BOOL result; GetProperty(0x27, VT_BOOL, (void*)&result); return result; } void CRunner::SetTraceLogErrors(BOOL propVal) { SetProperty(0x27, VT_BOOL, propVal); } short CRunner::GetCallMode() { short result; GetProperty(0x28, VT_I2, (void*)&result); return result; } void CRunner::SetCallMode(short propVal) { SetProperty(0x28, VT_I2, propVal); } long CRunner::GetCallTimeout() { long result; GetProperty(0x29, VT_I4, (void*)&result); return result; } void CRunner::SetCallTimeout(long propVal) { SetProperty(0x29, VT_I4, propVal); } long CRunner::GetCallFrequency() { long result; GetProperty(0x2a, VT_I4, (void*)&result); return result; } void CRunner::SetCallFrequency(long propVal) { SetProperty(0x2a, VT_I4, propVal); } long CRunner::GetJobTolerance() { long result; GetProperty(0x2b, VT_I4, (void*)&result); return result; } void CRunner::SetJobTolerance(long propVal) { SetProperty(0x2b, VT_I4, propVal); } CString CRunner::GetJobName() { CString result; GetProperty(0x2c, VT_BSTR, (void*)&result); return result; } void CRunner::SetJobName(LPCTSTR propVal) { SetProperty(0x2c, VT_BSTR, propVal); } CString CRunner::GetJobSchedule() { CString result; GetProperty(0x2d, VT_BSTR, (void*)&result); return result; } void CRunner::SetJobSchedule(LPCTSTR propVal) { SetProperty(0x2d, VT_BSTR, propVal); } CString CRunner::GetSystemUser() { CString result; GetProperty(0x37, VT_BSTR, (void*)&result); return result; } void CRunner::SetSystemUser(LPCTSTR propVal) { SetProperty(0x37, VT_BSTR, propVal); } CString CRunner::GetSystemPassword() { CString result; GetProperty(0x38, VT_BSTR, (void*)&result); return result; } void CRunner::SetSystemPassword(LPCTSTR propVal) { SetProperty(0x38, VT_BSTR, propVal); } CString CRunner::GetJobNotifyOnSuccess() { CString result; GetProperty(0x39, VT_BSTR, (void*)&result); return result; } void CRunner::SetJobNotifyOnSuccess(LPCTSTR propVal) { SetProperty(0x39, VT_BSTR, propVal); } CString CRunner::GetJobNotifyOnFailure() { CString result; GetProperty(0x3a, VT_BSTR, (void*)&result); return result; } void CRunner::SetJobNotifyOnFailure(LPCTSTR propVal) { SetProperty(0x3a, VT_BSTR, propVal); } BOOL CRunner::GetDistribute() { BOOL result; GetProperty(0x3b, VT_BOOL, (void*)&result); return result; } void CRunner::SetDistribute(BOOL propVal) { SetProperty(0x3b, VT_BOOL, propVal); } CString CRunner::GetDestination() { CString result; GetProperty(0x3c, VT_BSTR, (void*)&result); return result; } void CRunner::SetDestination(LPCTSTR propVal) { SetProperty(0x3c, VT_BSTR, propVal); } LCID CRunner::GetAmbientLCID() //OROCX_ADDED - NLSing { long result; GetProperty(DISPID_AMBIENT_LOCALEID, VT_I4, (void*)&result); return (LCID)result; } void CRunner::SetAmbientLCID(LCID propVal) //OROCX_ADDED - NLSing { SetProperty(DISPID_AMBIENT_LOCALEID, VT_I4, (long)propVal); } ///////////////////////////////////////////////////////////////////////////// // CRunner operations long CRunner::RunReport(long * ReportHandle) { long result; static BYTE parms[] = VTS_PI4; TRY { InvokeHelper(0x2e, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ReportHandle); } CATCH_ALL(e) //OROCX_ADDED - exception handling { # if 0 // ReportError() supports only messages up to 128 bytes in MFC40 e->ReportError(MB_OK | MB_ICONHAND); # else TCHAR msg[1024]; e->GetErrorMessage((LPTSTR)msg, sizeof(msg)-sizeof(TCHAR), NULL); //int nResult = AfxMessageBox((LPCTSTR)msg, MB_OK | MB_ICONHAND); int nResult = ::MessageBox(NULL,(LPCTSTR)msg, (LPCTSTR)_T("Run Report Error"), MB_OK | MB_ICONHAND); # endif e->Delete(); result = (long) E_FAIL; } END_CATCH_ALL return result; } long CRunner::RunReportSimple() { long result; TRY { InvokeHelper(0x2f, DISPATCH_METHOD, VT_I4, (void*)&result, NULL); } CATCH_ALL(e) //OROCX_ADDED - exception handling { # if 0 // ReportError() supports only messages up to 128 bytes in MFC40 e->ReportError(MB_OK | MB_ICONHAND); # else TCHAR msg[2048]; e->GetErrorMessage((LPTSTR)msg, sizeof(msg)-sizeof(TCHAR), NULL); //int nResult = AfxMessageBox((LPCTSTR)msg, MB_OK | MB_ICONHAND); int nResult = ::MessageBox(NULL,(LPCTSTR)msg, (LPCTSTR)_T("Run Report Error"), MB_OK | MB_ICONHAND); # endif e->Delete(); result = (long) E_FAIL; } END_CATCH_ALL return result; } void CRunner::SetDafaults() { InvokeHelper(0x30, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } CString CRunner::GetCommandLine() { CString result; InvokeHelper(0x31, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL); return result; } long CRunner::GetReportStateCode(long ReportHandle) { long result; static BYTE parms[] = VTS_I4; InvokeHelper(0x32, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ReportHandle); return result; } CString CRunner::GetReportStateCodeString(long Code) { CString result; static BYTE parms[] = VTS_I4; InvokeHelper(0x33, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, Code); return result; } CString CRunner::GetReportStateString(long ReportHandle) { CString result; static BYTE parms[] = VTS_I4; InvokeHelper(0x34, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, ReportHandle); return result; } long CRunner::TerminateReport(long ReportHandle) { long result; static BYTE parms[] = VTS_I4; InvokeHelper(0x35, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ReportHandle); return result; } CString CRunner::GetReportOutputName(long ReportHandle) { CString result; static BYTE parms[] = VTS_I4; TRY { InvokeHelper(0x36, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, ReportHandle); } CATCH_ALL(e) //OROCX_ADDED - exception handling { # if 0 // ReportError() supports only messages up to 128 bytes in MFC40 e->ReportError(MB_OK | MB_ICONHAND); # else TCHAR msg[2048]; e->GetErrorMessage((LPTSTR)msg, sizeof(msg)-sizeof(TCHAR), NULL); //int nResult = AfxMessageBox((LPCTSTR)msg, MB_OK | MB_ICONHAND); int nResult = ::MessageBox(NULL,(LPCTSTR)msg, (LPCTSTR)_T("Run Report Error"), MB_OK | MB_ICONHAND); # endif e->Delete(); result = _T(""); } END_CATCH_ALL return result; } void CRunner::AboutBox() { InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } void CRunner::EditProperties() //OROCX_ADDED { HRESULT hr; LPUNKNOWN punk = GetControlUnknown(); // this methos don't addref if (punk) { LPOLEOBJECT pObj; LPOLECLIENTSITE pSte; hr = punk->QueryInterface(IID_IOleObject, (void**)&pObj); if (SUCCEEDED(hr)) { hr = pObj->GetClientSite(&pSte); if (SUCCEEDED(hr)) { MSG m; memset( &m, 0, sizeof(m)); RECT r; memset( &r, 0, sizeof(r)); HWND hWndParent = AfxGetMainWnd()->GetSafeHwnd(); // module state managed by OLE method (METHOD_PROLOGUE_EX()) hr = pObj->DoVerb(OLEIVERB_PROPERTIES, &m, pSte, 0, hWndParent, &r); pSte->Release(); } pObj->Release(); } } }