SSRS footer item wont format correctly - visual-studio-2010

I am using SSRS with Visual Studio 2010. I have a cell pulling to a footer text box using the value:
=ReportItems!GuarantorBalance.Value
I CANNOT format the cell in the footer with the currency format. I tried every which way to format the text box but it never pulls the currency value. If I try to format the account number in the footer it will format with a currency value. Any ideas why the GuarantorBalance won't format with a currency value? Is there any other techniques I can try besides using the preset values in report designer?

Have you tried an explicit format for the value using an expression, like:
=FormatCurrency(ReportItems!GuarantorBalance.Value)

Related

How to set in a Report the format date in TextBox based current RegionalSetting?

I have in my Report, I'm using Visual Studio Ultimate 2013 a TextBox with DATE value
I would like to set the DATE format by current Regional Setting.
So : if is US I wold like to set format yyyy/mm/dd etc..
There is a possible way in Visual Studio. There is a specific property or formula ?
I need to set dynamically the date format.
Thanks!
You will need to navigate to Text box properties > Number > Date. Select any date format which begins with asterisk(*) as it denotes that regional settings will be applied. You can refer to the screenshot below for details

RDLC Report export to Excel change column data type

While exporting to Excel i am not able to Convert column data type from General to Number or Currency. Its showing error on Excel cells "The Number in this cell is formatted as text or preceded by an apostrophe.". Can anyone provide me a link how to change column date type while exporting to excel.
Try to set the datatype as int32.
Select the textbox in Tablix
Go to textbox properties
Go to Numbers tab
select Category "Number" and click ok.

combine two fields & bold one in Crystal Report

want to combine two database field having datatype string.from that two fields first one make bold.
e.g.-EmployeeName(with Font Bold)+Address(with regular font).
i am using VS 2008 in build crystal report.
try below:
Take a formula and write below code:
"<b>"+EmployeeName+"</b>" + Address
Then go to the format field of the formula and then to paragraph tab there change the text representation to HTML Text

SSRS Page footer does not display the correct information after the first page

I am working on a SSRS report for SQL 2005 in Visual Studio 2005 and I need to include information in the page footers from a dataset. I followed the information in the following Microsoft article http://technet.microsoft.com/en-us/library/ms159677(v=sql.90).aspx
I setup several hidden textboxes in the body of the report to hold the aggregated dataset information I need. I then reference those textboxes in the page footer of my report.
The page footer on the first page is correct but on the rest of the report pages the text boxes are not getting the information. In my situation, I am getting the user id and date from a dataset and trying to display it on each report page in the footer.
More details:
In the first hidden textbox (lblDatetime) in the body I get the value from the dataset like the following:
=First(Fields!Date.Value, "headerData1")
In the second hidden textbox (lblUserID) in the body I get the value from the dataset like the following:
=First(Fields!UserID.Value, "headerData1")
I then reference the first textbox in the footer using the following:
=First(ReportItems!lblUserID.Value)
I then reference the second textbox in the footer using the following:
=FormatDateTime(First(ReportItems!lblDateTime.Value),DateFormat.ShortDate)
=FormatDateTime(First(ReportItems!lblDateTime.Value),DateFormat.LongTime)
I tried aggregating the dataset directly in the footer but this is not possible and causes errors.
I came up with a different solution to the one suggested in the article.
Instead of adding hidden textboxes to my body, I created two global hidden parameters. I set the default value using the "From Query" for those parameters to the datasets I needed. I then referenced those two new global parameters instead of the textboxes.
This fixed my issue.

export to excel from asp.net value converts to date

I am exporting some values from datagrid to excel. My problem is values like 2-3, 3-4 is converted in to date format - 3-Feb,4-March etc.
Please advice how to fix this? I tried setting the column format to text only but it is not working.
Regards
V
Inside the grid rowdatabound function you have to set the format of the cells as below
e.Row.Cells(4).Attributes.Add("style", "vnd.ms-excel.numberformat:#")

Resources