In the SaveAs method of the document object it is just variant and an enum of type wdsaveformat
is not present in any of the files created from the typelib.
How can I specify the format parameter for the saveas method of the document object?
Re: How to specify the SaveAs Format parameter WORD Automation
Originally Posted by PRMARJORAM
... In the SaveAs method of the document object it is just variant and an enum of type wdsaveformat
is not present in any of the files created from the typelib.
Re: How to specify the SaveAs Format parameter WORD Automation
Originally Posted by VictorN
Uhmm... and how about WdSaveFormat enumeration?
Yes thats what I mean.
In fact I found a workaround.
When the files are created from the typelib another header file is also created with an extension.tlh so I got msword.tlh
This contains all the enums etc referenced.
But, if I include this file directly, get lots of compilations errors. I not need to though as within this file you can find the enumeration values you need: e.g;
Bookmarks