当前位置: 代码迷 >> PB >> PB求指点。存sql image列,跪求各路大神
  详细解决方案

PB求指点。存sql image列,跪求各路大神

热度:76   发布时间:2016-04-29 06:30:55.0
PB求指导。存sql image列,跪求各路大神
tab_1.tabpage_8.ole_text.object.headerfooterselect(0)
tab_1.tabpage_8.ole_text.object.headerfooterselect(16)//切换到主体
tab_1.tabpage_8.ole_text.object.headerfooteractivate(0)

tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(0, tab_1.tabpage_8.ole_text.object.PageWidth)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(1, tab_1.tabpage_8.ole_text.object.PageHeight)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(2, tab_1.tabpage_8.ole_text.object.PageMarginL)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(3, tab_1.tabpage_8.ole_text.object.PageMarginT)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(4, tab_1.tabpage_8.ole_text.object.PageMarginR)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(5, tab_1.tabpage_8.ole_text.object.PageMarginB)
tab_1.tabpage_8.ole_text.object.Save(Fn, 0, 3)
这上面这段代码是啥子意思啊。PB菜鸟求各位大神指导

------解决方案--------------------
引用:
tab_1.tabpage_8.ole_text.object.headerfooterselect(0)
tab_1.tabpage_8.ole_text.object.headerfooterselect(16)//切换到主体
tab_1.tabpage_8.ole_text.object.headerfooteractivate(0)

tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(0, tab_1.tabpage_8.ole_text.object.PageWidth)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(1, tab_1.tabpage_8.ole_text.object.PageHeight)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(2, tab_1.tabpage_8.ole_text.object.PageMarginL)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(3, tab_1.tabpage_8.ole_text.object.PageMarginT)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(4, tab_1.tabpage_8.ole_text.object.PageMarginR)
tab_1.tabpage_8.ole_text.object.LoadSaveAttribute(5, tab_1.tabpage_8.ole_text.object.PageMarginB)
tab_1.tabpage_8.ole_text.object.Save(Fn, 0, 3)
这上面这段代码是啥子意思啊。PB菜鸟求各位大神指导


设置 ole里要保存的图片的宽度和高度和目前显示的图形一致,下面几行是边距的设置,最后是保存
  相关解决方案