Missing Axis Labels on Save

Thread is closed for posting
2 posts, 0 answers
  1. Craig
    Craig avatar
    1 posts
    Member since:
    Nov 2011

    Posted 22 Mar 2012 Link to this post

    When I save the displayed chart image with the code below, the axis labels are missing from the image  (I saw on an earlier post this can happen if scroll mode is on).  I am not using scroll mode

    Here is the code

     

    Dim

     

    ms1 As New System.IO.MemoryStream()

     

     

    Me.chtGraph.Save(ms1, System.Drawing.Imaging.ImageFormat.Png)

     

     

    Me.Page.Response.Clear()

     

     

    Me.Page.Response.ClearHeaders()

     

     

    Me.Page.Response.AddHeader("Content-disposition", "attachment; filename=graph.png")

     

     

    Me.Page.Response.AddHeader("Content-type", "image/png")

     

     

    Me.Page.Response.BinaryWrite(ms1.ToArray())

     

     

    Me.Page.Response.[End]()

     

  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 26 Mar 2012 Link to this post

    Hi Craig,

    I used your code in an already existing project and the chart is printed as expected. I have attached the project so that you can test it too.

    I would have to guess that some of the settings you have applied to the chart cause this. I suggest that you localize the problem - try removing the settings one by one and see when the issue stops appearing. It is probably some setting related to the axis.

    If you keep experiencing problems with this - you can open a support ticket and attach a project that we can run and test and try to find the origins and a solution of the problem. 

    Greetings,
    Petar Marchev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top