标题:【求助】VB报错 “NotAllowedError”
取消只看楼主
gustavegsc
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2022-6-7
结帖率:0
已结贴  问题点数:20 回复次数:0 
【求助】VB报错 “NotAllowedError”
Sub saveASexl(mypath As String, destname As String)

Dim acApp As New Acrobat.AcroApp
Dim avdoc As New Acrobat.AcroAVDoc
Dim xpddoc As New Acrobat.AcroPDDoc
Dim jsobj As Object

Set acApp = CreateObject("acroexch.app")

acApp.Show

Set avdoc = CreateObject("acroexch.avdoc")

If avdoc.Open(mypath, vbNull) = True Then

   Set xpddoc = avdoc.GetPDDoc
   Set jsobj = xpddoc.GetJSObject
   
   jsobj.SaveAs "11", "com.adobe.acrobat.xlsx"

End If

End Sub

我要用vb操作pdf另存为excel文件,每次运行到jsobj.SaveAs "11", "com.adobe.acrobat.xlsx"这一步的时候都会出现下边的报错,请大神帮忙看下是什么原因?




[此贴子已经被作者于2022-6-7 08:48编辑过]

搜索更多相关主题的帖子: New Dim Set VB 报错 
2022-06-07 08:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-509275-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.225478 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved