I then tried to reproduce your results by starting a new project from scratch and following your instructions.
No matter what I tried, it keeps on crashing (null pointer) inside the ReportViewer.RefreshReport() code.
Clearly I must be missing the setting of something but have no idea what.
I can only surmise that your instructions on what to do left out a whole bunch, including how you set up your Form, especially with respect to the ReportViewer item.
Also, you did not explain why in your method 'private DataTable Data()' (line 21 of Form1.cs) you declare a new instance of DataTable and define its columns? Why not use the one you created with the designer.
So, I would have given you a 5++ if your article had allowed me to build what you published from scratch. I am not a guru on the MS DataTable and DataSet technology (although a seasoned veteran in .NET), and I assume others like me would have the same issues.
meeram39 24-Mar-15 15:23Seems to be a good approach. But I am not able to see the image attached. Because of that,steps are unclear. What is x indicates in case statements? | |
Sign in· View Thread |