This question is locked. New answers and comments are not allowed.
I'm using the demo version of the Chart for WinForms component with VS 2005 using Visual Basic. We're considering purchasing the ASP.NET and Winform component sets.
I have everything working in my test application with the exception of one small problem.
I use the following code to display a print preview of my chart:
I have everything working in my test application with the exception of one small problem.
I use the following code to display a print preview of my chart:
Me.SalesUnitChart.Printing.PrintDocument.DefaultPageSettings.Landscape = True
Me.SalesUnitChart.Printing.PrintChart(Telerik.WinControls.UI.ChartPrintOptions.ShowPrintPreviewDialog)
Me.SalesUnitChart.Printing.PrintDocument.Dispose()
Me.SalesUnitChart.Printing.Dispose()
This code works fine. However, if the user regenerates the chart with different data, it allways displays the 1st rendering of the chart, even if the datasource for the chart has changed. The chart appears correct on the screen, but the view in Print Preview is allways the first chart.
Is there a method that I need to call to clear the first rendered graphic, and get a new one?
Thanks.