Good all the time of the day gentlemen

There is a file doc/docx/xls/xlsx on the hosting, everything is already fixed there, you just need to print. Here sadness, sadness, trouble begins ... in PHPWord / PHPExcel did not find this, they try to decompose these files to xml and print on the Internet .. The only way is to save the file and print

Tell me how to print an existing file on a hosting using PHP? So I went to the page I needed on the site, click print - and went to print (printer selection, etc ...), but printing is not a page from an Internet, namely, doc/docx/xls/xlsx document

  • download it will have to. Browsers are not yet so integrated. Pdf they already open within themselves. But with the php script, start printing the office document to the user's printer ... it will be difficult. - KoVadim

1 answer 1

You can implement get file content somewhere, which will, through GET, select the desired file and print it.

  • Of course, I have increased the optimism, but I’d see the implementation. He himself was already so disappointed that I was thinking about expanding to the browser, that there is a 'trouble-sadness ..' - sergey
  • In a week I will implement a similar task. I will report the results;) - Maxim Creative