Print Preview not Refreshing.

Thread is closed for posting
3 posts, 0 answers
  1. Thomas Seest
    Thomas Seest avatar
    2 posts
    Member since:
    Jan 2005

    Posted 22 Jan 2008 Link to this post

    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:

    Me.SalesUnitChart.Printing.PrintDocument.DefaultPageSettings.Landscape = True




    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?


  2. Konstantin Petkov
    Konstantin Petkov avatar
    1911 posts

    Posted 25 Jan 2008 Link to this post

    Hello Thomas,

    Unfortunately this appears to be a problem at present. We have logged it into our bug-tracker and will look into resolve it as soon as possible.

    I have updated your Telerik points as a small token of gratitude for pointing this out to us. Please, excuse us for the temporary inconvenience.

    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Thomas Seest
    Thomas Seest avatar
    2 posts
    Member since:
    Jan 2005

    Posted 25 Jan 2008 Link to this post

    Thank you for your reply.  I figured it was a bug, but couldn't be sure.

    In the mean time, I've replaced this code with the following lines, which work well enough for my users:

    Me.SalesUnitChart.Save("C:\SalesChart.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)


    This just uses the defalt application for image handling in windows, and retrieves the image.  From their, they can print the chart.

    Thanks again.

    Tom Seest

Back to Top