report.Transfer_Report(); 找到以下code: (以前没接触过c#,这次要维护C#写的东西....) namespace Trade.report { using System; using System.ComponentModel; using CrystalDecisions.Shared; using CrystalDecisions.ReportSource; using CrystalDecisions.CrystalReports.Engine;
public class Transfer_Report : ReportClass {
public Transfer_Report() { }
public override string ResourceName { get { return "Transfer_Report.rpt"; } set { // Do nothing } }是不是Transfer_Report这个方法的 返回值改写成上面的绝对路径就OK? 以前是运行在WIN 2000 server 上的, 系统重装成XP后出现的问题.
Line 108:
Line 109: crReportDocument=new report.Transfer_Report();
Line 110: crReportDocument.Load("c:/Inetpub/wwwroot/Trade/report/" + "Pclist_Report" );//此处加载你预先设计好的报表模板Line 111: CrystalReportViewer1.ReportSource = crReportDocument;
Line 112: crReportDocument.SetDataSource(ds);
Source File: c:\inetpub\wwwroot\Trade\Mis\send_s_deal.aspx.cs Line: 110 还是出错. c:/Inetpub/wwwroot/Trade/report/Pclist_Report 文件存在. 请教!
crReportDocument.Load( "c:/Inetpub/wwwroot/Trade/report/ " + "Pclist_Report " );
改写成???
找到以下code: (以前没接触过c#,这次要维护C#写的东西....)
namespace Trade.report {
using System;
using System.ComponentModel;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportSource;
using CrystalDecisions.CrystalReports.Engine;
public class Transfer_Report : ReportClass {
public Transfer_Report() {
}
public override string ResourceName {
get {
return "Transfer_Report.rpt"; }
set {
// Do nothing
}
}是不是Transfer_Report这个方法的 返回值改写成上面的绝对路径就OK? 以前是运行在WIN 2000 server 上的, 系统重装成XP后出现的问题.