You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
First things first, thanks for this nice and fast Excel writer. With a few lines of code it'll be easy to add a few properties to the workbook, like this:
class ExportDataExcel extends ExportData {
...
public$encoding = 'UTF-8'; // encoding type to specify in file. // Note that you're on your own for making sure your data is actually encoded to this encodingpublic$title = 'MyReport'; // title for Workbookpublic$subject = 'MySubject'; // subject for Workbook public$author = 'Me!'; // authorpublic$company = 'MyCompany'; // companypublic$sheet_title = 'Sheet1'; // title for Worksheet (i'verenamed it)function generateHeader() {
// workbook header$output = stripslashes(sprintf(self::XmlHeader, $this->encoding)) . "\n";
// set up summary properties$output .= stripslashes("<DocumentProperties xmlns=\"urn:schemas-microsoft-com:office:office\">\n");
$output .= "<Title>".htmlentities($this->title)."</Title>\n";
$output .= "<Subject>".htmlentities($this->subject)."</Subject>\n";
$output .= "<Author>".htmlentities($this->author)."</Author>\n";
$output .= "<Company>".htmlentities($this->company)."</Company>\n";
$output .= "</DocumentProperties>\n";
// Set up styles...followed by the rest of your code...
Like I said, easy to integrate. Feel free to use it in your code!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First things first, thanks for this nice and fast Excel writer. With a few lines of code it'll be easy to add a few properties to the workbook, like this:
Like I said, easy to integrate. Feel free to use it in your code!
The text was updated successfully, but these errors were encountered: