hide footer in excel export

Stimulsoft Reports.NET discussion
Post Reply
chiara
Posts: 13
Joined: Tue Jul 15, 2014 7:31 am

hide footer in excel export

Post by chiara »

Hi,
we want to save report in excel without print footer, but we need footer when we save pdf file.
How can we do?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hide footer in excel export

Post by Alex K. »

Hello,

Can you please describe your task in more details.

Thank you.
chiara
Posts: 13
Joined: Tue Jul 15, 2014 7:31 am

Re: hide footer in excel export

Post by chiara »

Hi,
We have uploaded a sample file.
In the excel file page's header,table's header and footer are duplicated(see sheet now).
We would like to have an excel file with a single table with all data(see sheet report)
We would like the pdf file with the current structure
Thanks
Attachments
Report.zip
(15.45 KiB) Downloaded 207 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hide footer in excel export

Post by Alex K. »

Hello,

Please try to use the "Use One Page Header and Footer" option for the Excel exprot.

Thank you.
Attachments
Capture.PNG
Capture.PNG (37.52 KiB) Viewed 2511 times
chiara
Posts: 13
Joined: Tue Jul 15, 2014 7:31 am

Re: hide footer in excel export

Post by chiara »

Thanks!
In italian translation there is "Use header and footer for all pages"
Can we set this option by code?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hide footer in excel export

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

StiExcel2007ExportSettings es = new StiExcel2007ExportSettings();
es.UseOnePageHeaderAndFooter = true;
report.ExportDocument(StiExportFormat.Excel2007, "path", es);
Thank you.
Post Reply