我需要过滤具有< = 1000值并跳过它们添加到excel范围。到目前为止:
If worksheet.Cells(String.Concat(endColumn, startIndex.ToString(), ":", endColumn, endIndex.ToString())).Value.ToString() > Double.TryParse(1000) Then // error here
r1 = worksheet.Cells(String.Concat(startColumn, startIndex.ToString(), ":", startColumn, endIndex.ToString()))
r2 = worksheet.Cells(String.Concat(endColumn, startIndex.ToString(), ":", endColumn, endIndex.ToString()))
consumableChart.Series.Add(r2, r1)
End If
我遇到了转换错误。如何解决这个问题?