Multi line header using phpspreadsheetPhpOfficePhpSpreadsheetSpreadsheet won't display dataHow to set position of Data Labels in phpspreadsheet chartExport dynamic array to Excel PHPSpreadsheetConverting from excel to pdf in PHPSpreadsheet without ruining design/styleSeparate While statements or SQL queries for multi-sheet PHPSpreadsheet?How to avoid Excel “bad format error” when saving spreadsheetRead Xlsx file in PhpSpreadsheetHow do I convert excel file to pdf filePhpSpreadsheet without composer. “use” doesn't work in php filePHPSpreadsheet: Scale must be greater than or equal to 1

Why is participating in the European Parliamentary elections used as a threat?

Is there a RAID 0 Equivalent for RAM?

Why do Radio Buttons not fill the entire outer circle?

Grepping string, but include all non-blank lines following each grep match

Origin of pigs as a species

How were servants to the Kaiser of Imperial Germany treated and where may I find more information on them

How to test the sharpness of a knife?

How to preserve electronics (computers, iPads and phones) for hundreds of years

How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?

Personal or impersonal in a technical resume

Limit max CPU usage SQL SERVER with WSRM

Does Doodling or Improvising on the Piano Have Any Benefits?

Echo with obfuscation

What happens if I try to grapple mirror image?

Would this string work as string?

El Dorado Word Puzzle II: Videogame Edition

Can I run 125kHz RF circuit on a breadboard?

How to make a list of partial sums using forEach

How to write Quadratic equation with negative coefficient

How to understand "he realized a split second too late was also a mistake"

How do I tell my boss that I'm quitting in 15 days (a colleague left this week)

Can I cause damage to electrical appliances by unplugging them when they are turned on?

Giving feedback to someone without sounding prejudiced

Should I warn a new PhD Student?



Multi line header using phpspreadsheet


PhpOfficePhpSpreadsheetSpreadsheet won't display dataHow to set position of Data Labels in phpspreadsheet chartExport dynamic array to Excel PHPSpreadsheetConverting from excel to pdf in PHPSpreadsheet without ruining design/styleSeparate While statements or SQL queries for multi-sheet PHPSpreadsheet?How to avoid Excel “bad format error” when saving spreadsheetRead Xlsx file in PhpSpreadsheetHow do I convert excel file to pdf filePhpSpreadsheet without composer. “use” doesn't work in php filePHPSpreadsheet: Scale must be greater than or equal to 1













0















I insert multi line header using phpspreadsheet. Then, I save as xlsx file. I use convertapi to convert the xlsx file to pdf. In pdf, only header line one only aligned to center.



$spreadsheet->getActiveSheet()->getHeaderFooter()->
setOddHeader('&C&BFirstLine
SecondLine
ThirdLine');


How to make three lines also aligned to center?
Thanks in advance.










share|improve this question




























    0















    I insert multi line header using phpspreadsheet. Then, I save as xlsx file. I use convertapi to convert the xlsx file to pdf. In pdf, only header line one only aligned to center.



    $spreadsheet->getActiveSheet()->getHeaderFooter()->
    setOddHeader('&C&BFirstLine
    SecondLine
    ThirdLine');


    How to make three lines also aligned to center?
    Thanks in advance.










    share|improve this question


























      0












      0








      0








      I insert multi line header using phpspreadsheet. Then, I save as xlsx file. I use convertapi to convert the xlsx file to pdf. In pdf, only header line one only aligned to center.



      $spreadsheet->getActiveSheet()->getHeaderFooter()->
      setOddHeader('&C&BFirstLine
      SecondLine
      ThirdLine');


      How to make three lines also aligned to center?
      Thanks in advance.










      share|improve this question
















      I insert multi line header using phpspreadsheet. Then, I save as xlsx file. I use convertapi to convert the xlsx file to pdf. In pdf, only header line one only aligned to center.



      $spreadsheet->getActiveSheet()->getHeaderFooter()->
      setOddHeader('&C&BFirstLine
      SecondLine
      ThirdLine');


      How to make three lines also aligned to center?
      Thanks in advance.







      phpspreadsheet convertapi






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 5 at 6:49







      Premlatha

















      asked Mar 5 at 6:39









      PremlathaPremlatha

      419




      419






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Enter after every line of header without space. It could display header in three lines and all three lines aligned to center. The &C&B(center and bold formatting) worked for three lines perfectly.



           $spreadsheet->getActiveSheet()->getHeaderFooter()->setOddHeader('&C&BFirstLine
          SecondLine
          ThirdLine');





          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54996799%2fmulti-line-header-using-phpspreadsheet%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Enter after every line of header without space. It could display header in three lines and all three lines aligned to center. The &C&B(center and bold formatting) worked for three lines perfectly.



             $spreadsheet->getActiveSheet()->getHeaderFooter()->setOddHeader('&C&BFirstLine
            SecondLine
            ThirdLine');





            share|improve this answer



























              0














              Enter after every line of header without space. It could display header in three lines and all three lines aligned to center. The &C&B(center and bold formatting) worked for three lines perfectly.



               $spreadsheet->getActiveSheet()->getHeaderFooter()->setOddHeader('&C&BFirstLine
              SecondLine
              ThirdLine');





              share|improve this answer

























                0












                0








                0







                Enter after every line of header without space. It could display header in three lines and all three lines aligned to center. The &C&B(center and bold formatting) worked for three lines perfectly.



                 $spreadsheet->getActiveSheet()->getHeaderFooter()->setOddHeader('&C&BFirstLine
                SecondLine
                ThirdLine');





                share|improve this answer













                Enter after every line of header without space. It could display header in three lines and all three lines aligned to center. The &C&B(center and bold formatting) worked for three lines perfectly.



                 $spreadsheet->getActiveSheet()->getHeaderFooter()->setOddHeader('&C&BFirstLine
                SecondLine
                ThirdLine');






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 7 at 2:44









                PremlathaPremlatha

                419




                419





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54996799%2fmulti-line-header-using-phpspreadsheet%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    1928 у кіно

                    Захаров Федір Захарович

                    Ель Греко