未经处理的异常: System.Runtime.InteropServices.COMException: 数值超出范围
未经处理的异常: System.Runtime.InteropServices.COMException: 数值超出范围
在 Microsoft.Office.Interop.Word.DocumentClass.SaveAs(Object& FileName, Objec
t& FileFormat, Object& LockComments, Object& Password, Object& AddToRecentFiles,
Object& WritePassword, Object& ReadOnlyRecommended, Object& EmbedTrueTypeFonts,
Object& SaveNativePictureFormat, Object& SaveFormsData, Object& SaveAsAOCELette
r, Object& Encoding, Object& InsertLineBreaks, Object& AllowSubstitutions, Objec
t& LineEnding, Object& AddBiDiMarks)
在 ConsoleApplication1.Program.Main(String[] args) 位置 C:\Users\Administrato
r\Desktop\ConsoleApplication1\ConsoleApplication1\Program.cs:行号 69
代码部分
wordDoc.SaveAs(ref path, ref format, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing);