Need help printing tiff files

I have written some code that prints any file that can be opened using JAI and the ImageIO Tools. The code works good for me but I have some special cases where I am having some difficulty. Some files I need to print are TIFF files with many pages. Some are compressed using Fax Group 4 encoding and others are compressed using OLD jpeg-in-tiff. I can read and print the files just fine, but it takes about 2 seconds to print each page. Also the spooling data for 88 pages is 900 MB in size. Printing the same files using IrfanView takes <1 seconds and the spool file is much smaller (equivalent to the size of the uncompressed tiff) The speed and size issues are problems for me because I am working on a print web service. My code to render each page is below. So far I have tried rendering hints and such to increase speed, but I think the problem is that when I read the image it takes up a lot of space in memory.
Here is the overall requirements for what I am doing: A use will request that the server print a set of files (mixed image formats, restricted to TIFF, JPEG, and GIF) be printed to specific printer as a single print job. They can specify copies and collation only. The service will open each file in order and send its data to the printer. I have created a custom class that implements the Printable interface to handle the multiple files. The class below is created for each file and handles the printing of the image file.
I am using JDK 1.4.2 and WebSphere. I am stuck with these options b/c I have to use some IBM API's (IBM Content Manager 8.3) that are not compatible with 1.5 or higher.
Is there any way to speed up my code. Possibly load the image differently?
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.imageio.ImageReader;
import javax.imageio.stream.FileImageInputStream;
import javax.imageio.stream.ImageInputStream;
public class ImagePrinter2 implements Printable
   public static final int PAPER_SIZE_LETTER = 0;
   public static final int PAPER_SIZE_LEGAL = 1;
   private final ImageReader reader;
   private final int _pageCount;
   private final File imageFile;
   private int _pageOffset;
   public ImagePrinter2(File imageFile) throws IOException
      this.imageFile = imageFile;
      ImageInputStream fis = new FileImageInputStream(this.imageFile);
      reader = (ImageReader) ImageIO.getImageReaders(fis).next();
      reader.setInput(fis);
      _pageCount = reader.getNumImages(true);
   public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
      throws java.awt.print.PrinterException
      BufferedImage image = null;
      int currentPage = pageIndex - getPageOffset();  //pageIndex is for the overall job, I need the page in this file
      int imgWidth = 0, imgHeight = 0;
      int drawX = 0, drawY = 0;
      double scaleRatio = 1;
      try
         image = reader.read(currentPage);
         imgWidth = image.getWidth();
         imgHeight = image.getHeight();
      catch (IndexOutOfBoundsException e)
         return NO_SUCH_PAGE;
      catch (IOException e)
         throw new PrinterException(e.getLocalizedMessage());
      if (imgWidth > imgHeight)
         pf.setOrientation(PageFormat.LANDSCAPE);
      else
         pf.setOrientation(PageFormat.PORTRAIT);
      Graphics2D g2 = (Graphics2D) g;
      g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED);
      g2.translate(pf.getImageableX(), pf.getImageableY());
      g2.setClip(0, 0, (int) pf.getImageableWidth(), (int) pf.getImageableHeight());
      scaleRatio =
         (double) ((imgWidth > imgHeight)
            ? (pf.getImageableWidth() / imgWidth)
            : (pf.getImageableHeight() / imgHeight));
      //check the scale ratio to make sure that we will not write something off the page
      if ((imgWidth * scaleRatio) > pf.getImageableWidth())
         scaleRatio = (pf.getImageableWidth() / imgWidth);
      else if ((imgHeight * scaleRatio) > pf.getImageableHeight())
         scaleRatio = (pf.getImageableHeight() / imgHeight);
      //center image
      if (scaleRatio < 1)
         drawX = (int) ((pf.getImageableWidth() - (imgWidth * scaleRatio)) / 2);
         drawY = (int) ((pf.getImageableHeight() - (imgHeight * scaleRatio)) / 2);
      else
         drawX = (int) (pf.getImageableWidth() - imgWidth) / 2;
         drawY = (int) (pf.getImageableHeight() - imgHeight) / 2;
      AffineTransform at = AffineTransform.getTranslateInstance(drawX, drawY);
      if (scaleRatio < 1)
         at.scale(scaleRatio, scaleRatio);
      g2.drawRenderedImage(image, at);
      g2.dispose();
      image = null;
      return PAGE_EXISTS;
    * <br><br>
    * Created By: TSO1207 - John Loyd
    * @since version XXX
    * @return
   public int getPageCount()
      return _pageCount;
    * <br><br>
    * Created By: TSO1207 - John Loyd
    * @since version XXX
    * @return
   public int getPageOffset()
      return _pageOffset;
    * <br><br>
    * Created By: TSO1207 - John Loyd
    * @since version XXX
    * @param i
   protected void setPageOffset(int i)
      _pageOffset = i;
      * Release the reader resources
      * <br><br>
      * Created By: TSO1207 - John Loyd
      * @since version XXX
   public void destroy()
          try
               ((ImageInputStream) reader.getInput()).close();
          catch (Exception e)
          reader.reset();
      reader.dispose();
    * Helps release memory used when printing (seems to be a 1.4.2 thing)
    * <br><br>
    * Created By: TSO1207 - John Loyd
    * @since version XXX
   public void reset() throws FileNotFoundException, IOException
      try
         ((ImageInputStream) reader.getInput()).close();
      catch (Exception e)
      reader.reset();
      ImageInputStream fis = new FileImageInputStream(imageFile);
      reader.setInput(fis);
}

