Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Properties of a Word Doc

Status
Not open for further replies.

MadJock

Programmer
Joined
May 25, 2001
Messages
318
Location
GB
Folks,

I have an Access sytem that produces MS Word documents. It does this by opening a template, inserting values into the pre-defined custom properties and then saving the document.

In some cases the information going into a custom property is from a memo field and doesn't have a (sensible) maximum length.

I have noticed that the custom properties of Word can only hold a certain length of string, but the length seems to vary each time.

Has anyone else encountered this and know the answers?

Thanks,

Graeme

PS: By custom properties, I mean the variables you can create / set through 'File -> Properties -> Custom' in MS Word

PPS: Above question applies to Office 97

website:
 
I've ran into the same problem. Did you ever find a solution? I realize this was posted a long while ago. Thanks
 
Tod99,

Never did mate.

Rather than using custom properties, I no have a solution which parses the text within a Word template looking for tokens to replace. Example paragraph from Word doc:

Dear <<Customer Name>>,

Thankyou for you letter of <<Customer EnquiryDate>>

Hope this is of some use!

Graeme

"Just beacuse you're paranoid, don't mean they're not after you
 
Why are you using custom properties? Why not use Form Fields, or ActiveX controls to hold the strings? Using custom properites seems clunky to me. Could you tell me why you are using them? Oh....I take it your are NOT using them anymore?

Gerry
 
The same thing could be accomplished using bookmarks to select a range and then insert the desired text within the range.

That should be slightly cleaner parsing out text in a document to replace.
 
fumei,

In my case, I originally asked the question when fixing a bug in a pre-existing application (the bug being not all contents were displayed!).

In the end, this is why I gave up on the custom controls and replaced that element completely! Not too sure of the original thought behind it.

"Just beacuse you're paranoid, don't mean they're not after you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top