2 tomzhou88 tomzhou88 于 2014.08.04 16:45 提问

VB6 将Word保存为PDF动作如何用 VB6语言表述

已引用 office 15.0 ,exportasfiedformat语局是从WORD VBA中录制的,但是在VB6中无法使用。求助!!!!!

Dim appword, wordbook As Object

Set appword = CreateObject("word.application")
Set wordbook = appword.Documents.Open("C:\Users\Desktop\新建 Microsoft Word 文档.docx")

wordbook.ExportAsFixedFormat OutputFileName:="C:\Users\Desktop\新建 Microsoft Word 文档.pdf", _ ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:=wdExportOptimizeForPrint, _ Range:=wdExportAllDocument, From:=1, To:=1, Item:=wdExportDocumentContent, IncludeDocProps:=True, _ KeepIRM:=True, CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, BitmapMissingFonts:=True, _ UseISO19005_1:=False

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!