PB中怎样把数据写到已经固定格式的EXCEL表中
来源:互联网 发布:mac格式化移动硬盘 编辑:程序博客网 时间:2024/06/06 01:03
int i,handle,n
handle = openchannel("Excel",'book1.xls')
if handle < 0 then
messagebox('提示','请打开EXCLE程序! 并打开BOOK1.XLS,且清空该表格!')
return
end if
setremote('r1c1' , '客户欠费分析表' , handle)
setremote('r2c5' , '统计日期: ' + is_rq1 + ' 至 ' + is_rq2 , handle)
setremote('r3c1' , '排名' , handle)
setremote('r3c2' , '客户码' , handle)
setremote('r3c3' , '客户名称' , handle)
setremote('r3c4' , '应收总额' , handle)
setremote('r3c5' , '欠费总额' , handle)
setremote('r3c6' , '比率' , handle)
setremote('r3c7' , tab_1.tabpage_1.dw_1.object.no1_t.text , handle)
setremote('r3c8' , tab_1.tabpage_1.dw_1.object.no2_t.text , handle)
setremote('r3c9' , tab_1.tabpage_1.dw_1.object.no3_t.text , handle)
setremote('r3c10', tab_1.tabpage_1.dw_1.object.no4_t.text , handle)
setremote('r3c11', tab_1.tabpage_1.dw_1.object.no5_t.text , handle)
for i = 1 to tab_1.tabpage_1.dw_1.rowcount()
setremote("r" + string(i+3) + 'c1' , string(i) , handle)
setremote("r" + string(i+3) + 'c2' , tab_1.tabpage_1.dw_1.getitemstring (i , 'khbm') , handle)
setremote("r" + string(i+3) + 'c3' , tab_1.tabpage_1.dw_1.getitemstring (i , 'khmc') , handle)
setremote("r" + string(i+3) + 'c4' , string(tab_1.tabpage_1.dw_1.getitemdecimal(i , 'ys')) , handle)
setremote("r" + string(i+3) + 'c5' , string(tab_1.tabpage_1.dw_1.getitemdecimal(i , 'qf')) , handle)
setremote("r" + string(i+3) + 'c6' , string(tab_1.tabpage_1.dw_1.getitemdecimal(i , 'bl')) , handle)
setremote("r" + string(i+3) + 'c7' , string(tab_1.tabpage_1.dw_1.getitemdecimal(i , 'no1')) , handle)
setremote("r" + string(i+3) + 'c8' , string(tab_1.tabpage_1.dw_1.getitemdecimal(i , 'no2')), handle)
setremote("r" + string(i+3) + 'c9' , string(tab_1.tabpage_1.dw_1.getitemdecimal(i , 'no3')) , handle)
setremote("r" + string(i+3) + 'c10', string(tab_1.tabpage_1.dw_1.getitemdecimal(i , 'no4')) , handle)
setremote("r" + string(i+3) + 'c11', string(tab_1.tabpage_1.dw_1.getitemdecimal(i , 'no5')) , handle)
next
closechannel(handle)
messagebox('提示','保存完毕!')
转自:http://blog.csdn.net/bjash/archive/2007/07/08/1682580.aspx
- PB中怎样把数据写到已经固定格式的EXCEL表中
- 把Excel中的数据插入到数据库中已经存在的表中
- 把Excel中的数据插入到数据库中已经存在的表中
- java怎样把数据导入到Excel中去
- Excel的数据导入到PB的DW中
- Excel的数据导入到PB的DW中
- PB中 把DW导出到Excel,与Excel通讯
- PB中 把DW导出到Excel,与Excel通讯
- java--把数据库数据写到本地excel中
- 怎样把值输入到新建的excel中。
- 写数据到Excel中
- Excel中怎样固定单元格?
- WPF 把固定格式的外部文件编译到程序中,并在程序中读取
- 怎样把Oracle的数据导入到SQLServer2005中
- 【转载】怎样把Oracle的数据导入到SQLServer2005中
- 表维护中,怎样把数据下载到本地?
- Android 将数据保存到已有的固定模板的Excel表中
- 如何把EXCEL的数据导入到ORACLE数据库中
- excel表的导入
- 数字到英文金额的转换PB
- 辟邪剑谱之Ajax
- IBM Portal 6.0 部署定制的主题和外表
- Tomcat 远程调试(remote debug)
- PB中怎样把数据写到已经固定格式的EXCEL表中
- 在C++中使用C#编写的类
- 关于RCP中加introAction(Welcome欢迎)的无法启动问题解决方案
- 数据窗口保存为excel的通用函数
- Should the naming rights of National Stadium to be sold? (by self)
- Oracle更改字符集 ZHS16GBK
- PB中TreeView控件使用技巧(扫肓)
- Google搜索技巧终极收集 - 101个Google技巧
- 随手写了个《阿炬脑筋急转弯》附VB6源码下载