Page 1 of 1

Save odt to PDF in Shared Folder with credentials

PostPosted: Tue Mar 19, 2019 4:55 pm
by dionisio77
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())