vbScript Word宏嵌入PDF [英] vbScript Word macro embed PDF

查看:213
本文介绍了vbScript Word宏嵌入PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然使用Word 2010 64位将不允许嵌入pdf,而32位将允许嵌入.因此,要使用64位,我需要一个宏:

Apparently using Word 2010 64 bit won''t allow pdfs to be embedded, 32 bit will. So, to use 64 bit I have a macro:

Sub PDF()
  Selection.InlineShapes.AddOLEObject ClassType:="AcroExch.Document.7, _
  FileName:="", LinkToFile:=False, DisplayAsIcon:=True, _
  IconFileName:="C:\WINDOWS\Installer\{AC76BA86-7AD7-1033-7B44-AA1000000001}\PDFFile_8.ico" _
  , IconIndex:=0, IconLabel:=""
End Sub


如何获取被选择嵌入为IconLabel的文件的文件名?
浏览文件,嵌入和显示PDF图标就可以了.

谢谢


How do I get the file name of the file that is selected to embed to be the IconLabel?
Browsing for the file, embedding and displaying the PDF icon is fine.

Thanks

推荐答案

似乎是一个已知问题:
http://forums.adobe.com/thread/758213 [
Seems to be a known problem:
http://forums.adobe.com/thread/758213[^]


这篇关于vbScript Word宏嵌入PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