Re: How to pack a proper zip file with Basic

2017-03-20 Thread Heiko Tietze
This issue has been solved and meanwhile I sent out another request for the final review. Would be great to get your feedback on the referenced ticket https://bugs.documentfoundation.org/show_bug.cgi?id=106644. 2017-03-20 15:00 GMT+01:00 Christian Lohmaier : >> Full code is at http://pastebin.com/

Re: How to pack a proper zip file with Basic

2017-03-20 Thread Christian Lohmaier
> Full code is at http://pastebin.com/e1rt0rSM but for only 1 day. This is not how mailinglists work, and enough reason for me not to look at the rest of the post at all. What's the point? ciao Christian ___ LibreOffice mailing list LibreOffice@lists.f

Re: How to pack a proper zip file with Basic

2017-03-19 Thread Heiko Tietze
Thanks a lot for your code snippet and the heads-up. It's almost the same code, and after double-checking the minor differences with no success the issue must have been caused by something else. That brought me to the slash in the filename. And eventually it works now like a charm. On 03/19/20

Re: How to pack a proper zip file with Basic

2017-03-19 Thread Oliver Brinzing
Hi Heiko, following code works for me to create a new zip archive and add a file Regards Oliver OPTION EXPLICIT Sub Test() Dim oZipArchive as Variant Dim aArg As New com.sun.star.beans.NamedValue Dim SURL as String Dim sFile as String s

How to pack a proper zip file with Basic

2017-03-18 Thread Heiko Tietze
Although it's a FAQ I cannot find an answer. I'm trying to create an extension with Basic. Everything works fine when I pack the stuff with "zip -r foo.oxt ." given that I'm in the right directory, otherwise the parent dirs are included. But ChDir() is not available anymore in Basic so I have to