在 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();