Concatenate data

Stimulsoft Reports.NET discussion
StixStax
Posts: 46
Joined: Wed Aug 12, 2015 9:41 am

Re: Concatenate data

Post by StixStax »

Hey,

there is nothing attached,
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Concatenate data

Post by HighAley »

Hello.

Sorry, here is the report template.
Report.mrt
(13.25 KiB) Downloaded 204 times
Thank you.
StixStax
Posts: 46
Joined: Wed Aug 12, 2015 9:41 am

Re: Concatenate data

Post by StixStax »

Hey,

it works like a charm. Great job.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Concatenate data

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.
StixStax
Posts: 46
Joined: Wed Aug 12, 2015 9:41 am

Re: Concatenate data

Post by StixStax »

Sorry I'm bothering you again.

Is it possible to add another Text from another datasource to the Joined String? For example add the ID to the country? In the attached template all ID's are added at the end of all Countries.
Desired Output:
Aufghanistan: 1, Albania: 2, Algeria: 3 ....

I would appreciate any help.
Attachments
Report (1).mrt
(13.52 KiB) Downloaded 183 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Concatenate data

Post by Alex K. »

Hello,

Please try to use the following code instead JoinColumnContent() function:

Code: Select all

foreach (Stimulsoft.Report.Dictionary.StiRow row in DataSource1.Rows)
{
    ConcatCountry = ConcatCountry + row["CountryName"].ToString() + ":" + row["CountriesID"].ToString() + ",";
}
Thank you.
canny
Posts: 6
Joined: Wed Sep 12, 2018 3:02 pm

Re: Concatenate data

Post by canny »

Hello,

How can i Concatenate data with different style like this:

"Hello, MyName"
that:
"Hello," with Arial font
and
"MyName" with Courier font

Thank you.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Concatenate data

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
canny
Posts: 6
Joined: Wed Sep 12, 2018 3:02 pm

Re: Concatenate data

Post by canny »

Hello,

for example: Can i concatenate two TextBox with different style?
or
Concatenate data like this picture?
Sample.png
Sample.png (13.44 KiB) Viewed 2916 times
Very Thanks.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Concatenate data

Post by Lech Kulikowski »

Hello,

You can use HTML tags to apply different styles in one text component.

Thank you.
Post Reply