A
Alex K. Angelopoulos [MVP]
I'm working on a generalized document converter which hypothetically should
be usable from Office 97 through 2003. Emphasis on "hypothetically".
I set Word to automatically open documents fed to it by using
It generally seems to work OK for opening files which have internal
filters - meaning the ones I can see in the wdOpenFormat enumeration - but
when I try to open something like an Excel spreadsheet after setting Word's
Options.DefaultOpenFormat to wdOpenFormatAllWord, it makes a hash of it.
When I try to explicitly set the open type to the numeric OpenFormat for the
Excel FileConverter (which is 9 on my system) Word throws an "out of range"
error. It looks like it can't handle anything that isn't explicitly in the
wdOpenFormat enum as DefaultOpenFormat.
Do I have to explicitly set this as an argument to Documents.Open? Or is
there another way around that?
be usable from Office 97 through 2003. Emphasis on "hypothetically".
I set Word to automatically open documents fed to it by using
It generally seems to work OK for opening files which have internal
filters - meaning the ones I can see in the wdOpenFormat enumeration - but
when I try to open something like an Excel spreadsheet after setting Word's
Options.DefaultOpenFormat to wdOpenFormatAllWord, it makes a hash of it.
When I try to explicitly set the open type to the numeric OpenFormat for the
Excel FileConverter (which is 9 on my system) Word throws an "out of range"
error. It looks like it can't handle anything that isn't explicitly in the
wdOpenFormat enum as DefaultOpenFormat.
Do I have to explicitly set this as an argument to Documents.Open? Or is
there another way around that?