In Word, a lot of that kind of information is kept in the document
template file, which is just a regular doc file with a dot extension kept in
the template directory. Basically these are all the default format settings
as first provided by Microsoft and then as changed by the user. As for more
specific document info, like temporary changes made on a per document basis,
Microsoft has its own formatting language much like rtf, some of which can
be seen if you open a doc file up in a plain text editor. As for the rest,
if not in a hidden file as I've never really checked, I assume they have a
way of storing it within the document itself in a format ignored by most
other applications, because if you open one up in say the Jedi programmer's
editor, you'll see an awful lot of additional data after the actual text.
This includes even the version of Word the document was created in. Do a
search as I'm sure someone must have decoded it by now!
from Robert Meek dba Tangentals Design CCopyright 2006
Proud to be a moderator of "The Delphi Lists" at elists.org
"When I examine myself and my methods of thought, I come to the conclusion
that the gift of Fantasy has meant more to me then my talent for absorbing
positive knowledge!"
Albert Einstein
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Alan Colburn
Sent: Monday, July 10, 2006 5:47 PM
To: [email protected]
Subject: Storing Document/File Settings
Hi folks --
Many applications store settings that are specific to an opened document or
file. For example, every file you open in MS Word has associated with it a
user specified document template file. Applications often keep track of
things like document-specific default settings and info about the user's
display. Hopefully, you understand what I'm referring to but, for the sake
of clarity, let me specify that I'm *not* talking about *application*
specific information, like an MRU list that might appear on a File menu, or
window size and position settings.
I'm curious what the general strategy is for storing this kind of
information. I assume that it is somehow "hidden" within the saved document
file. Are the first few lines of a file reserved for this kind of
information? That's how I've been doing it, but I wondered whether better
alternatives might exist.
Thanks, as always -- Al
p.s. As you predicted, with the combination of your help and a little time
spent playing around on my own I have gotten the hand of DB aware controls
and their use for record addition, editing, etc. My thanks again to those of
you who reponded a couple weeks ago. :)
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi