未经处理的异常: System.Runtime.InteropServices.COMException: 数值超出范围

a610120310 2015-09-29 04:54:39

未经处理的异常: 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);
...全文
279 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
a610120310 2015-09-29
  • 打赏
  • 举报
回复
没用加过了.
exception92 2015-09-29
  • 打赏
  • 举报
回复
数值超出范围 ->加个断点 调试看看先

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