【问题标题】:insert ole object using dxl script automatically使用 dxl 脚本自动插入 ole 对象
【发布时间】:2014-09-25 08:21:49
【问题描述】:

我是 dxl 的新手,很高兴知道如何导入图片文件 例如。 DOORS 数据库中自动使用 DXL 脚本的 JPG 文件(多张图片,大约 60 个 JPG 文件)。

我已尝试手动执行以下步骤。

创建了一个属性为:对象文本的列 双击行和文件-->导入-->OLE 对象和我选择的图片文件位置,这很好,现在我有 100 多个 JPG 文件要导入到 DOORS 数据库中。

知道如何使用 DXL Script 自动执行此操作会很有趣。

提前致谢!!!

最好的问候, 圣

【问题讨论】:

    标签: ibm-doors


    【解决方案1】:

    在 DXL 参考手册中,有一节“OLE 对象 > 图片对象支持”列出了用于处理图片的所有 DXL 函数,以及一些示例代码。以下是他们的示例 sn-ps 之一:

    Object currentObject = current 
    bool Result = false 
    string BitmapFileName = "c:\\test.bmp" 
    if (currentObject == null) {
      //No objects currently exist in the module 
      Result = insertPictureFileBelow(BitmapFileName,
                formatBMP,null)
    } else {
      Result = insertPictureFileBelow(BitmapFileName,
                formatBMP,currentObject)
    } 
    if(Result) {
        print "Successful picture insertion\n"
    } 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-03
      • 1970-01-01
      相关资源
      最近更新 更多