I have what appears to be an initialization problem when including graphs in a reporting scheme. I hope you understand this:
1. I have a dll that creates and populates a System.Windows.Forms.DataVisualization.Charting object
2. A SQL string is passed into this DLL as a part of the setup.
3. One of the setups, of course, will produce Y-axis labels based on the overall SQL results.
4. The first time I run my report with certain parameters set, the Y-axis labels are perfect.
5. If I then change my input parameters, the Y-axis labels are a repeat of the first run.
This shouldn't be since I create new instances of the charting object each time. Something, however, is left over from the first run.
I have attached a document for you to look at. There are screenshots of the run time results and I've also included the source code of my DLL and how it is setup.
Jerry Scannell
1. I have a dll that creates and populates a System.Windows.Forms.DataVisualization.Charting object
2. A SQL string is passed into this DLL as a part of the setup.
3. One of the setups, of course, will produce Y-axis labels based on the overall SQL results.
4. The first time I run my report with certain parameters set, the Y-axis labels are perfect.
5. If I then change my input parameters, the Y-axis labels are a repeat of the first run.
This shouldn't be since I create new instances of the charting object each time. Something, however, is left over from the first run.
I have attached a document for you to look at. There are screenshots of the run time results and I've also included the source code of my DLL and how it is setup.
Jerry Scannell