pb10如何用ole控件显示blob变量的内容

程序部分代码如下:blob lb_filestring ls_idsqlca.autocommit = trueselectblob file into :lb_file from table_file where table_file.id = :ls_id;sqlca.autocommit = falseole_1.activate(offsite!)ole_1.objectdata = lb_file//************************//程序运行后提示//Application terminated//Bad runtime function reference ****"ole_1.objectdata = lb_file"****这一行的错误请问各位高手,哪里出了错啊。注:1.数据库为oracle 9i2.lb_file变量肯定从数据库中取出数据了
2026年09月25日 11:55
有3个网友回答
网友(1):

我之前也遇到这个问题,经过反复试,发现是因为ole对象不支持数据库里储存的文件格式的问题,如果你储存的是docx格式数据,换成doc数据就好了。

网友(2):

在PB安装文件中找到pbodb100.ini文件,打开,找到其中所有的 PBMaxBlobSize 项,将 32767 改成 0,就可以啦!

网友(3):

看你的blob存储的是什么类型的,如果是图片:
p_1.SetPicture(lb_file )
你用ole控件接收可能不行