I found a couple of issues. One was related to code the other to IBM. AS for the code I found an article about drawing scaled images here: http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html which was quite useful. My updated code is below. The second issues is that the JRE I am using is the IBM Websphere 5.1 JRE which pretty much sicks. I tested using a Sun statndard 1.4.2 JRE and the print was 5 times faster. Now I am looking to find a way around that issue, but it is not a questions for this form.
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
      throws java.awt.print.PrinterException
      BufferedImage image = null;
      int currentPage = pageIndex - getPageOffset();  //pageIndex is for the overall job, I need the page in this file
      int imgWidth = 0, imgHeight = 0;
      int drawX = 0, drawY = 0;
      double scaleRatio = 1;
      try
         image = reader.read(currentPage);
         imgWidth = image.getWidth();
         imgHeight = image.getHeight();
      catch (IndexOutOfBoundsException e)
         return NO_SUCH_PAGE;
      catch (IOException e)
         throw new PrinterException(e.getLocalizedMessage());
      if (imgWidth > imgHeight)
         pf.setOrientation(PageFormat.LANDSCAPE);
      else
         pf.setOrientation(PageFormat.PORTRAIT);
      Graphics2D g2 = (Graphics2D) g;
      g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED);
      g2.translate(pf.getImageableX(), pf.getImageableY());
      g2.setClip(0, 0, (int) pf.getImageableWidth(), (int) pf.getImageableHeight());
      scaleRatio =
         (double) ((imgWidth > imgHeight)
            ? (pf.getImageableWidth() / imgWidth)
            : (pf.getImageableHeight() / imgHeight));
      //check the scale ratio to make sure that we will not write something off the page
      if ((imgWidth * scaleRatio) > pf.getImageableWidth())
         scaleRatio = (pf.getImageableWidth() / imgWidth);
      else if ((imgHeight * scaleRatio) > pf.getImageableHeight())
         scaleRatio = (pf.getImageableHeight() / imgHeight);
      //find the scaled width and height
      int scaledWidth = imgWidth, scaledHeight=imgHeight;
      //center image
      if (scaleRatio < 1)
         drawX = (int) ((pf.getImageableWidth() - (imgWidth * scaleRatio)) / 2);
         drawY = (int) ((pf.getImageableHeight() - (imgHeight * scaleRatio)) / 2);
         //new code to set the scale
         scaledWidth = (int)(scaledWidth * scaleRatio);
         scaledHeight = (int)(scaledHeight * scaleRatio);
      else
         drawX = (int) (pf.getImageableWidth() - imgWidth) / 2;
         drawY = (int) (pf.getImageableHeight() - imgHeight) / 2;
/*don't need transform
      /*AffineTransform at = AffineTransform.getTranslateInstance(drawX, drawY);
      if (scaleRatio < 1)
         at.scale(scaleRatio, scaleRatio);
      g2.drawRenderedImage(image, at);*/
      //use scale instance of draw image
      g2.drawImage(image, drawX, drawY, scaleWidth, scaleHeight, null);     
      g2.dispose();
      image = null;
      return PAGE_EXISTS;
   }Edited by: jloyd01 on Mar 7, 2008 1:35 PM

