Concatenate number with string in RDLC report - c#

I am using the chart in the RDLC report. I want to Concatenate the "¥" sign with values in X-axis as shown in the below image.
How I can do this?
Thanks in advance...

Finally got the answer, this works for me.
Steps:
right click on x-Axis and go to the Properties
go to properties - number
select custom options & use this expression "¥"#,0

To easily concatenate,right-click to get to the expression phase and type
= "¥" & Fields!ColName.Value
This should work

Related

TabStops definitions does not work in PdfSharp

I am fighting with tab stops in PdfSharp but none I have tried worked.
I have finally this code:
Paragraph para = row.Cells[0].AddParagraph();
para.AddText(att.EventDate.ToString("ddd").Substring(0, 2).ToUpper());
para.Format.TabStops.ClearAll();
para.Format.TabStops.AddTabStop("0.3mm");
para.AddTab();
para.AddText(att.EventDate.ToString("dd/MM/yyyy"));
The calling to AddTab adds a normal tab, not the one I have defined.
Any help will be appreciated
Thanks
Jaime
EDIT:
what I need to achieve is to format a date with the 2 letters day name, for example, "MO dd/mm/yyyy". I need to use tabstops because I need all dates to be aligned, considering that day names will vary in width depending on the letters. 3 mm is good enough to achieve this.
Never mind... I have placed 2 column tables inside the date cells. That way I could align perfectly the way I want.
Cheers
Jaime

C# Replacement String

Hi To All Good Programmers,
I am developing a web-based app in which I need to generate some kind of reports. To do that, I prefer to use .rdlc embedded in VS 2010. There is a report named 'AccountReport' in which table rows are grouped according to some field of the table and it works fine.
The Problem: I need to add the Sum of a column as the last record of each group, the Sum is not a field of database table.. So How can I group it?
Here is a snap shot of what I need as the result. I have it already except the last record(row).
How Can I rich the 'Total' Record? It is grouped by the 'Current Asset'. This image is prepared using MS Word of course.
Any Idea pleas?
You need to use the Sum Function of Visual Studio Report Designer. Add a row in your report to show the total. Use the SUM function with your desired columnn name to set the expression. Check this answer for step by step pictorial details Sum of Column Values in rdlc report.
See similar question here

telerik report chart percentage

how can i get similar result on Telerik Report with showing percentage instead of the Count value that is shown by default.
i'm using C# in my application.
thanks
This is how it looks in my app
<telerik:PieSeriesDefinition AxisName="YourName"
ShowItemLabels="True"
ItemLabelFormat="#%{P0}"
RadiusFactor="0.7">
The key here is the ItemLabelFormat with RadiusFactor you can move it as far as you want from the center
Forgot to add this to the answer as well. Inside ChartDefaultView.ChartArea add this
<telerik:ChartArea.AxisY>
<telerik:AxisY AxisName="YourName" DefaultLabelFormat="#VAL{p}"/>
</telerik:ChartArea.AxisY>

Showing report in Report Viewer based on conditions?

I am using ASP.NET/C#.Currently I am displaying simple Report following this tutorial.
In this tutorial they just selected the fields to display and it displayed the Reports.
What about Reports based on some conditions?
How can I show reports based on conditions?
Example:
Show the details of Employees whose name begins with 'A'.
I hope I am able to explain my question.
Can anyone help me to do this?
Any suggestions are welcome.
Do you mean something like this?
ReportDataSource rds0 = new ReportDataSource("DataSetNameDefinedInReport", data);
this.reportViewer1.LocalReport.ReportPath = #"Reportname.rdlc";
this.reportViewer1.LocalReport.DataSources.Add(rds0);
//show report!
this.reportViewer1.RefreshReport();
The "data" in my case is a generic List of custom objects
Reports take parameters. You can set these to filter out the data.
This set of tutorials should get you started: Adding Parameters to reports

Use two font in one expression in rdlc report

I have a report that it has one expression.In this expression I want to use two different font. For example I want to write "Hello. My name is Tavousi.". That Tavousi is in other font.
Note that I want to use ONE expression.
How to I can do this?
with Report Viewer 2010, AFAIK a TextBox with one expression, can only have one text format.
An alternative is to use a Table from the Toolbox.
each cell in the table can have its own expression, and also its own text formatting.
Tip: if a row is empty, then set the Visibility condition for the whole row, to make sure that it does not take up whitespace.

Categories

Resources