Problem with page break in export to Word 2007
-
- Posts: 3
- Joined: Wed Oct 03, 2012 8:04 am
Problem with page break in export to Word 2007
Hi
I have a report containing 3 pages
second page's content is shorter than page's height.
in viewer all looks good, but when i export report to word 2007
3-rd page comes under the second page, i need to start the 3-rd page content with new page.
How can i do this ?
I have a report containing 3 pages
second page's content is shorter than page's height.
in viewer all looks good, but when i export report to word 2007
3-rd page comes under the second page, i need to start the 3-rd page content with new page.
How can i do this ?
Re: Problem with page break in export to Word 2007
Hello.
Please, try to disable the Remove empty space at bottom of the page option in the Word Export Settings.
Thank you.
Please, try to disable the Remove empty space at bottom of the page option in the Word Export Settings.
Thank you.
-
- Posts: 3
- Joined: Wed Oct 03, 2012 8:04 am
Re: Problem with page break in export to Word 2007
Thanks for Your answer.
And one more question please. Where is the Word Export Settings ?
And one more question please. Where is the Word Export Settings ?
Re: Problem with page break in export to Word 2007
Hello.
You need to add your own method, for example:
Then you can use this method in the PageLoad event:
or add property for the StiWebViewer on the aspx-page:
If it will not help you, please, write us how do you export. If by code then send us this code.
Thank you.
You need to add your own method, for example:
Code: Select all
public void SetExportProperty(object sender, StiExportDataEventArgs args)
{
if (args.Settings is StiWord2007ExportSettings)
{
(args.Settings as StiWord2007ExportSettings).RemoveEmptySpaceAtBottom = false;
}
}
Code: Select all
StiWebViewer1.ReportExport += new Stimulsoft.Report.Web.StiExportDataEventHandler(SetExportProperty);
Code: Select all
<cc1:StiWebViewer ID="StiWebViewer1" runat="server" Width="800px" RenderMode="AjaxWithCache" OnReportExport="SetExportProperty"/>
Thank you.
-
- Posts: 3
- Joined: Wed Oct 03, 2012 8:04 am
Re: Problem with page break in export to Word 2007
Working 
Thanks !!!

Thanks !!!
Re: Problem with page break in export to Word 2007
Hello,
Perfect!
Thank you.
Perfect!
Thank you.