This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Aug 9, 2018, 6:47 PM
16 Posts

Saving a word doc to pdf

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 2

I have code that generates a word document, using vba/lotusscript.

 

I now want to be able to save the word file as a .pdf..

 

I found this :

 objDoc.SaveAs2 "C:\Docs\MyDoc.pdf", 17

 

but I don't know how to write that as lotusscript

Aug 9, 2018, 8:49 PM
16 Posts
Figured it out

objDoc.SaveAs filename, 17

Aug 10, 2018, 6:03 AM
3 Posts
What is your office version?

What is your office version?

Only Office 2007 and newer versions supported "Save file as PDF".

============

For Office 2016:


Set wrd = CreateObject("Word.Application")    

wrd.Visible = True
wrd.Documents.Add

wrd.Selection.TypeText "Sample text"

Call wrd.ActiveDocument.ExportAsFixedFormat("c:\temp\test.pfd", 17)

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal