MS Word tabel Autoformat dialog

R

RNG

I’m trying to show the Microsoft Word’s Table Autoformat dialog and getting
it auto-select a custom style defined by the user.

The problem I’m running into is that the dialog I’m getting thru automation
is different than the dialog Word shows when going thru the menu Table \
Autoformat.

The dialog I’m getting has fewer options and only shows the Word built-in
table styles. However in the dialog obtained by clicking on the Table menu
there’s a “Category†dropdown which allows for showing “User-defined tale
stylesâ€.

This is the code I’m using to show the dialog:

Word.Dialog dialog =
this.Application.Dialogs[Word.WdWordDialog.wdDialogTableAutoFormat];

dialog.Show(ref missing);

Why the two dialogs are different? And how can I get the richer dialog to
show up thru automation.

Thanks in advance,
Ram
 
W

Wei-Dong XU [MSFT]

Hi,

Currently I am finding one suppport professional for you on this issue.
When any update, we will reply here at the first time.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance.
 
P

Peter Huang [MSFT]

Hi

I think that is UI customized dialog, which is not the buildin Word Dialog.
If you run the AutoFormat Dialog Table macro, you will find that the code
want your selection to be a Table content, or the code will not run.
But the Dialg shown from the Menu did not have the requirement, because it
is a special UI customized dialog which is for UI only to create a table in
a friendly way.

But I think we still can use the macro to create a full styles table,
macro(code) is mainly used to create table automatically so it may not be
accord with the UI approach one by one.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/ht
ml/TableStyles.asp


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
R

RNG

Peter:

Thanks for your response. As per you first paragraph, yes, you’re right
when using the AutoFormat Dialog Table macro a table needs to be selected.
The dialog from the Menu doesn’t have that requirement.

I read the article from the link you sent me, but my goal here is not to
create or apply the style myself. What the user wants is to get the richer
Autoformat dialog pop-up and auto-populated with certain custom style he had
previously created.

So, my only concern is to programmatically invoke the richer Autoformat
dialog (which includes the user custom styles while the macro dialog is
limited to 43 styles). Would this be possible or not at all?

Thanks a lot for your help and your time,
Ram
 
P

Peter Huang [MSFT]

Hi,

Currently I am trying to further research the issue and we will reply here
with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Peter Huang [MSFT]

Hi

I have confirmed with Office experts, word's OM did not expose such
interface for us to use show the Table AutoFormat dialog in the menu.

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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