PB导出数据excel格式dw2xls
PB導(dǎo)出數(shù)據(jù)excel格式dw2xls
?使用DW2XLS控件
語法
uf_save_dw_as_excel ( dw, filename )?
參數(shù)
dw A reference to the datawindow object
filename A string whose value is the name of the file you want to create. If filename is not on the operating system's search path, you must enter the fully qualified name.?
返回值
Integer. Returns 1 if it succeeds and -1 if an error occurs.
舉例
我的實(shí)際例子
?
首先 migrate dw2XLS
?
界面
相關(guān)代碼
導(dǎo)出結(jié)果
?
還有相關(guān)的就是
?
uf_save_dw_as_excel_parm() function
Converts datawindow into excel file. Allows to specify some options for process of converting.
語法
uf_save_dw_as_excel_parm ( dw, filename, parm )?
參數(shù)
dw A reference to the datawindow object
filename A string whose value is the name of the file you want to create. If filename is not on the operating system's search path, you must enter the fully qualified name?
parm A reference to the n_dwr_service_parm object which contain a set of parameters for process of converting
返回值
Integer. Returns 1 if it succeeds and -1 if an error occurs.
舉例
?
//export using parameters integer li_ret n_dwr_service_parm lnvo_parm lnvo_parm = create n_dwr_service_parm lnvo_parm.ib_header = false //skip header band 沒有標(biāo)題行 lnvo_parm.ib_summary = false //skip summary band lnvo_parm.ib_footer = false //skip footer band lnvo_parm.ib_group_header = false //skip all group headers lnvo_parm.ib_group_trailer = false //skip all group trailers li_ret = uf_save_dw_as_excel_parm(dw_1, 'c:\doc\report.xls', lnvo_parm) if li_ret = 1 then//success//... else//fail//... end if
下面這個(gè)沒有測試成功,可能版本不對
is_header_text 沒有這個(gè)方法
?
總結(jié)
以上是生活随笔為你收集整理的PB导出数据excel格式dw2xls的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 前端学习(2741):重读vue电商网站
- 下一篇: 数据结构课程设计:算术表达式的求值