当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 生成线程为 system.threading.tread td=new system.threading.thread(new system.threading.threadstart(show)); ......
    摘要: iis需要在哪配置,极菜的一个问题? 我没有办法创建一个web application的方案。 谢谢! ......


ASP.net 中使用Word問題

 
  在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  
   
     
 

NO.1   作者: asam2183

http://www.microsoft.com/china/msdn/library/dnexcl2k2/html/odc_offcs.asp


    摘要: 请杭州的朋友帮忙告诉一下 偶目前在上海,精通oracle,unix 偶mm明年毕业,想到那边找个学校当老师 所以偶也想过去 谢谢! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE