关于PB的一段代码问题!
各位高手,本人有以下一段代码有不明的地方
long numcols , numrows , c, r
OLEObject xlapp , xlsub
int ret
string ls_pathfile,ls_file
integer li_retval
string ls_colname
li_retval = getfilesavename("select file",ls_pathfile,ls_file, &
"xls","Excel Files (*.xls),*.xls")
if li_retval = 1 then
dw_print.saveas(ls_pathfile,excel5!,true)
numcols = long(dw_print.Object.DataWindow.Column.Count)
numrows = dw_print.RowCount()
xlApp = Create OLEObject
ret = xlApp.ConnectToNewObject( "Excel.Sheet" )
if ret < 0 then
MessageBox("Connect to Excel Failed !",'不能找到Excel!')
return
end if
xlApp.Application.Workbooks.Open(ls_pathfile) //,false,true
xlApp.Application.Visible = true
xlsub = xlapp.Application.ActiveWorkbook.Worksheets[1]
有谁能帮我解释一下以下三句的意思啊?
xlApp.Application.Workbooks.Open(ls_pathfile) //,false,true
xlApp.Application.Visible = true
xlsub = xlapp.Application.ActiveWorkbook.Worksheets[1]
谢谢各位!
long numcols , numrows , c, r
OLEObject xlapp , xlsub
int ret
string ls_pathfile,ls_file
integer li_retval
string ls_colname
li_retval = getfilesavename("select file",ls_pathfile,ls_file, &
"xls","Excel Files (*.xls),*.xls")
if li_retval = 1 then
dw_print.saveas(ls_pathfile,excel5!,true)
numcols = long(dw_print.Object.DataWindow.Column.Count)
numrows = dw_print.RowCount()
xlApp = Create OLEObject
ret = xlApp.ConnectToNewObject( "Excel.Sheet" )
if ret < 0 then
MessageBox("Connect to Excel Failed !",'不能找到Excel!')
return
end if
xlApp.Application.Workbooks.Open(ls_pathfile) //,false,true
xlApp.Application.Visible = true
xlsub = xlapp.Application.ActiveWorkbook.Worksheets[1]
有谁能帮我解释一下以下三句的意思啊?
xlApp.Application.Workbooks.Open(ls_pathfile) //,false,true
xlApp.Application.Visible = true
xlsub = xlapp.Application.ActiveWorkbook.Worksheets[1]
谢谢各位!
...全文
相关推荐
PB使用SHFileOperation函数复制文件夹(文件)API
在工作中遇到的问题,结合网上的各方资料现整理出此脚本! 此脚本在PB环境中已经测试通过,请放心使用,如有疑问请密我!
部署上线tensorflow的pb模型
将tensorflow的ckpt模型转化为pb模型,可以大大提高网络预测速度,是进行部署的第一步。怎么做参考:这里。我看网上资料较少,我写一下怎么读取pb模型进行测试,通常落地会采用c++这种更底层的语言。 具体怎么写需要根据网络的测试代码来写,每个网络输入输出不一样,我在下面贴一个写好的只作为参考。 总体步骤: 1.读入pb文件 def freeze_graph_test2(pb_pa...
STM32F103x8B PB3、PB4、PA14、PA15引脚作为普通IO口使用
STM32的PB3、PB4、PA14、PA15引脚可以在使用ISP烧录的情况下释放出来,作为普通IO口使用。 初始化代码如下: void Gpio_init(void) { GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2P
STM32 JTAG接口PB3PB4配置为IO口使用问题
因为IO口紧张,在原理绘制期间就利用了PB3和PB4,但是在调试程序的时候才发现,PB3和PB4控制不了。
PB基础学习教程,适合初次学习PB的同志!
PB基础学习教程,适合初次学习PB的同志!


脚本语言
