M
Mike Surface
Has anyone figured this out yet?
I've seen a post that says you need to use InvokeByName method of
Object Wrapper like so...
....
BindingFlags flags = BindingFlags.GetProperty |
BindingFlags.DeclaredOnly
| BindingFlags.Public | BindingFlags.Instance;
ObjectWrapper commandBars =
(ObjectWrapper)thisApplication.ActiveWindow.CommandBars;
int commandBarsCount = (int)commandBars.InvokeByName(
"Count", // prop
flags,
null, // arguments
null); // Culture
thisXDocument.UI.Alert("Got " + commandBarsCount.ToString() + "
commandBars");
....
Silviu
But I can't figure out how to access the "Print Preview" command bar.
Please help
ps thisApplication.ActiveWindow.CommandBars("standard").Controls("Print
Preview").Execute() does not work in c#
I've seen a post that says you need to use InvokeByName method of
Object Wrapper like so...
....
BindingFlags flags = BindingFlags.GetProperty |
BindingFlags.DeclaredOnly
| BindingFlags.Public | BindingFlags.Instance;
ObjectWrapper commandBars =
(ObjectWrapper)thisApplication.ActiveWindow.CommandBars;
int commandBarsCount = (int)commandBars.InvokeByName(
"Count", // prop
flags,
null, // arguments
null); // Culture
thisXDocument.UI.Alert("Got " + commandBarsCount.ToString() + "
commandBars");
....
Silviu
But I can't figure out how to access the "Print Preview" command bar.
Please help
ps thisApplication.ActiveWindow.CommandBars("standard").Controls("Print
Preview").Execute() does not work in c#