Is there any way for print a XML or TXT file from browser? I have a thermal printer and I want to send one of this format from browser with javascript. Usually, the browser dirty the file and the printer doesn't recognize the format.
Many thanks in advance,
I'm not sure about what you want but we can use the window.print() function to open the print dialog for the user.
For exemple you can open your xml file in a new window and then use window.print().
I hope it helps you.