https://bugs.documentfoundation.org/show_bug.cgi?id=166779
Bug ID: 166779
Summary: Unable to export a Draw / Impress document to SVG from
Basic IDE
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Draw
Assignee: [email protected]
Reporter: [email protected]
Open a Draw / Impress document.
Open Basic IDE, and run the following code from there:
Sub ExportAsSvg
Dim args(0) As New com.sun.star.beans.PropertyValue
args(0).Name = "FilterName"
args(0).Value = "draw_svg_Export"
target = ThisComponent.URL + ".svg"
ThisComponent.storeToUrl(target, args())
End Sub
This code fails in storeToUrl:
> BASIC runtime error.
> An exception occurred
> Type: com.sun.star.io.IOException
> Message: SfxBaseModel::impl_store
> <file:///C:/D/Downloads/VCT/1005875/magicDraw1.odg.svg> failed:
> 0xc10(Error Area:Io Class:Write Code:16).
Running the same code from the Draw / Impress window, using Tools->Macros->Run
Macro succeeds.
--
You are receiving this mail because:
You are the assignee for the bug.