在Client browser 執行時,
在Server Open 一個Word file,
但不能執行worddoc.PrintOut() 的動作,出現以下錯誤
在Server 執行是沒有問題的,
是否使用了.net framework 1.1 問題?
有甚麼方法可以解決?
Word cannot print. There is no printer installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Word cannot print. There is no printer installed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x800a1414): Word cannot print. There is no printer installed.]
Word._Application.PrintOut(Object& Background, Object& Append, Object& Range, Object& OutputFileName, Object& From, Object& To, Object& Item, Object& Copies, Object& Pages, Object& PageType, Object& PrintToFile, Object& Collate, Object& FileName, Object& ActivePrinterMacGX, Object& ManualDuplexPrint, Object& PrintZoomColumn, Object& PrintZoomRow, Object& PrintZoomPaperWidth, Object& PrintZoomPaperHeight) +0
CRCAWeb.AllMerge.MergeAllWord(utilInsList myDR) +1957
CRCAWeb.BeginRun.OneStopMain(Int32 ATR, String ATS, String TIPO) +157
Web1.WebForm6.OneStopPDF(String atr, String ats, String tipo) +122
Web1.WebForm6.btnRun_Click(Object sender, EventArgs e) +79
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
http://www.microsoft.com/china/msdn/library/dnexcl2k2/html/odc_offcs.asp