Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PHP_XLSXWriter
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 101
    • Issues 101
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mk-j
  • PHP_XLSXWriter
  • Issues
  • #326
Closed
Open
Issue created Jun 29, 2022 by kueblertgb@kueblertgb

Define 2 Header in one Sheed is not possible

Hi, i tryed to Create this kind of Excel Sheed

FB | Anzahl 1 | 5 2 | 7


Summe 12

If i try to use the Header Funktion for the first line everything is fine

$header1 = array( 'FB'=>'integer','Anzahl'=>'integer'); $Mappe1 = 'Professoren'; $writer->writeSheetHeader($Mappe1, $header1); Then comes the Data (numers) output At the end of the line i wanted to ad a total (Summe).

$prof_summe = array( 'Summe',$alle_daten_prof_fb_summe[0]['Summe'] ); $writer->writeSheetRow( $Mappe1, $prof_summe);

But this creates an error because 'Summe' is an text Field and it is in the Colum 'FB'. In the head statement i defined the Colum 'FB' as integer.

So try to define a second Head for the $Mappe1 but this creates an other error. There is a solution without the Head statemend but i wanted to us it because of the Filter possibilities.

Dou you have a soulution for me?

Assignee
Assign to
Time tracking