Export data in single line

Stimulsoft Reports.NET discussion
Post Reply
VaDRo
Posts: 25
Joined: Mon Dec 15, 2014 5:47 pm

Export data in single line

Post by VaDRo »

Hello!

I have simple report with header, data and footer. In some cases i need to export this report in text file. But this text file should contain all data from all bands in single line. For example report like this:
Report Header
Some Data 1
Some Data 2
Report Footer
should be exported to text file with single line:
Report HeaderSome Data 1Some Data 2Report Footer
How can I solve this task with Stimulsoft?

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export data in single line

Post by HighAley »

Hello.

As a way you could export the report to string and then replace all newline symbols with space.
Other way is to redesign your report template and use Cross-Header, Cross-Data and Cross-Footer bands.

Thank you.
VaDRo
Posts: 25
Joined: Mon Dec 15, 2014 5:47 pm

Re: Export data in single line

Post by VaDRo »

Aleksey, thank you for your answer.
Please, explain me: how can i export report to string?
VaDRo
Posts: 25
Joined: Mon Dec 15, 2014 5:47 pm

Re: Export data in single line

Post by VaDRo »

I just found answer for my question, sorry
report.savetostring();
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export data in single line

Post by HighAley »

Hello.

Yes, you could use the SaveToString method.
Let us know if you need any additional help.

Thank you.
Post Reply