2014-11-07 3 views
1

크리스탈 리포트를 열었을 때 리포트를 pdf 파일로 저장하려고하면 파라미터 윈도우가 팝업되어 pdf 파일을 저장할 수 없으므로이 문제를 해결하는 방법을 알려주실 수 있습니까? 크리스탈 리포트를 pdf 파일로 저장하고 싶을 때 파라미터 윈도우를 다시 팝업하여 pdf를 저장할 수 없게합니다

내 코드입니다 :

개인 ReportDocument boReportDocument = NULL;

private void MyLoad(object sender, System.EventArgs e) 
    { 

      ConnectionInfo connectionInfo = new ConnectionInfo(); 
      boReportDocument = new ReportDocument(); 
      string rptFile = this.Page.Request.QueryString["Name"]; 
      this.Page.Title = this.Page.Request.QueryString["Name"].Replace(".rpt", ""); 
      boReportDocument.Load(Server.MapPath("~/Crystal/" + rptFile)); 
      CrystalReportViewer1.ReportSource = boReportDocument; 

      connectionInfo.DatabaseName = "XXXX"; 
      connectionInfo.UserID = "XXXX"; 
      connectionInfo.Password = "XXXX"; 
      connectionInfo.ServerName = "XXXX"; 

      TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo; 
      foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos) 
      { 
       tableLogOnInfo.ConnectionInfo = connectionInfo; 

      } 


    } 


    public ReportsView() 
    { 
     this.Initialize(); 
     this.Load += new EventHandler(MyLoad); 

    } 

내가 크리스탈 리포트 버전 13.0.2000 SP5를 사용, 비주얼 스튜디오 .. 2010

감사

Userstation

답변

0

직접 내보낼 수 있습니다를 같은 문제를 (내가 전에 SP12 설치). pdres를 사용하여 httpresponse로 내보내기. 대신

CrystalReportViewer1.ReportSource = boReportDocument; 

boReportDocument.ExportToHttpResponse(
    CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, 
    Response, False, "REPORTNAME") 
시도
관련 문제