1 Reply Latest reply: Jul 1, 2008 1:17 PM by 807601 RSS

    PRINTING  A .tif FILE  TO THE PRINTER USING JAVA CODE

    807601
      I WROTE A CODE FOR PRINTING THE FILE .ITS PRINTING ALL FORMAT ,BUT WHEN I GIVE THE EXTENSION AS .tiff ,IT SHOWS IN A POP-UP THAT "PRINNTING FAILED"

      CAN ANYONE SEND ME THE CODE FOR PRINTING .tif FILE?
        • 1. Re: PRINTING  A .tif FILE  TO THE PRINTER USING JAVA CODE
          807601
          AMARSHI wrote:
          I WROTE A CODE FOR PRINTING THE FILE .ITS PRINTING ALL FORMAT ,BUT WHEN I GIVE THE EXTENSION AS .tiff ,IT SHOWS IN A POP-UP THAT "PRINNTING FAILED"

          CAN ANYONE SEND ME THE CODE FOR PRINTING .tif FILE?
          YOU CANNOT PRINT A TIFF DIRECTLY FROM JAVA SINCE IT WILL NOT LOAD A TIFF!!! YOU HAVE TO USE JAVA ADVANCED IMAGINING TO GET THE FILE TO LOAD AND THERE ARE EXAMPLES ON HOW TO DO THAT IN THE JAI LIBRAIRY. ONCE YOU CAN GET THE TIFF TO LOAD YOU CAN USE WHAT EVER YOU HAVE NOW TO PRINT IT, THERE ISN'T ANY MAGIC, YOU JUST HAVE TO HAVE THE IMAGE LOADED FIRST.