C# 选择Crystal报表公式中的case语句
我使用crystal report中的以下公式字段转到特定URL。但是,当我单击该字段时,它总是转到代码的默认语句 从这里开始C# 选择Crystal报表公式中的case语句,c#,asp.net,crystal-reports,C#,Asp.net,Crystal Reports,我使用crystal report中的以下公式字段转到特定URL。但是,当我单击该字段时,它总是转到代码的默认语句 从这里开始 select {USP_GetSpecificAccountLedger.InvoiceNo} case totext({USP_GetSpecificAccountLedger.JVID}): "http:"+"//"+"localhost:60470/AdminPages/AccountPayable.aspx" case totext({USP_GetSpecif
select {USP_GetSpecificAccountLedger.InvoiceNo}
case totext({USP_GetSpecificAccountLedger.JVID}):
"http:"+"//"+"localhost:60470/AdminPages/AccountPayable.aspx"
case totext({USP_GetSpecificAccountLedger.ACCOUNTID}):
"http:"+"//"+"localhost:60470/AdminPages/ViewManualJournal.aspx?id="+ToText({USP_GetSpecificAccountLedger.JVID})
Default :
"http://localhost:60470/AdminPages/Vendor.aspx";
需要一点帮助(在这种情况下,您不应该在公式字段中写入,而是需要转到 格式字段-->超链接选项卡-->单选按钮
Internet上的网站
在X-2
中,您需要单击并在那里编写公式
我猜你的代码在基本语法中
,所以选择它并粘贴此代码
select {USP_GetSpecificAccountLedger.InvoiceNo}
case totext({USP_GetSpecificAccountLedger.JVID}):
"http:"+"//"+"localhost:60470/AdminPages/AccountPayable.aspx"
case totext({USP_GetSpecificAccountLedger.ACCOUNTID}):
"http:"+"//"+"localhost:60470/AdminPages/ViewManualJournal.aspx?id="+ToText({USP_GetSpecificAccountLedger.JVID})
Default :
"http://localhost:60470/AdminPages/Vendor.aspx";
我没有检查代码的语法,您需要在使用前检查。您正在尝试超链接功能吗?是的,我正在尝试。功能上我已经做了这件事。但是没有得到任何准确的结果。我需要的是…:(你错过了什么?超链接没有打开吗?是的,第一个案例和第二个案例没有打开