G
Guest
I am trying to save a document (automatically) to an XML document.
I am using the following code:
wrdApp.ActiveDocument.SaveAs(ref oOutFileName, ref oFormat, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,ref oMissing,ref
oMissing,ref oMissing,ref oMissing,ref oMissing);
The intellisense tells me that the 2nd parameter (where I have oFormat) is
for the format of the document. However, I have not been able to find what
the format of this should be. I have tried
object oFormat = "XML";
object oFormat = "2";
object oFormat = "XML Document";
etc.
Does anyone know the correct syntax for my oFormat variable?
I am using the following code:
wrdApp.ActiveDocument.SaveAs(ref oOutFileName, ref oFormat, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,ref oMissing,ref
oMissing,ref oMissing,ref oMissing,ref oMissing);
The intellisense tells me that the 2nd parameter (where I have oFormat) is
for the format of the document. However, I have not been able to find what
the format of this should be. I have tried
object oFormat = "XML";
object oFormat = "2";
object oFormat = "XML Document";
etc.
Does anyone know the correct syntax for my oFormat variable?