Rotate DataLabelColumns

7 posts, 0 answers
  1. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 19 Dec 2012 Link to this post

    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?
  2. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 19 Dec 2012 Link to this post

    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.
  3. DevCraft banner
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 20 Dec 2012 Link to this post

    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!

  5. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 20 Dec 2012 Link to this post

    That did not appear to work I am still getting the black background when printing
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 20 Dec 2012 Link to this post

    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!

  7. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 20 Dec 2012 Link to this post

    I am using the print button from the preview tab of the report designer.  When I save as PDF it is fine.
  8. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 21 Dec 2012 Link to this post

    This looks like it is only an issue when in the development environment.  When I run the app the printing works fine
Back to Top
DevCraft banner