hi!

is it possible to store some binary data into the Word document using
VBA or C++. Actually i have to store some binary data read from some
files into the word document through my Word Plugin. This binary data
will be hidden from the user. Other people will not be able to access
it. only my Addin will access it. This binary data may be placed once,
twice, or more inside the Word document.

Anybody have idea about it.

Thanks.

Ahmad

Re: Possible to Store some hidden binary data in Word Document???????????? by Word

Word
Thu Apr 14 21:02:55 CDT 2005

G'day "Ahmad" <Ahmad.Jalil.Qarshi@gmail.com>,

Usually custom document properties or document variables are used.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Ahmad reckoned:

>hi!
>
>is it possible to store some binary data into the Word document using
>VBA or C++. Actually i have to store some binary data read from some
>files into the word document through my Word Plugin. This binary data
>will be hidden from the user. Other people will not be able to access
>it. only my Addin will access it. This binary data may be placed once,
>twice, or more inside the Word document.
>
>Anybody have idea about it.
>
>Thanks.
>
>Ahmad


Re: Possible to Store some hidden binary data in Word Document???????????? by Ahmad

Ahmad
Fri Apr 15 00:42:35 CDT 2005

Thanks Steve!

I know about document variables. i have used them before. but the
problem is that a programmer can get count of document variables and
can iterate through the variables using index number and can see data
inside and can also delete it. Any idea to restrict the hacker from
doing that.
By the way i don't have idea about custom document properties. can you
plz further explain about custom document properties.

Thanks again.

Ahmad


Re: Possible to Store some hidden binary data in Word Document???????????? by Ahmad

Ahmad
Fri Apr 15 06:27:20 CDT 2005

I have tested Document Variable. but unfortunately it stores on few
KBs. i stored 124KB or data it worked fine. but when i tried to store
254KB of data into the document variable. it generated an exception
that "String value too long". Is there any restriciton in the data
length of document variable. and further more is there any restriction
in the number of Variables per document?

Thanks in advance.

Ahmad Jalil Qarshi


Re: Possible to Store some hidden binary data in Word Document???????????? by Howard

Howard
Fri Apr 15 12:58:36 CDT 2005

"Ahmad" <Ahmad.Jalil.Qarshi@gmail.com> wrote in message
news:1113543755.011358.77500@l41g2000cwc.googlegroups.com...
> Thanks Steve!
>
> I know about document variables. i have used them before. but the
> problem is that a programmer can get count of document variables and
> can iterate through the variables using index number and can see data
> inside and can also delete it. Any idea to restrict the hacker from
> doing that.
> By the way i don't have idea about custom document properties. can you
> plz further explain about custom document properties.
>

Anything you can put in a document, a VBA programmer can find.



Re: Possible to Store some hidden binary data in Word Document???????????? by Word

Word
Sun Apr 17 20:49:42 CDT 2005

G'day "Ahmad" <Ahmad.Jalil.Qarshi@gmail.com>,

Variables are exactly that, variables restricted by the definition of
the datatype. Eg strings of 255. Generally speaking, you can save long
ranges of data as autotext, or you have to work on concat strings

Eg


while variable of name DocVarStem & k exists
concat it into some temp range
inc k
wend


You may also need Steganography - the practice of hiding stuff in
plain sight to fool the 'hackers' for as long as possible. It is off
topic for these newsgroups. I have commercially viable solutions for
achieving it, but they are extremely expensive.


Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Ahmad reckoned:

>I have tested Document Variable. but unfortunately it stores on few
>KBs. i stored 124KB or data it worked fine. but when i tried to store
>254KB of data into the document variable. it generated an exception
>that "String value too long". Is there any restriciton in the data
>length of document variable. and further more is there any restriction
>in the number of Variables per document?
>
>Thanks in advance.
>
>Ahmad Jalil Qarshi