DocProperty Size Discrepancy in Word 2000

November 20, 2006 at 8:03 pm 4 comments

Got to have some fun with Word 2000 today.  Yup, Word 2000.  Microsoft stopped mainstream support of Office 2000 in June of 2004.  However, their extended maintenance covers it until July of 2009, so we try our best to accomodate it with our customers.

Anyway, this particular frustration came from the number of characters permitted in a custom DocProperty.  Microsoft’s resources describe a limit of 255 characters.  Sure enough if you work through DSOFile.dll or if you manually enter in a DocProperty under File->Properties; Custom, it truncates off at 255.

No Biggie.  A limitation is a limitation.  We did what we needed to do to work around that 255 character restriction and we tested in Word 2003 and everything worked like a champ.  Well guess what.  Word 2000 also supports 255 characters being saved in a DocProperty.  BUT— when you insert that field somewhere in your Word 2000 (SP2 or SP3) document via Insert->Field, it only displays 254 characters!

You look under File->Properties; Custom and see all your data accounted for, but inside the content of the document, it is one character short.

I suppose I shouldn’t be too upset.  In Office 2000 SR-1, there was a bug where a DocProperty field inserted in the Word 2000 document only displayed 127 characters.  So I should feel blessed that I have an extra 127 characters to work with.

But…….I don’t feel blessed.

I just feel annoyed. 

Entry filed under: DSOFile.DLL, Word 2000.

Wake Forest and Satellite Navigation Christmas Cards as a Corrective Action

4 Comments Add your own

  • 1. Clint  |  November 21, 2006 at 11:07 am

    It sounds to me like the 255th / 128th character is simply a string terminator.

    In a sense, all strings are 1 character longer than they seem, because all strings are terminated with .

    Could that be it?

    Reply
  • 2. Clint  |  November 21, 2006 at 11:07 am

    (a hex editor should reveal)

    Reply
  • 3. suryakiran  |  March 26, 2007 at 6:57 am

    How to set or read properties of “non office” files through DSOFile , what can i change in DSOfile to make it work with non office files

    Reply
  • 4. Derek  |  June 9, 2009 at 8:09 am

    This came in handy for implementing a fix into 4.1 SP1 (coming soon to a Qualtrax near you.)

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Flickr Photos

3D Printed Products

Tweets


%d bloggers like this: