CustomDocumentProperties

D

dotnet-force

Hi all,

I wrote an Addin for MS Project 2002 in C#
I've to store many information in each project (strings), so I found the
CustomDocumentProperties to store them. But it seems the string
properties are limited to 256 char.
So do you know if there is an other way to store information in a project
without this limitation ? (I know it exists something in Word :
Word.Document.Variables
but it doesn't exist in MS Project).

Thanks for the help.
Pascal Lenormand
 
C

Chris Jensen [MSFT]

Hello Pascal,

If you need to store information about project in text form which exceeds
255 characters, and you are not able to use several fields in the custom
document properties, please consider the Document Properties "Comments"
field. It isn't limited to 255 characters.

Another way to add documentation to the project is to insert a Word
document containing as much text as you need in order to document what
special information needs to be available to the project viewer. You can
insert several different brief documents, each at the appropriate spot for
the commenting text contents.

Chris Jensen (Microsoft)
 
D

dotnet-force

Hello Chris,

Thank you for the advice, but ...
With these two solutions, the information are accesible for the user
and he can change them.
I need to add information in my project (XML format) and the user cannot
access / modify them without using the window added by my addin.
It's why I need to store more than 255 characters and that I don't want
these information to be available from the UI.

Thank you for your help.
Pascal Lenormand (ILOG)
 
C

Cindy M -WordMVP-

With these two solutions, the information are accesible for the user
and he can change them.
Well, originally you were talking about CustomDocumentProperties.
These are also accessible to the user, so I don't think that would
have been any better, 255-character limit not withstanding.

How about password-protecting a Word document so that it can't be
opened without the password? That's not 100% secure, but secure enough
so that a "casual user" won't be able to just look at the content.
Someone would have to make a concentrated effort to break in.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
D

dotnet-force

Thanks for the help.
Well, originally you were talking about CustomDocumentProperties.
These are also accessible to the user, so I don't think that would
have been any better, 255-character limit not withstanding.

Agree with that. But if I named my properties
'MyPropThatYouDontHaveToChange' could be suffisant. The security is not
the main problem.
How about password-protecting a Word document so that it can't be
opened without the password? That's not 100% secure, but secure enough
so that a "casual user" won't be able to just look at the content.
Someone would have to make a concentrated effort to break in.

For me, using a word document to store some XML informations is a little
bit heavy.


I just want to store some XML in my documents with no length limitation and
with a specific identifier that I can retrive easily my info.
It's the reason why I first choose the CustomDocumentProperties, but
there is the length limitation.
The 'Comments' field in the project information is not a good solution
because the user would add his peronnal comments and I won't be able to
retrive my information.

Pascal Lenormand (ILOG)
 
C

Cindy M -WordMVP-

I just want to store some XML in my documents with no length limitation and
with a specific identifier that I can retrive easily my info.
It's the reason why I first choose the CustomDocumentProperties, but
there is the length limitation.
The 'Comments' field in the project information is not a good solution
because the user would add his peronnal comments and I won't be able to
retrive my information.
Understood :) Unfortunately, I don't know of anything in Project that would
give you this... I don't suppose you could use a separate XML file and put
the file name in a document property?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
D

dotnet-force

Cindy said:
Understood :) Unfortunately, I don't know of anything in Project that would
give you this... I don't suppose you could use a separate XML file and put
the file name in a document property?

Thank you.
The solution you proposed is the one I'm using right now. But it's
not a good solution for me because the MS Project document is not
standalone.

Thanks for the ideas.

Pascal Lenormand (ILOG)
 
C

Chris Jensen [MSFT]

Hello Pascal,

Cindy Meister may have another idea or two, but when she says

" Understood :) Unfortunately, I don't know of anything in Project that
would
give you this..." you have heard it from the expert.

You may be unable to get what you want with the current version of Project.
Please let the Product Manager know what you need by sending an e-mail
message to (e-mail address removed). That person is very sensitive to what will
make the next version of Project meet customer requirements. In your
message please let the Product Manager know what you have tried and why you
need something additional. Thanks

Chris Jensen (Microsoft)
 
D

dotnet-force

Thank you.
I will send a mail with the description of my problem and
the solution I tried with no success.

Pascal Lenormand (ILOG)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top