在VS上运行时,所有报告都可以正常工作,但是当我在发布后尝试时,我收到了此错误。这个错误只出现在4个报告中的一个(其他工作正常),其中让我更加困惑
我已将所有输入转换为字符串
输入行是
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();