Hi Miyako,
Hmmm ... But it DOES work that way as long as:
a) the Zip archive doesn't include the main folder
and
b) all the files contained in the archive are valid

The second criterion is the tricky one ... if something is wrong with one
of the XML files you simply get an error message saying that Word can't
open the document - there's no indication of what the problem is.

Pat

On 18 January 2018 at 20:20, Keisuke Miyako via 4D_Tech <
[email protected]> wrote:

> although it's true that DOCX files are created using the zip algorithm,
> you can't just zip a folder and change it's fie extension; that's not how
> it works.
>
> to prove that point, you could change the extension of a valid DOCX to ZIP,
> zip it back, and change it's extension back to DOCX. it's now a broken
> file.
>
> the zip algorithm allows files and folders to be modified **directly**
> inside the archive,
> without opening it, and that's how DOCX files should be accessed.
>
> opening it will ruin it.
>
> you can use command line zip tools to access the contents of a zip archive
> directly.
>
> alternatively you could use something like:
>
> https://github.com/miyako/4d-plugin-opc
>
> > 2018/01/18 20:39、Pat Bensky via 4D_Tech <[email protected]> のメール:
> >
> > I think I am slowly losing my sanity.
> > Trying to create DOCX files from 4D.
>
>
>
>
> **********************************************************************
> 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]
> **********************************************************************
>



-- 
*************************************************
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]
**********************************************************************

Reply via email to