BodyData is empty by calling ThisComponent.storeToURL

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
cxzcs
Posts: 1
Joined: Thu Aug 02, 2018 4:01 pm

BodyData is empty by calling ThisComponent.storeToURL

Post by cxzcs »

I try to call ThisComponent.storeToURL to store document to server side by web service in HTTP or HTTPS. The code like
dim sURL as string
sURL=convertToURL(GetBaseURL() & "/handlers/DocSaveHandler.ashx?" & getParams())
ThisComponent.storeToURL(sURL, array())
The server side can get this http put request, but the request Content length is 0. how to solve this issue?
Apache OpenOffice 4.1.2 Windows10
gr8h8m
Posts: 1
Joined: Thu Sep 20, 2018 4:38 pm

Re: BodyData is empty by calling ThisComponent.storeToURL

Post by gr8h8m »

try ThisComponent.storeAsUrl(sURL, array())..for more visit https://wiki.openoffice.org/wiki/Saving_a_document
OpenOffice 3.1 on Windows 7
Post Reply