-3

Good morning.

I have a test.html file. I would like to convert into test.xlsx using php. Now, I could create test.xls file using php, whereas it is having only html tags due to that this file could not open directly in excel and it shows extension error. so if the file is having test.xlsx format gets opened smoothly. I did not know that how to proceed further to get an expected results. Please help if possible. Thanks in advance. Best regards, Balraj

Shadow
  • 33,525
  • 10
  • 51
  • 64
  • 1
    Out of curiosity, have you tried to google the search expression: php generate excel? The results would surely get you started. – Shadow May 03 '17 at 05:27
  • Check the help section for how to ask a question, and what types of questions are allowed on Stack Overflow. – Sloan Thrasher May 03 '17 at 05:29
  • 1
    Just see http://stackoverflow.com/questions/10595599/which-is-the-best-way-to-generate-excel-output-in-php – Shadow May 03 '17 at 05:30
  • 1
    Possible duplicate of [Which is the best way to generate excel output in PHP?](http://stackoverflow.com/questions/10595599/which-is-the-best-way-to-generate-excel-output-in-php) – orvi May 03 '17 at 06:38

1 Answers1

0

Use PHPExcel_Reader_HTML function of PHPExcel

makoy
  • 1