Is there a straightforward way to read a .jpeg file and output it straight to a local printer? The file is a little too large to display at full size on the browser. I show it at reduced size but I would like to give the user a "Print" button that will print at full size. Don't want to print the page, just the image. I have not been able to get this to work.

    That's because the browser and printer is not (necessarily) located where your server is located, and you do not (necessarily) have access to the user's printer. The user, however, does. But if he's to tell his browser to print something, then the browser must have that something, which means sending the whole picture to the browser, so the browser can send it to the printer.
    You could of course show a smaller sized picture in, what you refer to as "the page", and create a link for it that opens in a new window, showing nothing but the picture. If the user then wants sto print it, it's easily done from the browser.

    If your server does have (direct) access to the printer over the network, then you can of course communicate with the printer directly, and I'd guess it's possible to find out what the communiation protocol looks like by googling.

      Write a Reply...