Wednesday, October 5, 2022

[FIXED] How to send Excel document to the printer in PHP?

Issue

I created Excel document with phpexcel library. But I could not printed with printer. How can I send this document to printer with phpexcel or PHP or JavaScript?


Solution

Short answer: You can't. All you do with PHPExcel is to actually write a file to the File-System. Sending a Print-Request to the printer needs to be done by excel and thus by the user himself.



Answered By - David Losert
Answer Checked By - Mary Flores (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.