Re: Storing large amounts of (hidden) data within a single word document? by Jezebel
Jezebel
Fri Aug 27 19:29:41 CDT 2004
Failed how? this seems to work OK for me ...
? replace("\\yyyy", "\\", "\")
"Word Heretic" <myfullname@tpg.com.au> wrote in message
news:ltjvi0loko3imk1sokpck564dj1sv4fh89@4ax.com...
> G'day Peter Hewett <nospam@xtra.co.nz>,
>
> I found a tiny bug in Replace() the other day, had a double slashed
> filename and triedf to replace "\\" with "\". Failed miserably.
>
> Steve Hudson - Word Heretic
> Want a hyperlinked index? S/W R&D? See WordHeretic.com
>
> steve from wordheretic.com (Email replies require payment)
>
>
> Peter Hewett reckoned:
>
> >Hi Word Heretic
> >
> >It came in Office 2000 along with Spliff and Joint!
> >
> >Cheers - Peter
> >
> >
> >Word Heretic <myfullname@tpg.com.au>, said:
> >
> >>G'day "Jezebel" <dwarves@heaven.com.kr>,
> >>
> >>The one that threw me was Replace() ... when the hell did that come
> >>in? That is one damn useful routine. Mind you, when it came in I
> >>deleted like 6 lines of code that did the same thing, but STILL!!!
> >>
> >>
> >>Steve Hudson - Word Heretic
> >>Want a hyperlinked index? S/W R&D? See WordHeretic.com
> >>
> >>steve from wordheretic.com (Email replies require payment)
> >>
> >>
> >>Jezebel reckoned:
> >>
> >>>That's a bugger.
> >>>
> >>>
> >>>"Peter Hewett" <nospam@xtra.co.nz> wrote in message
> >>>news:dg8ti0tmolv017qg1bpu38opmbvit11gps@4ax.com...
> >>>> Hi Jezebel
> >>>>
> >>>> Join and split are not available in Word 97 :(
> >>>>
> >>>> I believe they were introduced with Office 2000.
> >>>>
> >>>> Cheers - Peter
> >>>>
> >>>>
> >>>> "Jezebel" <dwarves@heaven.com.kr>, said:
> >>>>
> >>>> >Maximum length of a DocVariable is 65280 characters. On my computer
I was
> >>>> >able to add 3955 variables each of that length, before I got an
error --
> >>>> >whether that's a Word limit or a function of my computer's memory, I
> >>>don't
> >>>> >know. However, if you have anything remotely like this quantity of
data,
> >>>why
> >>>> >not put it in a separate MDB file?
> >>>> >
> >>>> >A quick way to work with data packed into string variables is using
the
> >>>> >Join() and Split() functions.
> >>>> >
> >>>> >
> >>>> >
> >>>> >
> >>>> >"KR" <nospam@nospam.com> wrote in message
> >>>> >news:%23EJQBY6iEHA.3148@TK2MSFTNGP10.phx.gbl...
> >>>> >> I'll definitely look into document variables; an initial read of
the
> >>>VBA
> >>>> >> help file (on my work PC which has Word 2000) doesn't provide any
> >>>> >> information about limitations such as total number of variables,
> >>>maximum
> >>>> >> size of fields, etc... does anyone know where I could find that
> >>>> >information
> >>>> >> to help me decide whether this method can support my needs?
> >>>> >>
> >>>> >> Many thanks,
> >>>> >> Keith
> >>>> >>
> >>>> >> "Chad DeMeyer" <cjdemeye at bechtel dot com> wrote in message
> >>>> >> news:u#SDeB6iEHA.3008@TK2MSFTNGP10.phx.gbl...
> >>>> >> > KR,
> >>>> >> >
> >>>> >> > I'm not sure about the feasibility of XML for this since I have
no
> >>>> >> > experience so far with XML, but one alternative to document
> >>>properties
> >>>> >is
> >>>> >> > document variables. They can only be created and modified with
VBA,
> >>>and
> >>>> >> the
> >>>> >> > only way the users can even discover their values, apart from
using
> >>>VBA,
> >>>> >> > would be to insert DOCVARIABLE fields, and they would have to
know
> >>>the
> >>>> >> name
> >>>> >> > of the variable to insert the field.
> >>>> >> >
> >>>> >> > Regards,
> >>>> >> > Chad
> >>>> >> >
> >>>> >> >
> >>>> >> > "KR" <nospam@nospam.com> wrote in message
> >>>> >> > news:OgmeH15iEHA.3148@TK2MSFTNGP10.phx.gbl...
> >>>> >> > > Hi all- thanks in advance for your help; using Word97 on
Win98SE...
> >>>> >> > >
> >>>> >> > > I'm looking for the best way to store this large amounts of
> >>>> >information
> >>>> >> > > (essentially several manually-built flat file database tables)
in a
> >>>> >word
> >>>> >> > > document without it being accessable to the user; I remember
> >>>reading
> >>>> >> (but
> >>>> >> > > can't find) a post talking about this subject, and I think
Custom
> >>>> >> > > DocProperties were the suggested solution... however, in my
tests,
> >>>the
> >>>> >> > > document properties (including custom ones) are available to
any
> >>>user
> >>>> >> via
> >>>> >> > > the document property interface, which is undesirable for me.
> >>>> >> > >
> >>>> >> > > Does anyone have other ideas on how to handle this? Can I
suppress
> >>>the
> >>>> >> > > custom docproperties information from showing in the user
> >>>interface?
> >>>> >> What
> >>>> >> > > about (noting: Word97/ Win98SE) saving the information in some
sort
> >>>of
> >>>> >> low
> >>>> >> > > level encryption to avoid the property 'value' from being
read,
> >>>even
> >>>> >if
> >>>> >> > the
> >>>> >> > > user looks at the property dialog? Essentially I need to store
data
> >>>> >> (away
> >>>> >> > > from user's eyes) without putting the data in the document or
in a
> >>>> >> > separate
> >>>> >> > > file.
> >>>> >> > >
> >>>> >> > > I am thinking that maybe I could do this by writing the data
in XML
> >>>> >> format
> >>>> >> > > (using whatever XML command is available for encryption?) and
that
> >>>> >might
> >>>> >> > > also make it easier to work with the data, but I haven't
messed
> >>>with
> >>>> >XML
> >>>> >> > > yet, so I'll wait to hear if that is possible/desirable in
Word97
> >>>> >before
> >>>> >> I
> >>>> >> > > start a whole new learning curve...
> >>>> >> > >
> >>>> >> > > Many thanks,
> >>>> >> > > Keith
> >>>> >> > >
> >>>> >> > > --
> >>>> >> > > The enclosed questions or comments are entirely mine and don't
> >>>> >represent
> >>>> >> > the
> >>>> >> > > thoughts, views, or policy of my employer. Any errors or
omissions
> >>>are
> >>>> >> my
> >>>> >> > > own.
> >>>> >> > >
> >>>> >> > >
> >>>> >> >
> >>>> >> >
> >>>> >>
> >>>&