【问题标题】:Count openoffice pages between documents计算文档之间的 openoffice 页面
【发布时间】:2016-02-05 00:55:19
【问题描述】:

我有两个 odt 文件 A 和 B,其中文件 A 有 n 页,而 B 有 m 页。使用B中的宏可以得到A(n)的页数吗?

【问题讨论】:

    标签: macros openoffice.org


    【解决方案1】:

    获取当前文档的页数:

    MsgBox ThisComponent.CurrentController.PageCount
    

    因此,而不是 ThisComponent,加载另一个文档并从该组件获取页数。 Andrew's Macro Document 第 5.8.2 节解释了如何加载另一个文档。

    【讨论】:

      猜你喜欢
      • 2022-01-08
      • 2021-02-20
      • 1970-01-01
      • 2011-03-27
      • 1970-01-01
      • 2013-08-30
      • 2012-12-08
      • 2012-02-12
      • 2016-05-30
      相关资源
      最近更新 更多