Bar color in report

Hi,
We are using Crystal Reports XI R2. We have a requirement wherein we would like to programmatically set color or bars in a chart report. I was going through the API reference but could not find any class that could help. Could someone point me in the right direction?
This is apart of a C#.net application using VS2005 and SQL Server 2005.
Thanks!
D2

Hi John,
Its not possible to programatically change bar color  in reports.
See this business objects note # 1197468 .
Content of Note is here:
Symptom
Is it possible to change the line colors in a line chart or the bar colors in a bar chart at run time using Visual Studio .NET?
Cause
The chart analyzer is a third party tool that Crystal is licensed to use in the designer. That means in the Crystal Designer you have a lot of chart functionality, but at runtime the chart exists as part of the report object and the analyzer is not present. That means you have a few formatting options but no creation functionality.
Resolution
Using the Crystal reprots SDK for .Net it is not possible to change the line colors in a line chart or the bar colors in a bar chart at run time.
The .Net sdk provides minimal ability for accessing chart objects. Using Chart Object you can only set properties such as Height, Width, Border, etc., at runtime and retrieve information about the Chart Object in a report.
Regards,
Shweta

Similar Messages

  • CR for VS 2005 - Bar Chart - Bar colors

    Hi,
    I'm creating a report in Visual Studio 2005 and have a bar chart in it.  I've searched the forums but can't seem to find out how to change the colors of the Series bars.
    If anybody has any ideas or suggestions, they would be greatly appreciated.
    Thanks in advance.
    Ron

    Apparently, the version of CR that ships with Visual Studio doesn't allow much in the way of customization.  I have since upgraded to CR 2008 and can now change the bar colors.

  • To set the bar colors programatically

    Hi,
    I am developing a barchart report in VS-2005.  I have a table in which i maintain colors. I should programatically get the colors from the database during runtime and set the bar to that color. how to do this?
    Regards,
    Deepa

    Hi Deepa,
    Go through the Business objects Note #1197468.
    Symptom
    Is it possible to change the line colors in a line chart or the bar colors in a bar chart at run time using Visual Studio .NET?
    Cause
    The chart analyzer is a third party tool that Crystal is licensed to use in the designer. That means in the Crystal Designer you have a lot of chart functionality, but at runtime the chart exists as part of the report object and the analyzer is not present. That means you have a few formatting options but no creation functionality.
    Resolution
    Using the Crystal reports SDK for .Net it is not possible to change the line colors in a line chart or the bar colors in a bar chart at run time.
    The .Net sdk provides minimal ability for accessing chart objects. Using Chart Object you can only set properties such as Height, Width, Border, etc., at runtime and retrieve information about the Chart Object in a report.
    Regards,
    Shweta

  • BI graph change bar color

    Hi All,
    I worked on the PJC BI graph, do you have an idea how to change bars color?
    regards

    The best place for information on the BI Graph is the Reports FAQ page:
    http://www.oracle.com/technology/products/reports/htdocs/faq/Graph_FAQ_with_style.html
    It contains a lot of useful tips on how to customize a BI Graph using the XML tags.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    OLAP Blog: http://oracleOLAP.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    OWB : http://blogs.oracle.com/warehousebuilder/
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Change row's color in report painter

    Hi all!!!
    anybody knows how change row's color in report painter,
    for example
    number   name        |  money          
       7020   payments1 | 100.00   
       7021   payments2 | 200.00
        summary            |  300.00
    change color of row  "7020   payments1" and "7020   payments1"
    Regards!!!

    Hi,
    For it, first place the cursor on the row and choose Formatting > Row. In the next dialog box, select a color (for totals, subtotals, inserted rows, or for emphasis). The system assigns a color based on the selection you make here.
    Regards,
    SDNer

  • Scroll bar display in report

    Hi
    I want to set scroll bar in my report ..my column names should be fixed header...I surely need vertical scroll bar than horizontal scroll bar...I used the following javascript code to display scroll bar.
    <script language="JavaScript" type="text/javascript">
    <!-- Hide
    //Function Builds Static Header and Scrollable Div called with document onload
    function MakeStaticHeader(xDataGridName,xScrollHeight){
    //Grab the Table object
    var theTable = document.getElementById(xDataGridName);
    //Create a holder div so div header can be added correctly before table
    var myHolderDiv = document.createElement("div");
    myHolderDiv.setAttribute('id','tableHolder_'+ xDataGridName)
    //Create the Header Div, setting id and adding to Holder
    var myHeaderDiv = document.createElement("div");
    myHeaderDiv.setAttribute('id','divHeader_' + xDataGridName)
    myHolderDiv.appendChild(myHeaderDiv);
    //Insert the Holder and Header divs
    theTable.parentNode.insertBefore(myHolderDiv,theTable);
    //Append the Child
    myHolderDiv.appendChild(theTable)
    //More messy code with IE
    if(document.all){
    theName = "hold2_" + xDataGridName;
    else{
    theName = xDataGridName;
    //Create Body Div for scrollable body (IE creates a holder, mozilla creates the scroller)
    var theBodyDiv = document.createElement("div");
    theBodyDiv.setAttribute('id','divBody_' + theName);
    theBodyDiv.setAttribute('style','OVERFLOW-Y: scroll; OVERFLOW-X: auto; OVERFLOW: auto; HEIGHT: ' + xScrollHeight + ';')
    theTable.parentNode.insertBefore(theBodyDiv,theTable);
    theBodyDiv.appendChild(theTable);
    //Since IE can not apply the style to the new Child above, we need to make it messy! (IE is making this hard!)
    //Converts the holder to a scroller
    if(document.all){
    var theMessDiv = document.getElementById('divBody_' + theName);
    startDiv1 = '<div id="divBody_'+ xDataGridName +'" style="OVERFLOW-Y: scroll; OVERFLOW-X: auto; OVERFLOW: auto; HEIGHT: '+ xScrollHeight +';">';
    endDiv1 = '</div>';
    theMessDiv.innerHTML = startDiv1 + theMessDiv.innerHTML + endDiv1;
    //The following Code Builds the header
    theTable = document.getElementById(xDataGridName); // Arie
    //Grab border widths (have to check for different ways to define it!)
    var borderWidth = parseInt(theTable.style.borderwidth);
    if(!borderWidth){
    borderWidth = parseInt(theTable.border); }
    if(!borderWidth){
    borderWidth = parseInt(0); }
    //Grab the table Headers (if exsists)
         var theThs = theTable.getElementsByTagName("th");
         var hasThs = parseInt(theThs.length);
         var hasHeadCells = false;
         //See if the Table Headers exist
         if(hasThs>0){
         hasHeadCells = true;
    //Grab the table rows
         var theTrs = theTable.getElementsByTagName("tr");
    //Find the number of columns
    var theTrsTds = theTrs[1].getElementsByTagName("td");
         var numberOfColumns = parseInt(theTrsTds.length);
    //Grab all of the table cells
    var theTds = theTable.getElementsByTagName("td");
    //Determine the widths of the columns of the table
    var totalWidth = 0;
    var theWidths = new Array();
    for(i=0;i<numberOfColumns;i++){
              if(hasHeadCells){
              theWidths[i] = theThs.offsetWidth;
              else{
    theWidths[i] = theTds[i].offsetWidth;
              theTds[i+numberOfColumns].style.width = theWidths[i];
    totalWidth += parseInt(theWidths[i]);
    //Set the width of the div so the scroll bar is on the edge of the table
    document.getElementById("divBody_" + xDataGridName).style.width = document.getElementById("divBody_" + theName).offsetWidth;
    //Grab the content for the headers
    theHeaderCode = theTrs[0].innerHTML;
    //This is for IE only since it does not support getComputedStyle which is alot easier!
    var theStyle = "";
    if(document.getElementById("divBody_" + xDataGridName).currentStyle){
    //Grab the innerHTML and locate the style
    theX = document.getElementById("divBody_" + xDataGridName).innerHTML;
    theX = theX.split("style");
    //Verify that there is a style tag in the table tag
    if(theX[0].indexOf(xDataGridName) >= 0 && theX[1].indexOf("<TBODY>") >=0){
    //split aprt to get the style
    theQ = theX[1].split('"');
    //set the style string
    theStyle= "style='" + theQ[1] + "'";
    //Create the table code and set it on the document
    tbCode = "<table id='theAddon_"+ xDataGridName +"' "+ theStyle +">" + theHeaderCode + "</table>";
    document.getElementById("divHeader_" + xDataGridName).innerHTML = tbCode;
    //Apply the CSS Class and the Widths to the header Elements
         if(hasThs > 0){lookFor = "th";}
         else{lookFor = "td";}
    theNewTD = document.getElementById("divHeader_" + xDataGridName).getElementsByTagName(lookFor);
    for(i=0;i<theNewTD.length;i++){
    theNewTD[i].style.width = theWidths[i];
    /* Arie Workaround - English version*/
    //theNewTD[i].style.borderStyle = "solid none solid solid";
    //theNewTD[i].style.borderWidth = "1px";
    //Apply CSS to the static table
    theOrgTable = document.getElementById(xDataGridName);
    theNewTable = document.getElementById("theAddon_" + xDataGridName);
         for(x=0;x<theOrgTable.attributes.length;x++){
         if(theOrgTable.attributes[x].nodeValue && theOrgTable.attributes[x].nodeName.toLowerCase() != "id"){
         theNewTable.setAttribute(theOrgTable.attributes[x].nodeName,theOrgTable.attributes[x].nodeValue);
    // Calculate the scrollbar width and streach the last header cell
    var scrollbarWidth = document.getElementById("divHeader_" + xDataGridName).offsetWidth - document.getElementById("theAddon_" + xDataGridName).offsetWidth
    var lastHeaderCell = theNewTD.length - 1;
    theNewTD[lastHeaderCell].style.width = theWidths[lastHeaderCell] + scrollbarWidth;
    theNewTD[lastHeaderCell].style.borderStyleLeft = "solid";
    theNewTD[lastHeaderCell].style.borderWidthLeft = "1px";
    //Hide the orginal header row
         theTrs[0].style.display = "none";
    //Make mozilla browsers see the applied styles
    makeSame(theOrgTable,theNewTable)
    //Function to make Mozilla have the same inline styles
    function makeSame(elem_1, elem_2){
    if (window.getComputedStyle){
    elem_1x=window.getComputedStyle(elem_1, "");
    elem_2x=window.getComputedStyle(elem_2, "");
    elem_2x = elem_1x;
    // End Hide -->
    </script>
    I called the script code in onload event like
    onload="MakeStaticHeader('table_grab',50)"
    but my problem is that it is not displaying the data in proper format(not displaying data under correct columns)...i got this problem only when I have more columns(horizontally large)..I am not finding any problem if i have less columns with much data(vertically large)....
    I gave a sample report in the following link...
    http://apex.oracle.com/pls/otn/f?p=9608:1:409755984054854:::::
    Can anyone say how to set vertical scroll bar with fixed column headers in neat format even the number of columns are more...?
    Fazila

    Hello,
    This is a well-known issue with this code, as you can see in the thread you copied the code from.
    In the following post, Laura is presenting an IE only solution, based on a different code I wrote - Re: How to implement fixed column headers . Cross browser solution is yet to be found.
    Regards,
    Arie.

  • Function or formula to display the desired color in report

    Hi,
    I am using Web I rich client in BO XI R3.1 version and would like to know if there is any function or formula to display the desired color in report.
    I've used aleters but not getting the desired output. I need to display the color of some regions percentage wise based on a condition in a box i've created alerters for individual colors but they are not working.
    I came to know in crystal it is available just want to know if it is available in BO too.
    For more information about the issue am facing which had already posted in this forum please have a look in the below post.
    Alerter not working in XI R3.1 web I rich client report  
    Posted: Mar 15, 2010 1:29 PM  Eswar Rao
    I am desperately looking for solution and trying to resolve this issue. I would really appreciate for your ideas or solutions.
    Thanks,
    Eswar

    Or just make one alerter. Make sure you are in the cell and open Alerters. Create one that says "Filtered Object or cell" = "Cell Contents"  "Less than" and enter the lowest number, like 0.6. Then click format and change to the color text or background you want. Say ok to all of that and make sure it works.
    Then edit the same alerter, click add sub-alerter. Make this one "Filtered Object or cell" = "Cell Contents" again, and put Operator of "Greater than or Equal" to 0.7. Then click on the plus sign button to the right and it should give you an "And" option. Make that one "Cell Contents" "Less than" 0.8. Again go into Format and change to the next color you want. Click OK all the way out and check.
    Then edit it again, and add another sub-alerter and make this one "Cell Contents" "Greater than or equal to" 0.9. and again format the color, and save.
    Does that not work?

  • Use of Bar Codes in reports and fonts

    Hi,
    I've copied Word fonts for the bar codes in the folder "Windows font "on mi pc. Then I opened a DESKI report and I used the same font in the report. I must repeat the same operation on all pc's in the company and on the Application Server where is located the CMC?
    Thanks in advance and best regards,
    Andrea Cozzani

    Hi Edmar
    I think the solution is for every user who is seeing the Reports PDF output in the browser, to have the relevent font in Acrobat. We have introduced Single Byte Type 1 Font Embedding and True Type font subsetting features in Reports 9i and if the resultant pdf output has any of these font types, you can use these features. In this case, user does not need to have the Font installed.
    Also In Reports 9i, you can create a bar code font report using Barcode bean. Please have a look at
    http://otn.oracle.com/products/reports/htdocs/getstart/examples/index.html
    for more detail.
    Thanks
    The Oracle Reports Team

  • Status Bar Color Scheme

    The status bar color scheme changed on my Galaxy SIII. Both the Battery and Signal Strength indicator bar used to be green - now it is white...which i do not like. Is there a way to change the color back to its original state?

    Why on earth would they change the color scheme of the indicators when they release the latest OS update? What the coloring scheme harming or slowing down the performance of the phone?

  • How can i use Progress bar in IR Report

    Hi ,
    I have created IR Report based on the View so, it's been taking 10-15 mins of time to execute the IR Report. Here user want to see the Progress bar while executing the IR Report. How can i use Progress bar in IR Report.
    Anybody have idea on Progress bar please help me.
    Regards
    Narender B

    Hi ,
    Thanks for your information.
    I am new to the APEX.*i need to show Progress bar while opening the each page* then user can know some process is happening from the backside and i don't know where i need to add and call the below function.could you please provide the steps for the progress bar.
    In my application there are almost 100 pages are there so, i need to show progress bar on each page while opening .could you please provide Global function to call on each page.
    function html_url_Progress(pThis){ 
    $x_Show('AjaxLoading');
    window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    //doSubmit('APPLY_CHANGES');
    redirect(pUrl);
    Regards
    Narender B

  • Fill cell color in report - the entire cell?

    Hi all,
    Apologies to ask for something that has already been touched on.
    https://forums.oracle.com/message/843430#843430
    This solution was great to read. It colors the text background in a cell, in a report, depending on the data within. This is almost, but not quite coloring the entire cell.
    I have been trying for a while but at this point can I put it to the brains trust? (ie you)
    In old school language, what I'm after is
    <TABLE border=1 bgcolor=#FFFFFF>
    <TR>
    <TD>my first table</TD>
    <TD bgcolor=#00FF00>my first table</TD>
    </TR>
    </TABLE>
    ...which colors one entire cell, rather than just the white behind the text.
    FYI, I would then go to make this conditional depending on the data in the cell - Effectively becoming the Excel stype Conditional formatting.
    Thanks.
    NT

    Hi,
    This might help
    Read Article - APEX 4 color classic report single column cells
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • I use Aperture 3 how can I have the tool bar colored?

    I use Aperture 3, how can I have the tool bar colored?

    Thanks for your help, for the time beeng i will follow your suggestion: "learn to love the new look."
    In any case I strongly recomend Apple to correct the Aperture 3 software.
    Have a nice day
    Sergio

  • Controlling Chart Bar Colors

    Hello, I'm just beginning to add charts to my application and I'm finding it difficult to control Chart bar color dynamically. I would like Red, Yellow, Green bars based on limits on the Bar value. Example Values under 5 may be Green, 5 - 9 Yellow, and over 10 Red. The HTML chart appears to either be Random or one Specifc color, and the SVG Chart appears to only be a sinlge color. Both are chosen on the attribute screen of the chart.
    Anyone done Dynamic Chart Bar coloring? - Thanks

    Hi, and welcome!
    Have a look at: [http://apex.oracle.com/pls/otn/f?p=44602:2]
    To get this on a Flash Chart, I have:
    1 - Set the chart type to: Stacked 2D Column
    2 - Set the Color Scheme setting to: Custom
    3 - Set the Custom Colors to: red,yellow,green
    4 - Created THREE series (with a maximum of 15 rows each) with the following SQL statements:
    Series 1:
    SELECT NULL LINK, ENAME LABEL, CASE WHEN SAL < 1000 THEN SAL ELSE 0 END VALUE FROM EMP WHERE SAL IS NOT NULL ORDER BY ENAME
    Series 2:
    SELECT NULL LINK, ENAME LABEL, CASE WHEN SAL BETWEEN 1000 AND 2000 THEN SAL ELSE 0 END VALUE FROM EMP WHERE SAL IS NOT NULL ORDER BY ENAME
    Series 3:
    SELECT NULL LINK, ENAME LABEL, CASE WHEN SAL > 2000 THEN SAL ELSE 0 END VALUE FROM EMP WHERE SAL IS NOT NULL ORDER BY ENAME
    As long as my SQL is correct and the SAL value ranges don't overlap, each ENAME entry will appear in one, and only one, series - for the other two series, the value will be reset to 0, so nothing is shown.
    Andy

  • Bar color of ProgressBar in Spark

    Hi,all. I use ProgressBar in Flex 3 and it's ok. I can change the bar's color by set ProgressBar's barColor style at runtime. But now I use Flex 4 and uncheck Flex 3 compatibility checkbox in Compiler configuration page, I can't use barColor style any more. I think I have to create a BarSkin class to solve it. My question is that how can I change the bar's color at runtime in Spark. I can't find any property or style for it?

    try this solution:
    create a progress bar skin and where you define the bar color write something like this:
    color = {hostComponent.runtimeColor}
    then create a custom component based on progress bar  or an AS3 class whitch extends progressBar like this:
    package
         import mx.controls.ProgressBar;
         public class CustomProgressBar extends ProgressBar
              public var runtimeColor:uint;
              public function CustomProgressBar()
                   super();
    Now from your app you should change bar's color at runtime
    yellow

  • Yosemite load bar color changes / from black to white

    Hello there,
    is anyone experiencing the same as me?
    When booting my MacBook Pro Retina Mid 2012 the load bar color changes from black to white. The color change happens as the keyboard background lights turn on. After this I get to the login screen with the blurred desktop background image (seems normal)
    Video: https://vid.me/hOX
    (sorry for the vertical video)
    I know that the load bar is a feature of Yosemite, but not with the color changes.
    I did a clean install of OS X Yosemite with the AppStore download and the Diskmaker X Tool.
    Thanks for answers...

    No
    With a very advanced photo editor like PhotoShop and lots of skill you could do that
    It is certainly not a simple operation if it is just a B&W image with no color information
    LN

Maybe you are looking for

  • A better way to arrange icons?

    Is there a better way to arrange icons? iTunes just **ed up all of my sorted icons and they are now however iTunes determined them to be. I've got 7 pages that I really don't want to 'click & drag'. It'd be nice if I could arrange them in iTunes.

  • ITunes Radio/Music Randomly Playing on My iPhone 5 with iOS7

    Hello, I apparently do not understand how iTunes Radio/Music operates as I am noticing what I think is strange behavior on my iPhone 5 running iOS 7.  I am noticing that under "artists" in the music app there are suddenly 49 songs that are appearing

  • Need information about Garnishments  and  USA Tax     (Very Urgent)

    Hi SAP Experts, Please send me some configuration flow (one by one steps) about Garnishments and USA Tax . Please let me know where exacttly i need to configure. Please send me one by one steps. Thanks & Regards, GKReddy.K

  • How do you install a software once it's been deleted off your computer?

    I deleted Premier Pro to free up space and now need it. But creative cloud says i already have it so won't let me redownload it.

  • Audition cs6 with pp cs5.5

    following the discussions in the forum I'm going to wait with installing the upgrade from cs5.5. to ppcs6. however I have ordered with the pprcs6 the audition cs6 (I didn't have audition before). should I be concerned about installing it with the pp