February 22, 2011 at 1:17 am
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
February 22, 2011 at 3:08 am
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?
February 22, 2011 at 3:11 am
yes ur right... if i see preview
it is displaying <font color= red>raki</font>
what to do..
February 22, 2011 at 3:25 am
Thank u ... very much..
February 23, 2011 at 2:23 am
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
March 21, 2011 at 5:02 am
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