E
emcz
I just want to save the word file as a different file name, using the SaveAs
method
in Document, I am using C++.
_Document doc;
...
COleVariant saveasFile("myfile.doc");
COleVariant saveasFormat((short)wdFormatDocument);
...
doc.SaveAs(&saveasFile, &saveasFormat, ...);
I am not familiar what I should initialize for the rest of parameters, I
always get
some run time exception.
Does any one have sample code?
TIA
method
in Document, I am using C++.
_Document doc;
...
COleVariant saveasFile("myfile.doc");
COleVariant saveasFormat((short)wdFormatDocument);
...
doc.SaveAs(&saveasFile, &saveasFormat, ...);
I am not familiar what I should initialize for the rest of parameters, I
always get
some run time exception.
Does any one have sample code?
TIA