void crystaldecisions.pagerender.set_exceptionwindowtitle(system.string)

2020-08-27 09:30发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


ReportDocument rptDoc = new ReportDocument();

rptDoc.Load(strRptPath);

ConnectionInfo rptConnection =新的ConnectionInfo();

rptConnection.ServerName = strServerName;

rptConnection.DatabaseName = strDBName;

rptConnection.UserID = strUID;

rptConnection.Password = strPWD;

foreach(rptDoc.Subreports中的ReportDocument subRpt)

{

foreach(subRpt.Database.Tables中的表crTable)

{

crTable.LogOnInfo.ConnectionInfo.AllowCustomConnection = true;

TableLogOnInfo logInfo = crTable.LogOnInfo;

logInfo.ConnectionInfo = rptConnection; crTable.ApplyLogOnInfo(logInfo);

}

}

foreach(rptDoc.Database.Tables中的表crTable)

{

crTable.LogOnInfo.ConnectionInfo.AllowCustomConnection = true;

TableLogOnInfo loi = crTable.LogOnInfo;

loi.ConnectionInfo = rptConnection;

crTable.ApplyLogOnInfo(loi);

}

ParameterFields paramFields = new ParameterFields();

ParameterField paramField;

ParameterDiscreteValue paramValue;

int iloopParam;

if(((strArgs [6] .ToString()==" 0")||(strArgs [6] .ToString()==" 1"))

{

strCanExport = strArgs [6] .ToString(); iloopParam = 7;

}

其他

iloopParam = 6;

for(int loopParam = iloopParam; loopParam

{paramField = new ParameterField();

paramValue = new ParameterDiscreteValue();

paramField.Name = strArgs [loopParam];

paramValue.Value = strArgs [loopParam + 1];

paramField.CurrentValues.Add(paramValue);

paramFields.Add(paramField);

}//循环

crvSQL.ParameterFieldInfo = paramFields;

crvSQL.ReportSource = rptDoc;

------------------------------------------

此行的内容是" crvSQL.ReportSource = rptDoc;"。

错误:-当我在vs2017中打印Crystal报告时,找不到错误的方法'void crystaldecisions.pagerender.set_exceptionwindowtitle(system.string)

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


ReportDocument rptDoc = new ReportDocument();

rptDoc.Load(strRptPath);

ConnectionInfo rptConnection =新的ConnectionInfo();

rptConnection.ServerName = strServerName;

rptConnection.DatabaseName = strDBName;

rptConnection.UserID = strUID;

rptConnection.Password = strPWD;

foreach(rptDoc.Subreports中的ReportDocument subRpt)

{

foreach(subRpt.Database.Tables中的表crTable)

{

crTable.LogOnInfo.ConnectionInfo.AllowCustomConnection = true;

TableLogOnInfo logInfo = crTable.LogOnInfo;

logInfo.ConnectionInfo = rptConnection; crTable.ApplyLogOnInfo(logInfo);

}

}

foreach(rptDoc.Database.Tables中的表crTable)

{

crTable.LogOnInfo.ConnectionInfo.AllowCustomConnection = true;

TableLogOnInfo loi = crTable.LogOnInfo;

loi.ConnectionInfo = rptConnection;

crTable.ApplyLogOnInfo(loi);

}

ParameterFields paramFields = new ParameterFields();

ParameterField paramField;

ParameterDiscreteValue paramValue;

int iloopParam;

if(((strArgs [6] .ToString()==" 0")||(strArgs [6] .ToString()==" 1"))

{

strCanExport = strArgs [6] .ToString(); iloopParam = 7;

}

其他

iloopParam = 6;

for(int loopParam = iloopParam; loopParam

{paramField = new ParameterField();

paramValue = new ParameterDiscreteValue();

paramField.Name = strArgs [loopParam];

paramValue.Value = strArgs [loopParam + 1];

paramField.CurrentValues.Add(paramValue);

paramFields.Add(paramField);

}//循环

crvSQL.ParameterFieldInfo = paramFields;

crvSQL.ReportSource = rptDoc;

------------------------------------------

此行的内容是" crvSQL.ReportSource = rptDoc;"。

错误:-当我在vs2017中打印Crystal报告时,找不到错误的方法'void crystaldecisions.pagerender.set_exceptionwindowtitle(system.string)

付费偷看设置
发送
2条回答
Violet凡
1楼 · 2020-08-27 10:00.采纳回答

您似乎对查看器" crvSQL"具有自己的声明/重定向。

确保它正在加载新的13.0.4000.0版本。

me_for_i
2楼-- · 2020-08-27 09:57

哪个版本 您正在使用Visual Studio,以及哪个版本的Crystal for VS .NET SDK? 在VS中运行时会收到此错误,还是来自已部署的解决方案? 如果这是已部署的解决方案,那么您是如何部署Crystal for VS运行时的?

一周热门 更多>