https://bugs.documentfoundation.org/show_bug.cgi?id=153593

            Bug ID: 153593
           Summary: VBA SaveAs method with relative file paths does not
                    work
           Product: LibreOffice
           Version: 4.1.0.4 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: implementationError
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 108908

Created attachment 185348
  --> https://bugs.documentfoundation.org/attachment.cgi?id=185348&action=edit
Example file from Calc

This is a bit of continuation after bug 149786
Attached example file is derived from attachment 181030 of that bug.

Now that the ExportAsFixedFormat is implemented, we see it failing on the
filename specification used in that macro: 
 Filename:=".\ExportAsPDF.pdf",

A bit of experimentation found that the SaveAs method also has this error.

1, Open attached file
2, Run the macros in Calc

Result: when running the ExportAsPDF macros (with
https://gerrit.libreoffice.org/c/core/+/146512 applied locally), they save the
PDF files correctly except the  Filename:=".\ExportAsPDF_dot.pdf" case.

The save_as_file macros are worse: only the save_as_file_fp works, and the
other two with filename specifications:
    Filename:=".\FileSaveTest_dot"
and
    Filename:="FileSaveTest_fn"
cause an error dialog.

These should produce an output file like save_as_file_fp() does.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6028e9fda96d0ed5da266b1c54a7755f7ba3408c
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

Happens since 4.1, before the SaveAs method was not implemented at all.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=108908
[Bug 108908] [META] Visual Basic for Applications (VBA) macro issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to