Bakary Djiba
Posts: 6
Joined: 2009-06-22
|
Hi,
I am using Add-in Express 2009 and I want to get the application supported extensions like FileDialog Filters. I don't want to do it manually by given extensions follow the version of Office (2003 or 2007).
For exemple:
if(IsWord){
if(WordApp.version == version){
filter.add("Word 2003", "*.doc", missing);
}
.....
}
else if(IsExcel){
}
...
And my second problem is that I can't do WordApp.get_FileDialog(..). Why?
Is there a way to do it.
Regards, |
|
Andrei Smolin
Add-in Express team
Posts: 18791
Joined: 2006-05-11
|
Hello Bakary,
I want to get the application supported extensions
Try getting the Extensions property for each FileConverter in the FileConverters collection. Is this what you are looking for?
I can't do WordApp.get_FileDialog(..).
This property was introduced in Office 2002. You can't see it because you use version-neutral interops. In Word 2002-2007 (see the HostVersion property of your add-in module), you can call get_FileDialog via late binding (see System.Type.InvokeMember).
Andrei Smolin
Add-in Express Team Leader |
|