Similar Messages

  • Need help with a file i am trying to print

    i try to print this file using adobe reader with all updates and it says
    can not print pdf
    it is trying to flatten the file before the print
    it still sends it to the printer but my boss says it should not give us an error message
    please help me
    https://www.dropbox.com/s/8ts56kjul4o3ygk/13-118%20IP%202013-11-8.pdf

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • Need helping printing to networked printers.

    I need help setting up network printers that have a code on them for each individual. There is no place to put a code so the printer will know who is printing what. I have installed 3 printers and they will not print, they just go to a paused mode and when you hit resume in reverts back to pause because it is looking for a code. I have tried it another way but it asks for a user name and password and all we have are codes. The workplace is using a windows based server and the copiers are listed as followed.
    Konica biz hub c450
    Sharp ar m700n
    sharp mx700n
    I need help to be able to print from my mac. I also have parallels running with xp installed and all the printers are installed on that side and printing fine. Hopefully someone can help me out.
    Thanks in advance

    Hello and welcome to Apple Discussions.
    In order to provide the user with the ability to input a user code, the respective printer driver would have to provide the facility. If this feature did exist on a previous version of OS X, then you may have to check the vendors web site to see if there is a driver for 10.6.
    If you are not sure if the function was supported previously, then go through all the user menus for the driver. The function may be present but located in an unusual location. Or it could require an additional file (aka plugin) that could be missing from the driver installation or not compatible with 10.6.
    The other thing to note is that if you have the Mac's printing via a Windows queue, you will have to provide user credentials for SMB print queues. This is typically a Windows user account - not the Mac's account details. If you don't want to create accounts for the Mac users on the Windows server, then you can use LPD rather than SMB to connect to the Windows queues. This does require UNIX Printing Services to be enabled on the server.
    Pahu

  • Need help exporting large file to bitmap format

    I have a large file that I need to export to a bitmap format and I am experiencing unknown "IMer" errors, memory and file size limitations.
    The file contains only one artboard of size around 8000 pixels by 6000 pixels. I can successfully export as a png at 72dpi giving me a 100% image of my AI file. However I need to export an image at 200% of the AI file. If I export as a png at 144dpi to achieve this I get the following error(s)
    "The operation cannot complete because of an unknown error (IMer)" or "Could not complete this operation. The rasterised image exceeded the maximum bounds for savung to the png format"
    I have tried exporting as tiff, bmp and jpeg but all give "not enough memory"  or "dimensions out of range" errors.
    Does anyone know the limitations with AI for saving large files to bitmap format?
    Does anyone have a workaround I could try?

    You could try printing to Adobe Postscript files.
    This will actually save a .ps file and you can scale it to 200% when doing so. You'll need to "print" for every image change.
    Then open a Photoshop document at your final size (16000x12000 pixels) and place or drag the .ps files into the Photoshop document.
    I just tested this and it seems to work fine here. But, of course, I don't have your art, so complexity of objects might factor in and I'm not seeing that here.
    And you are aware that Photoshop won't allow you to save a png at those dimension either, right? The image is too large for PNG. Perhaps you could explain why you specifically need a png that large???

  • Need help with connecting file inputs to arrays

    In this assignment I have a program that will do the following: display a list of names inputed by the user in reverse order, display any names that begin with M or m, and display any names with 5 or more letters. This is all done with arrays.
    That was the fun part. The next part requires me to take the names from a Notepad file, them through the arrays and then output them to a second Notepad file.
    Here is the original program: (view in full screen so that the code doesn't get jumbled)
    import java.io.*;       //Imports the Java library
    class progB                    //Defines class
        public static void main (String[] arguments) throws IOException
            BufferedReader keyboard;                                  //<-
            InputStreamReader reader;                                 //  Allows the program to
            reader = new InputStreamReader (System.in);               //  read the the keyboard
            keyboard = new BufferedReader (reader);                  //<-
            String name;                 //Assigns the name variable which will be parsed into...
            int newnames;               //...the integer variable for the amount of names.
            int order = 0;              //The integer variable that will be used to set the array size
            String[] array;             //Dynamic array (empty)
            System.out.println (" How many names do you want to input?");   //This will get the number that will later define the array
            name = keyboard.readLine ();
            newnames = Integer.parseInt (name);                                         // Converts the String into the Integer variable
            array = new String [newnames];                                               //This defines the size of the array
            DataInput Imp = new DataInputStream (System.in);       //Allows data to be input into the array
            String temp;                                       
            int length;                                                                  //Defines the length of the array for a loop later on
                for (order = 0 ; order < newnames ; order++)                                //<-
                {                                                                           //  Takes the inputed names and
                    System.out.println (" Please input name ");                            //  gives them a number according to
                    temp = keyboard.readLine ();                                           //  the order they were inputed in
                    array [order] = temp;                                                  //<-
                for (order = newnames - 1 ; order >= 0 ; order--)                                //<-
                {                                                                                //  Outputs the names in the reverse 
                    System.out.print (" \n ");                                                   //  order that they were inputed
                    System.out.println (" Name " + order + " is " + array [order]);             //<-
                for (order = 0 ; order < newnames ; order++)                                  //<-
                    if (array [order].startsWith ("M") || array [order].startsWith ("m"))     //  Finds and outputs any and all
                    {                                                                         //  names that begin with M or m
                        System.out.print (" \n ");                                            //
                        System.out.println (array [order] + (" starts with M or m"));         //
                    }                                                                         //<-
                for (order = 0 ; order < newnames ; order++)                                            //<-
                    length = array [order].length ();                                                   //
                    if (length >= 5)                                                                    //  Finds and outputs names
                    {                                                                                  //  with 5 or more letters
                        System.out.print (" \n ");                                                      //
                        System.out.println ("Name " + array [order] + " have 5 or more letters ");      //<-
    }The notepad file contains the following names:
    jim
    laruie
    tim
    timothy
    manny
    joseph
    matty
    amanda
    I have tried various methods but the one thing that really gets me is the fact that i can't find a way to connect the names to the arrays. Opening the file with FileInputStream is easy enough but using the names and then outputing them is quite hard. (unless i'm thinking too hard and there really is a simple method)

    By "connect", do you just mean you want to put the names into an array?
    array[0] = "jim"
    array[1] = "laruie"
    and so on?
    That shouldn't be difficult at all, provided you know how to open a file for reading, and how to read a line of text from it. You can just read the line of text, put it in the array position you want, until the file is exhausted. Then open a file for writing, loop through the array, and write a line.
    What part of all that do you need help with?

  • Printing TIFF files hangs the system, is there a workaround?

    When printing large tiff files (e.g., exported layout images from CAD) the system becomes unresponsive and it takes time to print. Even after the image is printed, the system works very slowly.
    It seems to be a bug, or is there any workaround to prevent the system to hang?
    Thank you, Jan

    There are two similar bugs:
    The LPC+crop bug started with ACR 6.1 and was fixed in 8.2.
    The LPC mystery bug started with ACR 7.3 and was fixed in 8.6.
    Both bugs cause repeated thumbnail extractions in Bridge on some images with Lens Profile Corrections enabled.
    As you are on ACR 6.7 it can only be the first bug. The only workaround I know is to ensure that the crop does not touch the edge of the corrected image. A few pixels gap will do it. Also, it helps to keep less images in a folder--but this can't be avoided when using Collections or Finds.
    I'd imagine that Adobe won't fix CS5 just for this. Presumably there's something in the smallprint which admonishes them from responsibility after the shelf life of the product ends. To be fair, it's not like they fixed it straight away in CS6, unlike the Bridge CS5 database bug (thanks, Adobe). They were only able to reproduce the fault in summer 2013.

  • Need Help-SOA 11g File Adapter unable to delete input file and its crashing

    Hi All
    Please find the details below:
    1. We have created a simple SOA composite to Read file from an input directory, archive the file in an archive directory using Inbound File Adapter Read
    and then use Outbound File Adapter Write to move the file to a output directory.
    2. File Adapter needs to delete the file after successful read/retrieval.
    3. We are using the "Use Trigger File" for invoking the file adapter. This is a new feature in SOA 11g
    4. Also we are using the option of reading the file as an attachment as we are not doing any transformation in the composite
    Issue Details_
    1. When the trigger file is put in the input directory for the first time, the File Adapter reads the file, archives it and moves it to the output directory
    2. However it does not delete the input file from the input directory and raises Fatal Exception mentioned below:
    [*2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]*
    [userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC PostProcessor::
    Delete failed, the operation will be retried for max of [0] times
    [2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]
    [userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC [[
    BINDING.JCA-11042
    File deletion failed.
    File deletion failed.
    File : C:\Dibya\AttachmentTest\InputDir\TestFile3.txt could not be deleted.
    Delete the file and restart server. Contact oracle support if error is not fixable.
    If any one has faced similar issues, kindly provide pointers on how to resolve it.
    Regards,
    Dibya

    Hi,
    Using the file adapter, you can poll from multilple locations...
    Keep the following property in your .jca file
    <property name="DirectorySeparator" value="," />
    While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
    Hope this helps...
    Thanks,
    N

  • I need help printing with HP laserjet 2200 and OS 10.6

    I need help setting up my HP laserjet 2200 and OS 10.6 -- I've downloaded and installed all the software and still can't print.

    Hey jeo1951,
    If you haven't already, try running through the recommended steps in the following article:
    Mac 101: Printing (Mac OS X v10.6)
    http://support.apple.com/kb/HT3771
    It should help you set up your printer.
    Welcome to Apple Support Communities!
    All the best,
    Delgadoh

  • I need help with viewing files from the external hard drive on Mac

    I own a 2010 mac pro 13' and using OS X 10.9.2(current version). The issue that I am in need of help is with my external hard drive.
    I am a photographer so It's safe and convinent to store pictures in my external hard drive.
    I have 1TB external hard drive and I've been using for about a year and never dropped it or didn't do any thing to harm the hardware.
    Today as always I connected the ext-hard drive to my mac and click on the icon.
    All of my pictures and files are gone accept one folder that has program.
    So I pulled up the external hard drive's info it says the date is still there, but somehow i can not view them in the finder.
    I really need help how to fix this issue!

    you have a notebook, there is a different forum.
    redundancy for files AND backups, and even cloud services
    so a reboot with shift key and verify? Recovery mode
    but two or more drives.
    a backup, a new data drive, a drive for recovery using Data Rescue III
    A drive can fail and usually not if, only when
    and is it bus powered or not

  • Need Help Printing Text Messages From E71

    I need to print some saved text messages that are on my e71 but cannot ge **bleep** to hook up to my bluetooth printer it just never finds it. Is there another way to print these messages fromt he phone i really need them

    connect to pc and use ovi suite
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Need help replacing a file in AE

    Ok, here is my problem, I made a project on another computer and then I transfered to my computer. I dragged all of the images and sounds but ONE very important image. I downloaded that same image from online and I need help replacing the corrupted old image with the new one. Here is a picture with more detail.
    I tried copy & pasting the layer properties and effects, but that didn't work. Any ideas?
    Thanks,
    Emal

    For instructions on swapping out a footage item's source file, "Replace layer source with reference to another footage item".

  • Need Help with .nnlp File.............A.S.A.P.

    I'm having a problem also with my JNLP file. I have downloaded the program onto one computer and that computer is using j2re1.4.2_04
    The other computers I believe are all running j2re 1.4.2_05
    I'm not sure if that's make a difference, but on the computer with j2re 1.4.2_05 when going to the site where the .jnlp file is located, the application comes up and says Starting Application. After it gets to that screen it just stays there. I really need help with this as soon as possible.
    Here is my .jnlp file listed below:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
      spec="1.0+"
      codebase="http://www.appliedsolutions.com/placewiz"
      href="Placewiz.jnlp">
      <information>
        <title>Placement Wizard 4.0</title>
        <vendor>Applied Solutions, Inc.</vendor>
        <homepage href="index.html"/>
        <description>Placement Wizard 4.0</description>
        <description kind="short">Short description goes here.</description>
        <offline-allowed/>
      </information>
      <resources>
        <j2se version="1.4+"/>
        <j2se version="1.3+"/>
         <j2se version="1.5+"/>
        <jar href="Placewiz.jar"/>
      </resources>
      <security>
          <all-permissions/>
      </security>
      <application-desc main-class="com/asisoftware/placewiz/loader/Exec">
    </jnlp>

    This was due to a change in 1.4.2_05
    the main class attribute
    main-class="com/asisoftware/placewiz/loader/Exec">is wrong - it should be:
    main-class="com.asisoftware.placewiz.loader.Exec">this didnt seem to mater before 1.4.2_05, but some change in java since then caused this bad class specification to stop loading.
    /Andy

  • Need help with copying files onto external drive

    I need help! Trying to copy downloaded movie files from Vuze (which have downloaded successfully) and copy onto external hard drive to view them but it wont let me copy over to the external device. Any ideas how to fix this please???

    Can you explain the steps you used, and the error message (or symptom), that says the copy did not work? 

  • Please help, print to file on xserve

    Guys I am trying to setup a way to print ps files to a hotfolder.
    Since I have access to a xserve I was trying to go that route. I know it can be done by changing the swb.conf file. I just do not know how.
    Any feed back would be very appreciated.
    Thank you for all the help in advance.
    sam

    Leif again thank you.
    I must be doing something wrong.
    Here is my backend command:
    #!/bin/sh
    cat $6 > "/Volumes/ServerHD/psfiles/"$3".ps"
    Here is the permissions:
    -rwxr-xr-x 1 root wheel 57 May 26 14:25 cbnpdffile
    Here is the print.conf:
    # Printer configuration file for CUPS v1.1.23
    # Written by cupsd on Fri May 26 17:20:33 2006
    <DefaultPrinter cbn_pdf>
    Info cbn_pdf
    DeviceURI cbnpdffile
    State Idle
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    </Printer>
    I can see the printer in the web config. I can even print a test page and it works.
    Now when I go to Server Admin I only see that printer as a default printer.
    When I go to a browser and hit the print button I see the printer but get an error: error while printing
    How can I get other macs on the network to see that printer. I can not see it in the printer setup utility. If as add as a LPD printer, when I try to print I get an error: Network host '10.0.99.105' is busy, down, or unreachable; will retry in 30 seconds ...
    Again thank you for all the help.
    sam

  • Printing Tiff File Format

    Is there anyway to print the tiff file present in the server on the client side?
    1.tiff file cannot be displyed on the browser ,so i cannot use javascript's [window.print() command].
    2.If i am using JAI jar then that works only on the server side{i.e when the clent cliks the print button the print dialog displays on the server side]
    3.If i will download the tiff file into local then client has to manualy go to that physical path where that tiff file was saved and print it.but requirement is to print from the front end.
    4.If i will use applet then how will i pass that tiff file name from the html.
    because if i use
    <PARAM NAME="imageName" VALUE="C:\\amarshi\\TIFF.tif">
    then the the value of imageName in the Applet class (using get{Parameter("imagename") comes as null.
    but if i use jpg,png or gif format then the value is not null.
    5.I also tried with JFrame ,but that also works on the server side only.
    plz suggest me ..its very very urgent .
    Thanks
    Amarshi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I had searched in goolge ,but there are some tools which support either IE
    or mozilla .I didnt found any tool supporting both the browser.
    Morever if i will use thesr tools ,then whenever the user will try to print then they hav to install atleast one the tool.
    the client wants to do this either using tools that will be uiinstalled inside the exe while release or do from coding side.
    They dont want that the user will have to install the tool to view the .tiff file for printing.
    And whatever jars i am using in the java side they work only on the server side??

Maybe you are looking for

  • Smpatch no longer works after update from SUC proxy!

    Hi, I ran smpatch update against our local SUC proxy. It said some patches needed a reboot so I did "init 6" after it finished and the system shutdown, installing some patches, and then booted again... Now the system as such seems to work fine but "s

  • Change Vendor in Condition Type

    Hello Experts, I would like to know how can I change automatically the Vendor in conditions type of delivery cost, for example in Freight condition. The standard always bring the PO Vendor in all conditions.  Thanks and Regards, Pablo

  • Ios 5 restor from backup problem

    i have uppdated to ios 5 on my iphone 4 and i cant restor it to my backup i have just mad befor i uppdated it. i dont get the "restor from backup" when i right click on the itunes.. im using a windows..

  • APQD table size is fastly increasing with huge size

    Hi All, File system space has been increasing very fast. We analyzed the tables for the large size, from which we found APQD table size is relatively very large in size in Production system. So we are planning to delete old session logs till last 5 d

  • Mega drop down SharePoint 2013 - Any more third party tool

    Im looking for a mega dropdown menu to use in a sharepoint 2013 project. I'm happy to use a third party one like this one archetonomy But i need some other similar ones to compare too but can't find any. I would appreciate if can find more of this. T