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

Rotate DataLabelColumns

6 Answers 27 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eric Klein
Top achievements
Rank 1
Eric Klein asked on 19 Dec 2012, 05:34 PM
How can you rotate the Data Lable Column.  I have it displaying a description but they run together,  I can see I can rotate differnt lables but can not seem to find the place to rotate the labels on the x axis.  I would like to rotate them about 30% so they will fit.  Also how do you show the value of the y axis in on the bars of a bar grid.  Alos I am show percentage and the y axis is only going to the largest value, how can I set it to go to 100?

6 Answers, 1 is accepted

Sort by
0
Eric Klein
Top achievements
Rank 1
answered on 19 Dec 2012, 07:53 PM
Ok I have found all the settings I am looking for, but I have some very odd behavior when printing.

It looks good on the screen I hit the print button and for some reason The Title Texbox prints with a black background, the Legend prints witha black background and the text on the y axis (Major TIcks) have a blck background, but when you view it on the screen they appear fine.
0
Steve
Telerik team
answered on 20 Dec 2012, 09:10 AM
Hi,

Please use the following code snippet for the chart in your report:
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);

Place this code in the report constructor right after InitializeComponent.

Greetings,
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!

0
Eric Klein
Top achievements
Rank 1
answered on 20 Dec 2012, 02:21 PM
That did not appear to work I am still getting the black background when printing
0
Steve
Telerik team
answered on 20 Dec 2012, 05:26 PM
Hello,

Can you clarify how do you print the report - programmatically or via the report viewer, if the latter, which viewer is that? Do you get the same problem if you export to PDF and print from it?

Greetings,
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!

0
Eric Klein
Top achievements
Rank 1
answered on 20 Dec 2012, 05:27 PM
I am using the print button from the preview tab of the report designer.  When I save as PDF it is fine.
0
Eric Klein
Top achievements
Rank 1
answered on 21 Dec 2012, 02:10 PM
This looks like it is only an issue when in the development environment.  When I run the app the printing works fine
Tags
General Discussions
Asked by
Eric Klein
Top achievements
Rank 1
Answers by
Eric Klein
Top achievements
Rank 1
Steve
Telerik team
Share this question
or