I realised after posting my previous message that there is an error in my
code - a missing semicolon:
$success:=Zip ($folder;$dst;"";ZIP_Without_enclosing_folder"ZIP_CALLBACK")
should be:
$success:=Zip ($folder;$dst;"";ZIP_Without_enclosing_folder;"ZIP_CALLBACK")
Anyway, now it's working :)
Here is my test code in case it's useful to anybody:
$src:=*Select folder*("Folder to zip:") // select a folder that contains
the required XML files for the DOCX
$dst2:=*GetDataExportsFolder* +Folder separator+"wordtest.docx"
*ZIP_CALLBACK_INIT*
$dst:=*GetDataExportsFolder* +Folder separator+"wordtest.zip"
$success:=*Zip* ($src;$dst;"";ZIP_Compression_level_1;
ZIP_Without_enclosing_folder;"ZIP_CALLBACK")
*ZIP_CALLBACK_DEINIT*
*If* (*Test path name*($dst2)=Is a document)
*DELETE DOCUMENT*($dst2)
*End if*
*COPY DOCUMENT*($dst;$dst2)
Pat
--
*************************************************
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************