How to adjust column width using VSTO

M

Mot Dab

It was simple to programmatically adjust column width in MS Project via VBA.

I am switching to VSTO, and cannot find a way. The closest is "ColumnEdit" method under the "Application" object, but it pops up the dialog box, which means someone has to manually put in the column width.

Can someone help ?


EggHeadCafe - Software Developer Portal of Choice
C# : Image operations performer
http://www.eggheadcafe.com/tutorial...421-73dc29ed3b21/c--image-operations-per.aspx
 
J

John

It was simple to programmatically adjust column width in MS Project via VBA.

I am switching to VSTO, and cannot find a way. The closest is "ColumnEdit"
method under the "Application" object, but it pops up the dialog box, which
means someone has to manually put in the column width.

Can someone help ?


EggHeadCafe - Software Developer Portal of Choice
C# : Image operations performer
http://www.eggheadcafe.com/tutorials/aspnet/bbace980-2554-48d7-9421-73dc29ed3b
21/c--image-operations-per.aspx

EggHeadCafe,
Why did you post three times? We got it the first time.

I don't know if this will help with Visual Studio but some Methods in
Project VBA need arguments to be supplied even though the default may be
the desired argument. The result is a undesired dialogue box. Try
providing all arguments for the ColumnEdit Method and see if that helps.

John
Project MVP
 

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