panic

O

om_chandan

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
 
E

Elliott Roper

hi,

I want a solution of my problem not a discussion over it,and the
problem is:
You are not getting answers because you keep changing the problem. Part
of the discussion should have told you that even getting a yes/no on
the presence of a createdate 'macro' without opening the document is
going to be next to impossible.

If you want to pay for software to be written for you, you might get a
more sympathetic listener for that somewhat peremptory demand.
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.
If you followed the discussion, you would have a good idea that the
answer is NO.
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.

You want file creation date? What is wrong with using Finder creatively?

If your real problem is one of protecting documents from having a macro
run on open that may potentially modify the files then make copies and
work on them with macro protection enabled.

If your real problem is knowing what the dates are inside the files,
then, working on copies, print all the files to PDF, wait for them to
index in Spotlight, then extract the date info using Spotlight (or
Perl) creatively. (Spotlight indexes only the first 100KB of Word docs)

If you want to write a bit of code, Spotlight libraries are worth a
look. There seems to be lots of search tricks not available via the
GUI.

If your real problem is that you suspect the dates are getting changed
regardless, you can confirm that by opening copies on successive days.

If none of that is palatable, try asking the Neo Office developers. I
don't think there is much in the way of macro support, or suport for
fields in there, but I have not been as motivated to look as you might
be.
 
O

om_chandan

Hi There,

Actually I am not changing the problem statement and even if this is
the case then let me put it again:

Problem statement:-

Is there is a way to check the presence of a macro in an office
document.
This is the macro if enabled, shows today's
date(if it was a date macro) in the footer of the document. Once I
could find a way to do this,I can execute it on a data share to
identify all such documents.
Once the mechanism is in place, then one can
execute it on a listing of all the files in the data share and get the
output.

This is the exact problem statement and if you could guide me to get an
answer then it will be really good.

Thanks
chandan
 
D

Daiya Mitchell

Under discussion on the thread " Re: how to find that date macro is enabled
before opening document." Please look for all answers and questions there.
 
J

John McGhie [MVP - Word and Word Macintosh]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top