how to change a color of particular word in the row in ssrs reports

  • check the attachment images

    This is my SP...

    USE [TASKDB]

    GO

    /****** Object: StoredProcedure [dbo].[GettomoTaskSheet] Script Date: 02/22/2011 12:54:32 ******/

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    -- =============================================

    -- Author:VINAYAK

    -- Create date: 29/01/2011

    -- Description:<Description,,>

    -- =============================================

    ALTER PROCEDURE [dbo].[GettomoTaskSheet]

    -- Add the parameters for the stored procedure here

    @fname nvarchar(50)

    AS

    BEGIN

    -- SET NOCOUNT ON added to prevent extra result sets from

    -- interfering with SELECT statements.

    SET NOCOUNT ON;

    SELECT date,To_Name ,Todays_Task,Status ,Tommorrows_Task,REPLACE(Comments, 'vinni','<font color="red">raki</font>') as comment

    from TaskSheet where From_Name = @fname;

    END

  • It beats me 🙁 I have this setup working on a 2008R2 but it shouldn't make any difference.

    Does it also show this way in BIDS preview?

  • yes ur right... if i see preview

    it is displaying <font color= red>raki</font>

    what to do..

  • I've found this...

    But according to this blog the method I used should definately work.

    You might want to post on MSDN forums if noone can help you here

  • Thank u ... very much..

  • Select the Field you want to change

    Go to color section on your properties.

    Select Expression

    In the expression type

    =IIF(Firstname!Value='John',"Green","Red")

    This means, if the name is JOhn, you color will

    be Green else it will be Red

  • hey try this:

    if ur using 2008

    go to the textbox properties there select Fill option and in that in Fill color give the below expression. and for 2005 it will almost the same.

    =iif(fields.value = "john" or fileds!.value = "xxx" , "color",nothing)

    Thanks

    Vasu

Viewing 7 posts - 16 through 21 (of 21 total)

You must be logged in to reply to this topic. Login to reply