duanjia9577 2014-11-24 15:18
浏览 95

在COM对象中查找方法

I'm trying to use the COM object of InDesign Server CS6 to export an InDesign document as a PDF.

Checking the object model viewer that comes with InDesign I find a method 'exportFile()' for the Document object, but using this results in an error telling this method variant does not exist. Using 'export()' instead gives me the correct result, but this method is not in the documentation, so I have no idea what parameters to use.

Is there a way to extract all methods and other usefull information from a COM object directly withou relying on the InDesign documentation which is not always that correct?

  • 写回答

1条回答 默认 最新

  • dro62273 2014-11-24 15:27
    关注

    All the metadata that's available for COM components come from the type library - it's usually embedded in the component as a resource or it could be a separate .tlb file next to the binaries.

    Type libraries describe the binary interfaces of the component(s) and support having some documentation - if the type library doesn't have the information you're looking for, it's either in the product documentation or you'll have to talk to the developer of the component and Google for others that may have faced the same issues.

    You can use the OLE/COM Object Viewer to inspect type libraries if your IDE doesn't have built-in support already.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度