报告查看器不仅适用于服务器上的特定报告

时间:2016-12-16 10:26:27

标签: c# reportviewerformvc

在VS上运行时,所有报告都可以正常工作,但是当我在发布后尝试时,我收到了此错误。这个错误只出现在4个报告中的一个(其他工作正常),其中让我更加困惑

error

我已将所有输入转换为字符串

输入行是

row.companyName = company.name;  
row.companyType = company.companyTypeName;  
row.companyFields = company.BusinessFields;  
row.companyAddress = company.companyAddress;  
row.companyDetail =company.CompanyDetail;  
row.productGroup= product.ProductGroupName;  
row.productType= product.ProductTypeName;  
row.productCode= product.ProductCode;  
row.orderPrice = Math.Round(order.TotalValue).ToString("#,0.00");  
row.orderPriceWord =     OrderManager.NumberToWords(Convert.ToInt64(Math.Round(order.TotalValue)));  
row.fee= order.feeRate.ToString();  
row.feeWord= OrderManager.NumberToWords(Convert.ToInt64(Math.Round(order.feeRate)));  
row.age= order.itemAge.ToString();  
row.ageWord= OrderManager.NumberToWords(order.itemAge);  
row.feeAmount= Math.Round(order.feeAmount).ToString("#,0.00");  
row.feeAmountWord= OrderManager.NumberToWords(Convert.ToInt64(Math.Round(order.feeAmount)));  
row.customerName= aspnet.FullName;  
row.customerAddress= customer.Address;  
row.reportDate= DateTime.Now.ToString("dd MMMM yyyy");  
row.dueDate= order.dueDate.ToString("dd MMMM yyyy");  
row.yearNow= DateTime.Now.Year.ToString();  

0 个答案:

没有答案