mk-j / PHP_XLSXWriter

Lightweight XLSX Excel Spreadsheet Writer in PHP
MIT License
1.84k stars 665 forks source link

Add support for header and footer with some tags available #277

Open artnum opened 4 years ago

artnum commented 4 years ago

Header and footer for printing can be set via new setHeaderFooter function. It allows to specify tags like filename, path, date, time, page number, pages count and tab name. Tested with Office 360.

fraeggel1 commented 1 year ago

Hello,

can not find the function "setHeaderFooter" in the currently file xlsxwriter.class.php. Was it removed again?

Thanks

sayid commented 1 year ago

您好,我已经收到您的信件,将尽快回复您。

artnum commented 1 year ago

can not find the function "setHeaderFooter" in the currently file xlsxwriter.class.php. Was it removed again?

This pull request has not been merged yet.

fraeggel1 commented 1 year ago

Hello,

I found everything and it works so far. How can I write a different header for each sheet?

public function setHeaderFooter($sheet_name, $pos, $content, $footer = false) ?

thanks

artnum commented 1 year ago

It would be possible to set different header/footer for odd and even sheet as far as I know.