Alternate color

Hi
can i give Aleternate color to records in crystal reports?
Thank you

Hi,
Create a formula with following code place it on report header.
WhilePrintingRecords;
numberVar colorNum:=0;
Create a formula with following code called ColorFormula and place it on row .
WhilePrintingRecords;
numberVar colorNum;
if colorNum = 0 then
colorNum := 1
else
colorNum := 0;
Right click on the section and select Section expert and go to Color tab
Click on formula button(X+2) and add following code (leave Crystal Syntax as it is)
if {@ColorFormula } = 1 then
crWhite
else
CrGray;
You can also give a any color.
Regards,
Clint
Edited by: clint pow on Dec 24, 2008 2:10 PM

Similar Messages

  • Using PHP to generate images in alternate colors

    I have a PNG image of a black silhouette graphic with
    softened edges against a transparent background.
    Can I use PHP to generate this image in alternate colors
    (allowing the black graphic to be displayed in a color other than
    black)?

    AngryCloud posted in macromedia.dreamweaver:
    > I have a PNG image of a black silhouette graphic with
    softened
    > edges against a transparent background.
    >
    > Can I use PHP to generate this image in alternate colors
    > (allowing the black graphic to be displayed in a color
    other than
    > black)?
    I have no experience with this, but I was just poking around
    in the GD
    references and found a comment on imagefill() that might
    help:
    http://us.php.net/manual/en/function.imagefill.php
    Comment:
    http://us.php.net/manual/en/function.imagefill.php#81873
    Or you may need to work with some of the other alpha
    functions.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Display alternate color in rows  : : : record numbers are not in sequence to display alternate color.

    Post Author: SRK
    CA Forum: General
    Hi ,
      I am using  the following formula to display the alternate white and silver  background color in every reocrd but this does not work because the records numbers are not in sequence  for ex : its showing 54,56,58 which is not allowing the alternate color, Any advice.Thanks if   remainder(recordnumber,2) =0 then    crNoColorelse    Color (218,218,218); 

    Post Author: keiffer6
    CA Forum: General
    Could you simply add a running total for each record. That will give you the 1 2 3 4 5 6 ....
    Then in the details section color formula, use something like this:
    if RunningTotal Mod 2 = 0 then crSilver Else crNoColor.
    HTH

  • Alternate color to the rows with sorting

    I have a table which has alternate color to the rows.one row in white and other in blue.when sorting is used, the blue-highlighted lines on the table are randomely re-located. They should not be impacted by the sorting.But they are getting effected.Is it possible to give alternate color to the rows with sorting?if yes,how.

    Go to Service.sap.com and follow the path > Problem Solving > Create Customer Messages. Choose a System and write a Message.
    raising an OSS message

  • In ALV, how do u get alternate colors in output

    In ALV, how do u get alternate colors in output

    For a non OO ALV...
    TYPE-POOLS:  slis.
    DATA:   xfield    TYPE slis_t_fieldcat_alv,
    gs_layout TYPE slis_layout_alv.
    In your data structure you have tu put a field for the color, example:
    DATA: BEGIN OF xdata OCCURS 1.
    DATA:   ebeln          LIKE ekko-ebeln,
            name1          LIKE lfa1-name1,
            txz01          LIKE ekpo-txz01,
            color_line(4)  TYPE c,           " <==== this is the color line
    END OF xdata.
    You have create a form for the layout like this:
    FORM init_layout.
      gs_layout-info_fieldname = 'COLOR_LINE'. "<==the name of de field of the structure
    ENDFORM.
    Perform the init_layout in the initialization.
    Your call alv function, have to be like this:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_buffer_active         = 'X'
          i_callback_program      = 'YOUR_PROGRAM'
          i_callback_user_command = 'USER_COMMAND'
          is_layout                = gs_layout
          it_fieldcat              = xfield[]
        TABLES
          t_outtab                 = xdata
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.

  • Alternate color in Row footer

    alternate color not applied in Table footer.
    Can any one let me know how to acheive this?

    Hi,
    You can use a normal alerter for this.
    A manual alerter can use a formula like Even(LineNumber()) to give a shading or not...
    Then again, don't you want the footers to stand out from the body of the table?
    Hope this helps,
    Marianne

  • Alternate Color Space

    We are running Creative Suite 6 on our macs here.  When you create a new spot color from the library the alternate color space is in LAB.  We work at a printing company and this doesn't do us very much good.  Is it possible to change this to be CMYK?
    Thanks for your help!

    This forum doesn't get all that much traffic. If you have applications specific questions ask in those forums.
    The answer may be different for the two apps.
    Bob

  • Alternate color in group footer

    Hi
    i am using following formula to apply alternate color in detail section, section expert, color, background color-
    if Remainder(recordnumber,2)=0 then RGB(223,223,223) else RGB(255,252,255)
    but if i apply same formula to group footer section it's not working.
    how to apply alternate color in records of group footer section?
    Please give me solution.
    Thank you

    Hi,
    Add
    while printing records;
    Above the  formula and try to run it.
    Regards,
    Neo.

  • Alternate color of tabular forms table

    hi all,
    how can i get alternate color of tabular form records, is there any possibility if oracle forms of this??
    Thanx
    Hina

    Hello,
    <p>You can use a Visual Attribute in conjunction with the Set_Item_Instance_Property() built-in. Change the color of the record's item when the record number is even. Get the record number with Get_Block_Property( :system.cursor_block, CURRENT_RECORD).<br>In this article you will se how to colorize a whole record.</p>
    Francois

  • Spot colors Black, All have the same alternate color values

    If printer’s mark [Crop, Registration, Page] is enable in the InDesign preset options, we are getting “Spot colors Black, All have the same alternate color values” error in the PITSTOP log report.

    Rob, here's screenshot of Acrobats Output Preview Object Inspector. You can download my PDF here - //www.fileswap.com/dl/Q1CzzOzEqt/
    I'm not sure if CM was assigned to document when created or  afterwards. In Color Settings preferences is stated Fogra 39 (if it matters - document was meanwhile saved and opened...). Are there other options to assign workspace to exsisting document?
    Peter, this is not the case. Placed image has embeded same color profile as is working space of document in ID. I tried the same with sRGB image placed in same ID document and compared it to PS but color shift (greenish) is present - it looks exactly the same.
    Guys, I can't tell you how happy I am to have you help me with this terrible and nerve-wracking problem.

  • Separation color space - get alternate color (function of type 0)

    Hello,
    I'm trying to retrieve the alternate color value of a spot color which has a function of type 0. Actually I just want to retrieve the result of the function when the tint is 1.0.
    How can I do that?
    Thanks in advance,
    Joe

    Right Leonard.
    The function is PDApplyFunction().
    Thanks,
    Joe

  • Crstal Report alternate color Help?

    Hello Friends,
    I have a crystal report, Crystal Report contains a Table and I change the alternate color of the Rows using the following formula:
    if RecordNumber mod 2 = 0 then crSilver else crNoColor
    I want the alternate color to be within the Table, but the alternate color is applied outside the Table also. How to do it?
    Thanks.

    If I understand correctly, the entire background of the details section gets the colour, not just the area within the verticle lines.  If so, then two possibilities, don't use verticle lines so that there is no border.
    If this solution is not useful, then while I haven't tried this, you might be able to use an image, set up the size you need (assuming the details section does not extend vertically) and set the conditional suppression to suppress using a similar mod formula.
    Hope this helps
    rasinc
    Edited by: rasinc on May 3, 2009 5:25 AM

  • Simple Question Alternate color for Interactive form

    I can easily change the alternate color in rows for tabular but not interactive,
    can someone show me how.
    Thanks,
    Doug

    Hi,
    At the moment, I don't think that's possible - see: Interactive report template
    You can get the alternating colours when the page is first loaded (the above link has an example of doing that), but when you use the pagination functionality, the colours are lost.
    Andy

  • Alternate colors for Analysis grid in workbook

    hi all,
    I am wokring on Bex 7.0 , Can anyone guide me how to acheive the alternate colors in the  data area of Analysis grid in a workbook.This property is available in web items but i am not able to do to with the workbooks.And also pls I need an example how we can work with themes in workbooks ,also creating the new themes.
    Thank you.
    Regards
    Mandha
    Edited by: kranthi mandha on Jan 3, 2008 12:57 PM

    Hi,
    For Apply Formatting :
    Deselect this checkbox to switch off the display of formatting, including icons and background color. Displaying formatting during navigation can be time consuming. You may therefore want to switch if off for performance reasons. An example is if you are navigating to achieve a result that you want to export to a text-based file.Scroll bars and scrolling icons are not affected by this setting.
    SAP Notes:
    Customizing Default Workbooks
    You can format a workbook using all the Microsoft Excel functions. The following options are available, for example:
    &#9679;      Add a background graphic to the worksheet
    &#9679;      Add additional worksheets with design items or charts
    &#9679;      Embed a VBA macro that allows you to easily access the BEx Analyzer object model to enhance your workbook with BEx-specific custom VBA code
    &#9679;      Format cells outside of design items with text, borders, and colors
    &#9679;      Add a logo to a particular cell (outside the range of a design item)
    You can also format a workbook using the BEx Analyzer design functions:
    &#9679;      Add or remove design items that you want to display by default
    &#9679;      Change the locations of design items
    &#9679;      Apply a BEx theme (see Workbook Settings)
    Cells belonging to design items themselves use a standard formatting.  Using Microsoft Excel functions, you can manually format these cells in analysis mode. For example, you can select a row of results in the analysis grid and set the text to bold. However, when you refresh the query, the standard formatting for the query cells is restored and the settings for these cells are lost.
    You can permanently format design item cells in two ways:
    &#9679;        Using BEx themes, you can select different formatting themes, including formatting for design items. See Workbook Settings
    &#9679;        With certain types of queries, you can work in formula mode, which gives you complete freedom to format the cells as required. See Working in Formula Mode.
    For example, your current default workbook consists of a background graphic and the Navigation Pane and Analysis Grid design items. You work with different queries in which exceptions were defined. You want to be able to display exceptions easily when you open queries in the BEx Analyzer. You want to display a background graphic that contains an exception alert symbol. You proceed as follows:
    &#9679;        Create a new blank workbook using Microsoft Excel function New.
    &#9679;        In analysis mode in the BEx Analyzer, choose Format ® Sheet ® Background in the Microsoft Excel menu, and select a different background graphic.
    &#9679;        Use the BEx Analyzer design toolbar to insert a List of Exceptions design item. If you were not already connected to a system, you are prompted to connect now.
    &#9679;        Insert an Analysis Grid design item to display the query results.
    &#9679;        Choose Save ® Save Workbook As in the analysis toolbar, and save the workbook to the server.
    &#9679;        Close the workbook.
    &#9679;        Choose Open ® Open Workbook and open the workbook from the server. This is a prerequisite to be able to define workbooks as default workbooks.
    &#9679;        In the analysis toolbar, choose Global Settings, and in the Current Default Workbook section, choose Use Current. Your customized workbook is now the default workbook.
    &#9679;        Choose Open ® Open Query and select a query.
    Your query now opens in the workbook you have defined as the default.  The Exception design item is already embedded in your workbook and your custom background graphic is displayed
    Themes
    BEx themes, based on NetWeaver Portal styles, are shared services across the Business Explorer suite. In the BEx Analyzer, they are delivered as a set of Microsoft Excel style definitions for your workbook. Themes provide formatting information such as background color, font, and font size. To display the set of style definitions for a workbook, choose Format  ® Style from the Microsoft Excel menu.  The styles provided by the Business Explorer are prefixed with SAPBEX*.
    Themes are content objects that are stored on the server and that you can choose to activate.  Themes are stylesheets in which you can make important changes to a theme. All workbooks in which the theme is used are updated accordingly. 
    The following settings are available on the Themes tab page:
    Current Theme
    The list of available BEx themes is displayed. The BEx theme that is currently applied to your workbook, if any, is selected.
    New/Delete/Apply/Save
    If the following special authorization is assigned to your user name, you can change and save themes on the server: AUTHORITY-CHECK OBJECT 'S_RS_TOOLS' ID 'COMMAND'  FIELD 'THEMES'.
    If you have this authorization, these buttons appear:
    &#9679;      Create a new theme by choosing New.
    &#9679;      Select a theme from the Current Theme list, and choose Delete to delete it. This deletes your theme locally.
    &#9679;      Select a theme from the Current Theme list, and choose Apply to apply currently configured styles to it. When you do this, the BEx Analyzer reads the Microsoft Excel style definitions of all the styles in the workbook that are prefixed with SAPBEX* and stores them in the selected theme. This allows you to edit the styles in Microsoft Excel and then create a theme with these customized styles.
    &#9679;      To save all the themes to the server, choose Save.
    Reapply Theme Before Rendering
    Since BEx themes are saved on the server, they can be changed on the back end. Select this indicator if you want to retrieve the most up-to-date definition of the style from the server and apply it again.
    Apply New Styles
    Select this indicator to update the current workbook with any style that has been added to the theme on the server since the theme was originally applied. If, for example, new styles have been added to a theme during a patch release, you can retrieve them from the server with this option.
    Do Not Use a Theme
    Select this indicator to stop using the selected theme in your workbook.
    pls chk this link:
    http://help.sap.com/saphelp_nw70/helpdata/en/85/1321d0b7864766b5208a0b221a7608/frameset.htm
    *pls assign points,if info is useful*
    Regards
    CSM reddy

  • *urgent* Alternate colors for Grand total values

    Hi all,
    I have 1 dimension column and 4 fact columns. Here I perform Grand total for the request .
    The requirement is :---
    I need alternate colors as background for the Grand total values.
    Am trying to modify the XML in Advanced tab .
    I tried to do it by using combine request .
    Please help on this . Urgent .
    Thanks a lot in advance for every reply .

    Please give some suggestions.

  • How to create alternate color columns in MS SQL reporting services (rdl)

    I found something related to row coloring at ::
    http://weblogs.sqlteam.com/joew/archive/2008/08/20/60691.aspx
    i went through all the properties for column but none that would help me achive me goal.
    SO in my case .. the no of rows are fixed .. but columns vary .. so i wnat the alternate columns to be of different color (say white and silver)

    Hi,
    Once my no of data sets (mine is 3 columns per data set) changes, the highlighting 'shifted' like below. Any idea how this happen?

Maybe you are looking for