Chandan:
No. There is no open source module that will do what you want.
My earlier answer referred you to DSOFile.dll. It's not open source, and it
won't run on a Mac, but it will run on your server.
Search the internet for it.
There seems to be a comprehension problem here. You keep referring to a
"date macro". There is no such thing in Word. You could "create" a macro
that could do anything you like with dates, but Word doesn't contain one.
If you created one, you know where it is and you know what it does.
We keep trying to tell you about the DATE "Field". I am almost certain that
this is what you are looking for. Fields could be described as "macros" in
the publishing field, but in Microsoft Office, a Field and a Macro are not
the same thing.
I think those documents are using Word's DATE field, which reads the
computer's system date. The value read from the system clock at the instant
of last open of the file is stored in the document as a text string.
The DATE field can occur anywhere in the document: if it is in the footer,
there are potentially three footers per section and an unlimited number of
sections in a single document.
Now please: stop confusing this issue. Your answer is very simple, and it's
in three parts:
1) You are almost certainly not looking for a macro. If you are looking
for a macro, then ask the author of the macro what it does and how to read
its result, he's the only one who can tell you. A macro in Word can do
"anything" in the document, "anywhere" in the document, "at any time". It's
a piece of computer code, you have to ask the author what it does.
2) You are probably looking for the RESULT of the DATE field. The date
field's result is plain text and can be any format and anywhere. The DATE
field reads the system clock at document open. There is also a CREATEDATE
field and a SAVEDATE field. Those two read the date stored in binary in the
file header.
3) The only thing that will reliably decode a Microsoft Word document is
Microsoft Word. You need to run that and interact with its API to do what
you want. You may be able to do the same thing with OpenOffice. But each
of them will need to open the file to do what you want.
Cheers
hi,
I want a solution of my problem not a discussion over it,and the
problem is:
is there any program module available as open source which could
take an office document as input and tells me the creation date of the
document which is a document property , and if the date macro is
enabled in footer then then I should know it before opening the
document.
I have written a perl module but I could not get the creation date.
please do reply if any one of you has a solution which could make me
think ahead of current state.
regards
chandan
--
Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.
John McGhie <
[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 4 1209 1410