Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
Framework used : .Net Framework 4.5.2 Library used : Microsoft.ReportViewer.WinForms.dll(Version = 10.0.0.0)

My application is fetching the data from database and binding it to ReportDataSourceCollection. After that byte[] is returned from Render(). Finally the byte[] is written with fileStream.

Below Function is called public byte[] Render(string format, string deviceInfo, out string mimeType, out string encoding, out string fileNameExtension, out string[] streams, out Warning[] warnings);

Expected Result : PDF Report contains 1 column chart and table. Actual Result : Column chart is showing empty with some error on it as in attached image. & Table is getting populated with data.

Column Chart :

Y-axis : int values like 1375724,67802 etc. X-axis : string values like 939 - 1571,1572 - 2204 etc.

Can you tell me why the 3183938 and 2729807numbers are creating when rendering to PDF Report? Any workarounds for such case ?

What I have tried:

Investigation :

After my observations I found out that the values in Y-axis are creating problem in not rendering chart. Because by changing the values used for Y-axis chart is rendering.

The values that are creating problem are 3183938 and 2729807.

Error on Chart like "The added or subtracted value Results in an un-representable DateTime.
Parameter name: Months"
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900