unexpected line break when exporting docx file

Stimulsoft Reports.NET discussion
Post Reply
ethan.shi
Posts: 24
Joined: Mon Apr 22, 2013 2:53 am

unexpected line break when exporting docx file

Post by ethan.shi »

Hi,

There is no breaker in mrt file, but there is an unexpected line break in eported docx file.

And actually the whole paragragh seems to be splited into 2 table block?

Can you help?

thanks.
Attachments
cap2.JPG
cap2.JPG (74.19 KiB) Viewed 3227 times
cap1.jpg
cap1.jpg (59.17 KiB) Viewed 3227 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: unexpected line break when exporting docx file

Post by HighAley »

Hello.

The report is exported to Word 2007 format in table mode.
Please, set the rtfparagraph to this text component. You could read more about this in our User Manual
You could also try to use RTF export and set there Frame Mode.

Thank you.
ethan.shi
Posts: 24
Joined: Mon Apr 22, 2013 2:53 am

Re: unexpected line break when exporting docx file

Post by ethan.shi »

Aleksey Andreyanov wrote:Hello.

The report is exported to Word 2007 format in table mode.
Please, set the rtfparagraph to this text component. You could read more about this in our User Manual
You could also try to use RTF export and set there Frame Mode.

Thank you.
Hi, Aleskey,

I set the rtfparagraph to this richtext component, the text is not in table cell now,

but there is still unexpected line break in the paragraph.

can you help?

Here is the code when i exporting document.

Code: Select all

            report.Render(false);

            StiWord2007ExportService service = new StiWord2007ExportService();
            StiWord2007ExportSettings settings = new StiWord2007ExportSettings();
            settings.UsePageHeadersAndFooters = true;
            FileStream filestream = File.Create(strOutputFilePath);
            service.ExportWord(report, filestream, settings);
            filestream.Close();
Attachments
cap.jpg
cap.jpg (82.09 KiB) Viewed 3209 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: unexpected line break when exporting docx file

Post by HighAley »

ethan.shi wrote:but there is still unexpected line break in the paragraph.
Please, try to set properies of the page UnlimitedHeight=true and UnlimitedBreakable=false.
ethan.shi wrote:Here is the code when i exporting document.

Code: Select all

            report.Render(false);

            StiWord2007ExportService service = new StiWord2007ExportService();
            StiWord2007ExportSettings settings = new StiWord2007ExportSettings();
            settings.UsePageHeadersAndFooters = true;
            FileStream filestream = File.Create(strOutputFilePath);
            service.ExportWord(report, filestream, settings);
            filestream.Close();
Could you clarify what product do you use?

Thank you.
ethan.shi
Posts: 24
Joined: Mon Apr 22, 2013 2:53 am

Re: unexpected line break when exporting docx file

Post by ethan.shi »

Aleksey Andreyanov wrote:Please, try to set properies of the page UnlimitedHeight=true and UnlimitedBreakable=false.
It works, the break of this paragraph is OK,
but when set UnlimitedHeight=true, the pagefooter disappered...

How can I get the pagefooter back?

thanks!
Aleksey Andreyanov wrote:Could you clarify what product do you use?

Thank you.
my version is Stimulsoft Reports.Ultimate 2013.1
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: unexpected line break when exporting docx file

Post by HighAley »

Hello.

Could you send us your report template with sample data which reproduces the issue?

Thank you.
ethan.shi
Posts: 24
Joined: Mon Apr 22, 2013 2:53 am

Re: unexpected line break when exporting docx file

Post by ethan.shi »

Aleksey Andreyanov wrote:Hello.

Could you send us your report template with sample data which reproduces the issue?

Thank you.
hi,Aleksey

Please find it in the attachment.

Thanks!
Attachments
Export.zip
(201.56 KiB) Downloaded 250 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: unexpected line break when exporting docx file

Post by Ivan »

Hello,
ethan.shi wrote:It works, the break of this paragraph is OK,
but when set UnlimitedHeight=true, the pagefooter disappered...
We made some improvements in that direction.
Please check the next prerelease build when it will be available and let us know about the result.

Thank you.
ethan.shi
Posts: 24
Joined: Mon Apr 22, 2013 2:53 am

Re: unexpected line break when exporting docx file

Post by ethan.shi »

Ivan wrote:Hello,
ethan.shi wrote:It works, the break of this paragraph is OK,
but when set UnlimitedHeight=true, the pagefooter disappered...
We made some improvements in that direction.
Please check the next prerelease build when it will be available and let us know about the result.

Thank you.
Hi, Ivan

Thank you!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: unexpected line break when exporting docx file

Post by Andrew »

Hello,

Have a nice day!
Post Reply