
$logo = new PHPExcel_Worksheet_HeaderFooterDrawing() This is what I'm doing so far: _spreadsheet->getActiveSheet() //_spreadsheet is an instance of PHPExcel For the first page, I want a similar header (same logo and same date & user text) but with some added information (title and parameters of the file centered a couples lines later).
To see the final result, go to print view and the picture in the header will appear at the top of each page you print.I have an Excel file made with PHPExcel which have an header with a left aligned logo and right aligned date & user text. The picture appears in the cell you selected. Choose Upload, then Browse to upload the picture you want to insert. In the Menu, go to Insert > Image > Image in cell. Now, you have your “header.” Select cell A1 (or wherever you want to insert your picture). Select a cell in the first row, then in the Menu, go to View > Freeze > 1 row. In Google Sheets, you can’t insert a picture in the header, but you can use a workaround by freezing the first row, which will then serve as header. Insert Picture Into Header in Google Sheets When you import your picture, it’s inserted in the header. Choose where you want to import your picture from. When you click on Picture, the Insert Pictures box will appear.
In the Ribbon go to Header & Footer > Picture (from Header & Footer Elements). Select the header box where you want to insert a picture.
Now that the header is created, it’s time to insert a picture.
You see three boxes at the top of the page.The central box is selected by default, but if you wish the header to appear in the top right or top left corner of the page, click the right or left box and enter information there.
Click on the Insert tab and choose Header & Footer from the Text group. To insert a header in Excel, follow these steps: This tutorial shows how to insert a picture into the header or footer in Excel and Google Sheets.