I know it is a old question, but maybe there are any news
I want to read a zip-file as Stream from the filesystem, unzip it and
manipulate the contents in Caché. Then I want to zip it and save it back to
the filesystem.
In the zipfile there are files and folders
Maybe anyone has an idea how I can solve this problem.
Thanks
Alexander
"Alexander Neuber" <alexande...@leichum.com> schrieb im Newsbeitrag
news:44621...@info2.kinich.com...
---
Rob Tweed
M/Gateway Developments Ltd
The Pursuit of Productivity : http://www.mgateway.com
---
There is a little bit more, what i want to do:
We use the XML-format to create MS-Office Documents and to mail them. I don't
write a file to the filesystem.
In the next Office Version, there will be a new fileformat
(www.ecma-international.org/memento/TC45.htm) an I want to do the same in
the new format.
brgs
Alexander
"Alexander Neuber" <alexande...@leichum.com> schrieb im Newsbeitrag
news:44621...@info2.kinich.com...
how does this apply to zip/unzip of archives with many files and
directories?
Regards
Alex
"Alexander Neuber" <alexande...@leichum.com> schrieb im Newsbeitrag
news:4462e...@info2.kinich.com...
sorry Alexander, I am not to good in english and have trubles to understand
your question.
can you please repeat it in other words.
Thank you
Alexander
"Alexander Riemer" <_alex....@gmx.net> schrieb im Newsbeitrag
news:44638...@info2.kinich.com...
dann eben auf Deutsch :-)
Vielleicht habe ich meine Frage auf Englisch auch nicht ganz richtig
formuliert ;-)
Die Frage war: Was hat das Erstellen von MS-Office-Dokumenten mit
Zipen/Unzipen zu tun? OK, Du schreibst, dass Du das Office-Dokument mailst.
Möchtest Du es vor dem Mailen zipen? Falls ja, solltest Du die Datei nicht
als (Global-) Stream erstellen sondern als eine Datei. Danach kannst Du ein
Komprimierungsprogramm aufrufen und die komprimierte Datei mailen. Einen
Caché-nativen Komprimierer kenne ich leider nicht.
Habe ich das Problem nun richtig verstanden?
Gruss
Alex
"Alexander Neuber" <alexande...@leichum.com> schrieb im Newsbeitrag
news:44644...@info2.kinich.com...
Danke für die Vereinfachung der Kommunikation.
Microsoft hat sich für die neue Office-Version das Fileformat geändert bzw.
sich an einen (neuen) Standard angepasst.
Ein Dokument besteht aus verschiedenen Bestandteilen:
) Texte
) Formatierungen
) Graphiken
) Benutzerinformationen
jeder dieser Bestandteile wir in einem Verzeichnis als XML-Datei abgelegt.
Danach wird alles in einen Zip-Container gepackt.
Daher meine Idee, wenn ich aber genauer darüber nachdenke, werde ich ein
Temporäres Dokumentenabhängiges-Verzeichnis legen und darin alle Operationen
die für das erstellen und manipulieren des Dokumentes notwendigen sind
durchführen.
Wird ein interresantes Projekt werden.
Danke für die Denkhilfe
Jetzt ist nur noch zu klären was das beste Progamm zum Un/Zippen ist.
Schöne Grüße
Alexander
"Alexander Riemer" <_alex....@gmx.net> schrieb im Newsbeitrag
news:4464c...@info2.kinich.com...
> Wird ein interresantes Projekt werden.
Kannst Du vielleicht die Früchte Deiner Arbeit mit der Caché-Gemeinde
teilen? Es gibt unter zcachelib.org eine Plattform, die sich der (offenen)
Entwicklung von Caché-Tools verschriehen hat. Evlt. kannst Du dort ein
Projekt starten. Von dieser Arbeit können viele profitieren und Du könntest
von der Zuarbeit (z. B. Testen, Dokumentieren, Weiterentwickeln) der anderen
profitieren.
Das Projekt könnte evtl. später auf das neue ISO-standardisierte OpenOffice
Dokumentenformat erweitert werden.
> Jetzt ist nur noch zu klären was das beste Progamm zum Un/Zippen ist.
Da gibt es haufenweise Tools. Ich selbst nutze 7-zip (www.7-zip.org). Es
steht unter der LGPL-Lizenz und kann somit auch in kommerziellen Projekten
genutzt werden. Alternativ kann man auch tar/gzip nutzen. Ich schätze aber,
MS-Office kann damit nicht umgehen :-)
Gruss
Alex
--
Thanks,
Derek Day
Intersystems Support Adviser
How does the creation of MS Office documents concern with zip/unzip files?
OK, you say, you want to mail your Office documents. Do you want to zip them
first? If so, you should create them as normal files instead of (global)
streams. Afterwards you can call an archiver und email the archive. I don't
know a Caché native archiver.
Did I get your problem right?
Regards
Alex
Thanks for simplifying the communication.
Microsoft has changed their file format for Office documents.
A document consists of
) Text
) Formatting information
) Graphics
) User information
Each of this part has to be created as a XML file and placed in the same
directory.
Then all this elements are compressed to a zip file.
And that was my first idea: To create all relevant XML files in the Caché DB
and then compress it the database.
But if I think about it, I will create a temporary directory for each
document and create all necessary files there.
It will be an interesting project.
Now I have to find out what's the best program for zipping/unzipping.
Regards
"Alexander Neuber" <alexande...@leichum.com> schrieb im Newsbeitrag
news:4468c...@info2.kinich.com...
Rob
---
> It will be an interesting project.
Could you please share your work with the Caché community? There is a
platform on www.zcachelib.org which hosts community developed Caché tools.
Maybe you can start a project there. There are a lot of people that could
profit from your work and you could get more workers for your project (for
testing, documenting and development).
You could also expand your project for creating the brand new ISO
standardized OpenOffice document format (ODF).
> Now I have to find out what's the best program for zipping/unzipping.
There are a lot of tools. I use 7-zip myself (www.7-zip.org). It is licensed
under LGPL and therefore you can use it commercial projects also. You could
use tar/gzip as an alternative. But I guess MS Office can't handle this :-)
Regards
Alex
"Alexander Riemer" <_alex....@gmx.net> schrieb im Newsbeitrag
news:4468d...@info2.kinich.com...
in a previous incarnation I got hold of a cheap zip/unzip utility off the
web and used the Cache activex functionality built a little wrapper class to
rpovide this funcionality. This worked very well
Chris
"Alexander Neuber" <alexande...@leichum.com> wrote in message
news:44621...@info2.kinich.com...
And what's the name of it?
"Alexander Riemer" <_alex....@gmx.net> wrote in message
news:44748...@info2.kinich.com...