Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: lpr command  (Read 3163 times)

0 Members and 1 Guest are viewing this topic.

smaftei

  • Guest
lpr command
« on: November 04, 2010, 12:27:57 PM »
Hello,

I do not have very much knowledge about DOS, but I have been reading. I am trying to use the lpr command to print a pdf document, but is there a way I could incorporate the lpr command in my webpage so when the user clicks print it will execute that command? Or do you have a better recommendation to use the lpr command with a more user friendly than command prompt?

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: lpr command
« Reply #1 on: November 04, 2010, 01:56:41 PM »
Do you want a visitor to go to a web page and print that page?
If so, you can not just use a DOS command. You don't know what OS he has. Maybe he is using an Apple, not DOS.
In JavaScript you can print a page.
Print a Web Page Using JavaScript
Of course, that is not for a PDF file.