| | |
| | | { |
| | | return getKReport()->SaveAs_(pXmlArg); |
| | | } |
| | | int SaveAs(KXMLDOMDocument& xml, LPCTSTR pFileName = NULL) //另存为 |
| | | int SaveAs(KXMLDOMDocument xml, LPCTSTR pFileName = NULL) //另存为 |
| | | { |
| | | return getKReport()->SaveAs_(xml,pFileName); |
| | | } |
| | |
| | | int SelectRow(int nRow, bool bSelect = true) { return getKReport()->SelectRow_(nRow, bSelect); } |
| | | int SelectRow(int sRow, int eRow, bool bSelect = true) { return getKReport()->SelectRow_(sRow, eRow, bSelect); } |
| | | int GetNextSelectRow(int nStartRow) { return getKReport()->GetNextSelectRow_(nStartRow); } |
| | | int GetPrevSelectRow(int nStartRow) { return getKReport()->GetPrevSelectRow(nStartRow); } |
| | | bool IsRowSelected(int nRow) { return getKReport()->IsRowSelected_(nRow); } |
| | | //int SetSelectBkColor(COLORREF color){return getKReport()->SetSelectBkColor_(color);} |
| | | int SetSelectionMode(int nMode) { return getKReport()->SetSelectionMode_(nMode); } //0 unselection 1 singleSelection 2 multiselection 3 multiselectionex |
| | |
| | | //int Retrieve(ITrans *pTrans,LPCTSTR pDataUrl, LPCTSTR pArgStr);//读取数据 |
| | | int Retrieve(LPCTSTR pDataUrl, LPCTSTR pArgStr) { return getKReport()->Retrieve_(pDataUrl, pArgStr); }//读取数据 |
| | | |
| | | int Retrieve(KXMLDOMElement pElement) { return getKReport()->Retrieve_(pElement); }//读取数据 |
| | | int Retrieve(KXMLDOMDocument& xml) { return getKReport()->Retrieve_(xml); }//读取数据 |
| | | int Retrieve(KXMLDOMElement pElement) { return pElement?getKReport()->Retrieve_(pElement):0; }//读取数据 |
| | | int Retrieve(KXMLDOMDocument xml) { return xml?getKReport()->Retrieve_(xml):0; }//读取数据 |
| | | |
| | | public: |
| | | int SetDataObject(LPCTSTR pServer, LPCTSTR pUrl) { return getKReport()->SetDataObject_(pServer, pUrl); }//设置模板对象 |
| | |
| | | public: |
| | | int Reset() { return getKReport()->Reset_(); } |
| | | int ResetUpdateStatus() { return getKReport()->ResetUpdateStatus_(); } |
| | | public: |
| | | LPTSTR GetColumnProps(LPCTSTR pColName) { return getKReport()->GetColumnProps_(pColName); } //得到列整体XML属性 |
| | | int SetColumnProps(LPCTSTR pColName, LPCTSTR pXmlProp) { return getKReport()->SetColumnProps_(pColName, pXmlProp); } //设置列整体XML属性 |
| | | LPTSTR GetColumnProp(LPCTSTR pColName, LPCTSTR pItem) { return getKReport()->GetColumnProp_(pColName, pItem); } //得到列属性 |
| | | int SetColumnProp(LPCTSTR pColName, LPCTSTR pItem, LPCTSTR pProp) { return getKReport()->SetColumnProp_(pColName, pItem, pProp); }//设置列属性 |
| | | |
| | | public: |
| | | int event_ItemFocusChanged(int nRow, int nCol) { return getKReport()->event_ItemFocusChanged_(nRow, nCol); } |
| | |
| | | return getKReport()->GetTitleName(col); |
| | | } |
| | | public: |
| | | int SetRowSort(LPTSTR colName, bool colOrder = true) |
| | | int SetRowSort(LPCTSTR colName, bool colOrder = true) |
| | | { |
| | | return getKReport()->SetRowSort(colName, colOrder); |
| | | return getKReport()->SetRowSort((LPTSTR)colName, colOrder); |
| | | } |
| | | int SetClickEditFlag(bool f) |
| | | { |
| | |
| | | return getKReport()->AddRepeats(colName); |
| | | } |
| | | public: |
| | | void ShowEditor() |
| | | { |
| | | getKReport()->ShowEditor(); |
| | | } |
| | | public: |
| | | /* |
| | | LPCTSTR GetColumnProp(int nCol, LPCTSTR pItem) |
| | | { |
| | | return L""; |
| | |
| | | return L""; |
| | | //return getKReport()->GetColumnProp(pColName, pItem); |
| | | } |
| | | */ |
| | | |
| | | int GetItemInt(int row, int col) |
| | | { |
| | |
| | | return SetItemString(row, col.c_str(), xstring(str)); |
| | | } |
| | | |
| | | int DataBI(LPCTSTR pSchema = NULL) //数据BI分析 |
| | | { |
| | | return getKReport()->DataBI_(pSchema); |
| | | } |
| | | LPTSTR DataAnalysis(LPCTSTR pSchema = NULL) |
| | | { |
| | | return getKReport()->DataAnalysis(pSchema); |
| | | } |
| | | |
| | | public: |
| | | int openUrl(string aurl) |
| | | { |