Word.Application        app = new ApplicationClass();
Word.DocumentClass doc = null;
//打开文件
object unknow = Type.Missing;
app.Visible = true;      
doc = app.Documents.Open(ref fileName,
                         ref unknow, ref unknow, ref unknow, ref unknow,
                         ref unknow, ref unknow, ref unknow, ref unknow,
                         ref unknow, ref unknow, ref unknow, ref unknow,
                         ref unknow, ref unknow, ref unknow);
//SaveAs方法应该怎么来调用呢?
doc.SaveAs(...);
请高手赐教哈~~~

解决方案 »

  1.   

     app.Visible = False
            doc .XMLSaveDataOnly = True
            doc .XMLSaveDataOnly = False
            doc .XMLUseXSLTWhenSaving = False
            doc .XMLSaveThroughXSLT = ""
            doc .XMLHideNamespaces = False
            doc .XMLShowAdvancedErrors = False
            doc .XMLSchemaReferences.HideValidationErrors = False
            doc .XMLSchemaReferences.AutomaticValidation = True
            doc .XMLSchemaReferences.IgnoreMixedContent = False
            doc .XMLSchemaReferences.AllowSaveAsXMLWithoutValidation = True
            doc .XMLSchemaReferences.ShowPlaceholderText = False        doc .SaveAs(""  & "temp520.XML", 11, False, "", True, "", False, False, False, False, False)
            dot = Nothing
            app.Quit()
            app = Nothing
      

  2.   

    ddddddd[/[del]del]dddddddddddd