【问题标题】:How to break external links of Excel files with Aspose.Cells for C++如何使用 Aspose.Cells for C++ 断开 Excel 文件的外部链接
【发布时间】:2020-08-01 12:01:21
【问题描述】:

我一直在搜索 this documentation 以获取有关如何断开 Excel 文件的外部链接的说明,但没有成功。

如何使用 Aspose.Cells for C++ 断开 Excel 文件的外部链接?

【问题讨论】:

    标签: c++ excel hyperlink external aspose


    【解决方案1】:

    我认为您可以删除 Excel 电子表格中的外部链接,而不是破坏超链接。请参阅示例代码以供参考: 例如

    示例代码:

    void RemoveExternalLinksTest()
    {
    intrusive_ptr<IWorkbook> workbook = Factory::CreateIWorkbook(sourcePath->StringAppend(new String("ExternalLinksTest.xlsx")));
    if(workbook->HasExernalLinks())
    workbook->RemoveExternalLinks();
    workbook->Save(resultPath->StringAppend(new String("ExternalLinksTest-Ret.xlsx")));
    }
    

    附言。我在 Aspose 担任支持开发人员/宣传员。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多