Page 1 of 1

Export data in single line

Posted: Mon Jan 26, 2015 3:39 pm
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.

Re: Export data in single line

Posted: Tue Jan 27, 2015 10:18 am
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.

Re: Export data in single line

Posted: Tue Jan 27, 2015 11:24 am
by VaDRo
Aleksey, thank you for your answer.
Please, explain me: how can i export report to string?

Re: Export data in single line

Posted: Tue Jan 27, 2015 1:16 pm
by VaDRo
I just found answer for my question, sorry
report.savetostring();

Re: Export data in single line

Posted: Tue Jan 27, 2015 1:36 pm
by HighAley
Hello.

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

Thank you.