This is a migrated thread and some comments may be shown as answers.

Missing Axis Labels on Save

1 Answer 29 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 22 Mar 2012, 09:48 PM

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]()

 

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 26 Mar 2012, 07:30 AM
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.
Tags
Chart (Obsolete)
Asked by
Craig
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or