Save odt to PDF in Shared Folder with credentials

Creating a macro - Writing a Script - Using the API

Save odt to PDF in Shared Folder with credentials

Postby dionisio77 » Tue Mar 19, 2019 4:55 pm

I'm working in a macro to save a document as PDF in a specific folder.
I want to change that to save into a Shared Folder with credentials. It will be great to hide the credentials as well.

This is what I do to save:
dim args2(2) as new com.sun.star.beans.PropertyValue

args2(0).Name = "URL"
args2(0).Value = "file:///D:/TEMP/"FileName".pdf"
args2(1).Name = "FilterName"
args2(1).Value = "writer_pdf_Export"

dispatcher.executeDispatch(document, ".uno:ExportDirectToPDF", "", 0, args2())
Openoffice 4.1.2 on Windows 7
dionisio77
 
Posts: 3
Joined: Fri Mar 15, 2019 2:54 pm

Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 7 guests