Created attachment 185348 [details] Example file from Calc This is a bit of continuation after bug 149786 Attached example file is derived from attachment 181030 [details] 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.
Created attachment 185349 [details] List of created files after running all the macros in Excel 2016
Created attachment 185350 [details] Error message by Calc master
Created attachment 185351 [details] Same error message with the third macro as well
Created attachment 185352 [details] Saving with the save_as_file_fp is successful With an absolute path given the save succeeds. File extension was not auto-added, will file that as a separate report.
I confirm the save as error. The PDF file produced: .\ExportAsPDF_dot.pdf Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 98cf5157d69d9f1692be7f2cac958b1dfb387ca9 CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 28 March 2023