Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2005

Tip: Looking for answers? Try searching our database.

Possible to Store some hidden binary data in Word Document????????????

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ahmad - 14 Apr 2005 14:58 GMT
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
Word Heretic - 15 Apr 2005 03:02 GMT
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!
>
[quoted text clipped - 10 lines]
>
>Ahmad
Ahmad - 15 Apr 2005 06:42 GMT
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
Ahmad - 15 Apr 2005 12:27 GMT
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
Word Heretic - 18 Apr 2005 02:47 GMT
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
[quoted text clipped - 6 lines]
>
>Ahmad Jalil Qarshi
Howard Kaikow - 15 Apr 2005 18:58 GMT
> Thanks Steve!
>
[quoted text clipped - 5 lines]
> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.