Hi everyone,
I’m trying to save a xls-file, which I generate by a macro. But it just won’t work. This is why I want to ask you which ideas you have about it.
This is a part of my code (“speicherpfad” and “Name” are defined in another part of the code):
dim mFileType(0) as new com.sun.star.beans.PropertyValue
mFileType(0).Name = "FilterName"
mFileType(0).Value="MS Excel 97"
ThisComponent.StoreAsURL( speicherpfad & Name & ".xls", mFileType())
The error message I get is:
BASIC-Laufzeitfehler. Es ist eine Ausnahme aufgetreten
Type: com.sun.star.task.ErrorCodeIOException
Message: sfxBaseModel::impl_store
failed: 0x81a
I have tried different things, nothing worked. On one page I found the information, that this error message might mean I can’t save the file because this kind of document doesn’t exist yet and it’s not possible to generate a new document?! But I also tried to overwrite a manually saved file with the same name, and it wouldn’t save either.
I wonder whether the spelling of “MS Excel 97” is totally correct? I found it often, but it was never on tutorials, but on forum entries from earlier than 2011.
Any ideas? If you need more information, I’ll post it.
Thank you already for your ideas
Julia