简体   繁体   English

SSRS无法识别条形码表达式中的数据集

[英]SSRS not recognizing dataset in expression for barcode

Whenever I use this code 每当我使用此代码

=IIf(JPCI_RPT_ReceiptStatusHeaderBLW.RECEIPT_ID_TYPE = "Trailer ID",  
 Code.StringToBarcode({JPCI_RPT_ReceiptStatusHeaderBLW.trailer_id}), 
 Code.StringToBarcode({JPCI_RPT_ReceiptStatusHeaderBLW.receipt_id_type}) & chr(10) &
 Code.StringToBarcode({JPCI_RPT_ReceiptStatusDetailsBLW.item})

I get the following error... 我收到以下错误...

Name 'JPCI_RPT_ReceiptStatusHeaderBLW' is not declared. 未声明名称“ JPCI_RPT_ReceiptStatusHeaderBLW”。

It's checking for dataset right? 它正在检查数据集对吗? If not, how do I declare it? 如果没有,我该如何申报?

The expression is looking for a field name and you're converting something like Crystal Reports to SSRS. 该表达式正在寻找字段名称,您正在将诸如Crystal Reports之类的内容转换为SSRS。 In SSRS you refer to a field value with Fields!FieldName.Value. 在SSRS中,您使用Fields!FieldName.Value引用字段值。

Ass u me ing that you have a dataset with necessary fields, your expression would be something like: 屁股 ü 荷兰国际集团,你有必要的字段的数据集,你的表情会是这样:

=IIF(Fields!RECEIPT_ID_TYPE.Value = "Trailer ID",  
    Code.StringToBarcode(Fields!trailer_id.Value), 
    Code.StringToBarcode(Fields!receipt_id_type.Value) & chr(10) &
    Code.StringToBarcode(Fields!item.Value) )

You had missed a closing parenthesis as well, but the error check didn't get that far. 您也错过了右圆括号,但是错误检查并没有解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM