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

Printed X-Axis label has black background

1 Answer 7 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matthew Hile
Top achievements
Rank 1
Matthew Hile asked on 27 Jul 2012, 12:17 PM
VS 2010, Q2 2012 reports. I have a chart in my report when it is printed the X-axis label (as well as the item labels on both axes) has a black background. The Y axis label which seems to be formatted identically, does not have a black background. This ONLY happens when printing directly to a printer. On the screen and when generating a PDF this black background does not appear. 

I have been setting the fills to all use the transparent color to see if that would do anything but no no avail. 

Any suggestions?

Thanks, 

Matthew

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 Dec 2012, 09:12 AM
Hi Matthew,

Although we've answered your inquiry long ago, we're now posting the answer here as well, so that others who have encountered this issue could find it. To resolve this weird problem, please place the following code snippet for the chart in your report constructor after InitializeComponent:
Copy Code
chart1.PlotArea.XAxis.Appearance.LabelAppearance.Dimensions.Margins = new ChartMargins(0, 0, 0, 0);
chart1.PlotArea.XAxis.Appearance.LabelAppearance.Dimensions.Paddings = new ChartPaddings(0, 0, 0, 0);
chart1.PlotArea.XAxis.Appearance.TextAppearance.Border.Color = Color.White;
chart1.PlotArea.XAxis.Appearance.TextAppearance.Border.Width = 0.0f;
chart1.PlotArea.XAxis.Appearance.TextAppearance.FillStyle.MainColor = Color.White;
chart1.PlotArea.XAxis.Appearance.TextAppearance.FillStyle.FillType = FillType.Solid;
chart1.PlotArea.XAxis.Appearance.TextAppearance.Dimensions.Margins = new ChartMargins(0, 0, 0, 0);
chart1.PlotArea.XAxis.Appearance.TextAppearance.Dimensions.Paddings = new ChartPaddings(0, 0, 0, 0);


Regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Matthew Hile
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or