Print from applet running in IE5.5

Application is standalone and can be used as applet as well. If it works as standalone application everything works fine. When I put it on a Web server and try to run it as applet from within IE5.5 it hangs. The problem is in the part of code that invokes printing, without it applet works fine.
I know the problem is that applet can�t invoke printing if it isn�t signed but in that case it should throws exception not hangs at the very beginning. Also, applet can�t be closed without closing IE5.5.
public void printGraph() {
PageAttributes pa = new PageAttributes();
JobAttributes ja = new JobAttributes();
pa.setOrientationRequested(PageAttributes.OrientationRequestedType.LANDSCAPE);
pa.setOrigin(PageAttributes.OriginType.PRINTABLE);
PrintJob printJob = getToolkit().getPrintJob(this, graph.name, ja, pa);
if(printJob != null) {
int xmargin = 30;
int ymargin = 30;
Dimension printArea = printJob.getPageDimension();
printArea.width -= xmargin;
printArea.height -= ymargin;
for(int i=0; i<ja.getCopies(); i++) {
Graphics g = printJob.getGraphics();
if( g != null) {
graph.print(g, printArea, xmargin, ymargin);
g.dispose();
printJob.end();
public void actionPerformed(ActionEvent event) {
String command = event.getActionCommand();
Object source = event.getSource();
int index;
} else if (command == "Print") {
try {
SecurityManager sm = System.getSecurityManager();
if( sm != null) sm.checkPrintJobAccess();
printGraph();
} catch (SecurityException e) {
System.err.println("Printing is not allowed.");
I hope someone knows what is the problem.
Best regards
Goran

The problem is in the version of java (1.1.4) IE5.5 supports by default on WIN2K platform.
This version doesn't support the PageAttributes and JobAttributes classes and method getPrintJob(Frame f, String name, JobAttributes ja, PageAttributes pa).
The getPrintJob(Frame f, String name, Properties pr) method that is supported since jdk 1.1 can be used instead
Sorry I didn�t mention os platform and java version.

Similar Messages

  • Print From Applet

    Can I print from an Applet without signing it or messing about with the policy file? A simple enough question but one I haven'e been able to find a definitive answer for. If possible I'd like to avoid popping up a new browser window with the document to be printed.

    An Applet runs in a sandbox which without proper authentication, will not allow any actions outside the sandbox, i.e. on the local filesystem.
    You cannot print from an unsigned applet.
    The signing process is very simple using Jarsigner and the Java Plugin.
    You can generate your own certificates too, no need to purchase one.

  • Printing from applet

    I have a java 1.1 applet, which has been printing ok from IE, since I moved up to JDK1.4.0_01, the print dialog comes up as usual but after clicking ok, the answereing yes to the allow java to print question, the applet hangs. When I've turned on the exception reporting and looked at the console, it reports the following exception, printing work when using appletviewer. Does anyone have any ideas what's the solution is to this, the line of code it's executing at the time is
    printjob = oolkit.getPrintJobframe, "Print", oPrinterProperties);
    sun.misc.ServiceConfigurationError: javax.print.PrintServiceLookup: : java.io.FileNotFoundException: http://localhost/META-INF/services/javax.print.PrintServiceLookup
         at sun.misc.Service.fail(Service.java:129)
         at sun.misc.Service.parse(Service.java:208)
         at sun.misc.Service.access$100(Service.java:111)
         at sun.misc.Service$LazyIterator.hasNext(Service.java:257)
         at javax.print.PrintServiceLookup$1.run(PrintServiceLookup.java:326)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.print.PrintServiceLookup.getAllLookupServices(PrintServiceLookup.java:320)
         at javax.print.PrintServiceLookup.lookupDefaultPrintService(PrintServiceLookup.java:162)
         at sun.print.RasterPrinterJob.getPrintService(RasterPrinterJob.java:348)
         at sun.awt.windows.WPrinterJob.getPrintService(WPrinterJob.java:408)
         at sun.print.PrintJob2D.findNamedPrintService(PrintJob2D.java:187)
         at sun.print.PrintJob2D.copyAttributes(PrintJob2D.java:223)
         at sun.print.PrintJob2D.printDialog(PrintJob2D.java:176)
         at sun.awt.windows.WToolkit.getPrintJob(WToolkit.java:600)
         at sun.awt.windows.WToolkit.getPrintJob(WToolkit.java:586)
         at PrintingChartApplet.printChart(PrintingChartApplet.java:67)
         at PrintingChartApplet.actionPerformed(PrintingChartApplet.java:53)
         at java.awt.Button.processActionEvent(Button.java:381)
         at java.awt.Button.processEvent(Button.java:350)
         at java.awt.Component.dispatchEventImpl(Component.java:3526)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

    I also ran into this problem recently and I think I've figured out basically what's happening. It only happens when the applet is served by Tomcat and certain other web application servers. When the applet is launched by a simple HTML page from a web server, it is able to print without any exceptions being thrown.
    In one of our applications, we have a servlet that downloads an applet to the client. When that applet calls 'PrinterJob.print', the JDK 1.4 implementation of that method on the client looks up the default 'PrintService'. To do so, it indirectly uses the class loader to get some optional configuration file (I don't know the details). That configuration file isn't in the applet's JAR file, so the class loader looks for it in the same place the JAR file came from: the server. Our servlet gets the request for the configuration file but the file isn't on the server either, so it returns a 404 error.
    Here's where things go wrong. If the 404 error were sent back correctly, printing would proceed normally since the configuration file is optional. However, instead of calling 'HttpServletResponse.sendError (SC_NOT_FOUND)', the servlet calls 'HttpServletResponse.setStatus (SC_NOT_FOUND)'. I'm not sure why, but this response isn't seen by the client as a 404 error, so the body of the response is treated as the configuration file. Parsing of the body fails and the 'ServiceConfigurationError' is thrown.
    We changed our servlet so that it calls 'sendError' and that fixed the 'ServiceConfigurationError' problem.
    Nobody has mentioned servlets (or JSPs) being involved in their situations, but maybe there is a similar root cause. If the server is somehow not returning a 404 response, the 'PrintService' code on the client will try to parse that response and throw an error.

  • Print from applet, signed jar

    Hi all
    Have a signed applet that runs under IE 6, java 1.5. The applet is basically used for printing purpose.
    My problem is that the applet shows a dialog box "Applet would like to print. Do you want to proceed?"
    How can I get rid of the dialog box?
    I don't want to change the Java file.
    Thanks in advance

    An Applet runs in a sandbox which without proper authentication, will not allow any actions outside the sandbox, i.e. on the local filesystem.
    You cannot print from an unsigned applet.
    The signing process is very simple using Jarsigner and the Java Plugin.
    You can generate your own certificates too, no need to purchase one.

  • Printing From Applet Problem

    Hi,
    I created this simple applet that has a combox with all installed printers, a textare (where the user will type whatever he wants to print) and a button that is suppose to print the textarea content to the selected printer. It works fine if a run the applet itself, but when I load it to a webpage, the applet runs nicely, it asks me for permission to access the printer but when I click the "Print Now", it just doens't print :(
    Thanks a lot,
    Dirso
    import java.awt.event.*;
    import javax.swing.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    * @author Dirso
    public class JRPrinter extends JApplet implements ActionListener {
         JComboBox cbPrinters = new JComboBox();
         PrintService[] services = null;
         JTextArea ta = new JTextArea();
         /* (non-Javadoc)
          * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
         @Override
         public void actionPerformed(ActionEvent arg0) {
              // TODO Auto-generated method stub
              PrintService psZebra = services[cbPrinters.getSelectedIndex()];
              DocPrintJob job = psZebra.createPrintJob();
              byte[] by = ta.getText().getBytes();
              DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;
              Doc doc = new SimpleDoc(by, flavor, null);
              try
                   job.print(doc, null);
              }catch (PrintException e3) {
                   ta.setText(e3.getMessage());
         public void init() {
              // cria as impressoras
              services = PrintServiceLookup.lookupPrintServices(null, null);
              for (int i = 0; i < services.length; i++) {
                   PrintServiceAttribute attr = services.getAttribute(PrinterName.class);
                   cbPrinters.addItem(((PrinterName)attr).getValue());
              // crie o botao de imprimir
              JButton button = new JButton("Print Now");
              button.addActionListener( this );
              JPanel p2 = new JPanel();
              p2.add(cbPrinters);
              p2.add( button );
              getContentPane().add( "North", p2 );
              //getContentPane().add( "North", p1 );
              getContentPane().add( "Center", new JScrollPane(ta) );

    Well, I made a .jar file including that .class and a java.policy.applet with the following code and finally I signed it... Looks like it worked, I'll have more answers tomorrow and I'll let you all know about.
    grant {
      permission java.security.AllPermission;
    };Best Regards,
    Dirso

  • I'm unable to print from illustrator running os x mavericks

    Why can't I print from illustrator? I don't have a problem from other apps. just illustrator. I downloaded new drivers for both of my printers an HP Deskjet D1600 and an Epson Stylus Photo 1400. Anyone know of a fix? This first happened when I upgraded to OS X Mavericks. I got a fix and everything worked. Then I installed a Silhouette Cameo (vinyl cutter machine) now I can't print from Illustrator again. Anyone have any ideas or a fix?

    Never mind. Found the fix. These got reinstalled and need to be removed. Ugh!
    [Hard Drive]/Library/Printers/PPDs/contents/Resources/en.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/It.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/Ja.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/ko.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/Zh_CN.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/Zh_TW.lproj
    I am unable to print from Illustrator CS3 since downloading os x Mavericks 

  • Evertime I try to print from CS5 running iMac w?Maverick CS5 crashes

    Running CS5 on iMac with Maverick, every time I attempt to print CS5 crashes.

    Just posted identical issue, almost 4 months after yours. I don't expect any replies since you've had none, so wondered if you were able to solve the problem?
    cheers, Robert
    MY POST:
    CS5 crashes when attempting to print, os 10.9.4 Mavericks
    This question is Not Answered.(Mark as assumed answered)
    ROBERT HALLEWELL Sep 3, 2014 11:06 AM
    Just a few days ago migrated from older iMac running 10.6.8 to new iMac running 10.9.4
    I have the PS (and Indesign CS5) disc but am reluctant to attempt a reinstall, based on forum items where things were made worse
    At the moment my work around is to print in Indesign.

  • Printing from applet hangs

    I'm trying to create an applet that can print a graphic. I have a single button and the event seems to fire when clicked. I get the security warning asking me if I want to print. I click yes and it usually pops up again and I hit yes again and then it hangs. My end goal is to print a coupon image from the browser without the print dialog so that multiple copies cannot be printed. Yes, I've heard of photo copiers but evidently the client is fine with that. At this point I'm just trying to get something to print period from the applet. Any ideas?
         public void PrintCoupon2()
              try {
              PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
              pras.add(new Copies(1));
              PrintService pss[] = PrintServiceLookup.lookupPrintServices(DocFlavor.URL.JPEG, pras);
              if (pss.length == 0) {
                   throw new RuntimeException("No printer services available.");
              PrintService ps = pss[0];
              System.out.println("Printing to " + ps);
              DocPrintJob job = ps.createPrintJob();
                   URL url = new URL("http://www.mydomain.com/images/test.jpg");
                   Doc doc = new SimpleDoc(url, javax.print.DocFlavor.URL.JPEG, null);
              //FileInputStream fin = new FileInputStream("IMG_0711.JPG");
              //Doc doc = new SimpleDoc(fin, DocFlavor.INPUT_STREAM.JPEG, null);
              job.print(doc, pras);
         } catch (IOException ie) {
              ie.printStackTrace();
         } catch (PrintException pe) {
              pe.printStackTrace();
         }

    I also ran into this problem recently and I think I've figured out basically what's happening. It only happens when the applet is served by Tomcat and certain other web application servers. When the applet is launched by a simple HTML page from a web server, it is able to print without any exceptions being thrown.
    In one of our applications, we have a servlet that downloads an applet to the client. When that applet calls 'PrinterJob.print', the JDK 1.4 implementation of that method on the client looks up the default 'PrintService'. To do so, it indirectly uses the class loader to get some optional configuration file (I don't know the details). That configuration file isn't in the applet's JAR file, so the class loader looks for it in the same place the JAR file came from: the server. Our servlet gets the request for the configuration file but the file isn't on the server either, so it returns a 404 error.
    Here's where things go wrong. If the 404 error were sent back correctly, printing would proceed normally since the configuration file is optional. However, instead of calling 'HttpServletResponse.sendError (SC_NOT_FOUND)', the servlet calls 'HttpServletResponse.setStatus (SC_NOT_FOUND)'. I'm not sure why, but this response isn't seen by the client as a 404 error, so the body of the response is treated as the configuration file. Parsing of the body fails and the 'ServiceConfigurationError' is thrown.
    We changed our servlet so that it calls 'sendError' and that fixed the 'ServiceConfigurationError' problem.
    Nobody has mentioned servlets (or JSPs) being involved in their situations, but maybe there is a similar root cause. If the server is somehow not returning a 404 response, the 'PrintService' code on the client will try to parse that response and throw an error.

  • Can someone help - can't print from freehand running 10.5.7?

    Help please, I have just upgraded to an iMAC (lovely) running 10.5.7. Freehand 10 seems to work beautifully, however now matter how hard I try I can't get it to print. It will not print to printer, PDF or PS. I get a very helpful message "could not complete your request because an error occurred." Does anyone have any ideas on what the problem might be?
    Please help
    (The mac shop doesn't have anyone who has even used Freehand)

    Hi there,
    Does you printer/RIP support protocols other than AppleTalk? If it does, then I would change it to something like HP Jetdirect-Socket.
    PaHu

  • Printing from Applet with JRE1.5

    My customers want to upgrade to JRE1.5, but I have been unable to
    make any of my Applets work with JRE1.5....
    Q.What have they changed????
    // Print receipt
    void Print() {
    DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
    PrintService printService = PrintServiceLookup.lookupDefaultPrintService();
    DocPrintJob job = printService.createPrintJob();
    PrintJobListener pjlistener = new PrintJobAdapter() {
    public void printDataTransferCompleted(PrintJobEvent e) {
    return;
    job.addPrintJobListener(pjlistener);
    PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
    // pras.add(new Copies(2));
    pras.add(new JobName("MyJob",null));
    DocAttributeSet das = new HashDocAttributeSet();
    Doc doc = new SimpleDoc(Print_Area, flavor, das);
    try {
    job.print(doc, pras);
    } catch (PrintException pe) {
    pe.printStackTrace();
    }

    yes My Ipad will not see my printer on wifi it was working 100% till the IOS 5 update and apple don't seem to be looking into this fault.
    If they want folk to not buy apple stuff there going the right way about it every update sees a new problem.
    it is used in the office so how they can't notice that the print function is not working.
    or should I say not seeing the printer what else is screwd up.
    unhappy user here

  • Determining path from applet running on IE Browser

    Is there a way (system property, etc) to determine the path used by an Internet Explorer browser from within an applet?
    I'm trying to dynamically download a dll from my web server for use by an applet stored in a signed cabinet file and I need a location to store this file that is in the runtime path.
    Thanks

    No I don't think there is a way. But you could prompt the user for the correct directory

  • How to print on console from applet for debugging purpose.. ?

    Hi,
    To debug my app which is an applet running in browser, I inserted some sysout statements in applet but it do not work.
    Is it not possible to sysout with applet or there is any other way for debugging.
    Please reply..
    Thank you.

    To debug my app which is an applet running in browser, I inserted some sysout statements in applet but it do not work.The sysout statements prints to 'Java console', you can see it in browser by selecting 'Show Java Console' somewhere in the menus of browser.
    Or you can make it to appear every time applet is loaded. This can be done from the Java Control Panel.
    ControlPanel>Java>Advanced>JavaConsole>ShowConsole
    Also, for complete debugging check all the boxes in:
    ControlPanel>Java>Advanced>Debugging
    Thanks!

  • Printing from an applet on a Mac

    Printing from an unsigned applet is allowed by the java plug-in. When a print request is made it pops up a confirmation dialog after which the print job goes through on Windows. On a Mac, however, a security exception is thrown after the confirmation dialog:
    java.security.AccessControlException: access denied (java.net.SocketPermission localhost:631 connect,resolve)
    The entire stack trace is copied at the end.
    It appears that the applet is trying to open a connection to port 631 on localhost (Port 631 is the standard port for the IPP protocol). Usually an applet is only allowed to open a connection to the host that it came from (not localhost in this case). Therefore, the exception seems reasonable. However, when the print request is sent a second time the print job goes through! I don�t know why!
    Has anyone encountered this problem on a Mac (OS 10.4.7; Java version 1.5.0_06) ? Is there a solution? It works just fine on Windows!
    Thank you!
    java.security.AccessControlException: access denied (java.net.SocketPermission localhost:631 connect,resolve)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:459)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
         at sun.net.www.http.HttpClient.New(HttpClient.java:287)
         at sun.net.www.http.HttpClient.New(HttpClient.java:299)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836)
         at sun.print.IPPPrintService.opGetAttributes(IPPPrintService.java:1419)
         at sun.print.IPPPrintService.initAttributes(IPPPrintService.java:323)
         at sun.print.IPPPrintService.getSupportedDocFlavors(IPPPrintService.java:697)
         at sun.print.IPPPrintService.isDocFlavorSupported(IPPPrintService.java:773)
         at sun.print.RasterPrinterJob.getPrintService(RasterPrinterJob.java:431)
         at sun.print.RasterPrinterJob.setAttributes(RasterPrinterJob.java:1002)
         at apple.awt.CPrinterJob.setAttributes(CPrinterJob.java:130)
         at apple.awt.CPrinterJob.print(CPrinterJob.java:173)
         at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1200)
         at PrintTest.printApplet(PrintTest.java:47)
         at PrintTest$1.actionPerformed(PrintTest.java:25)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5554)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5319)
         at java.awt.Container.processEvent(Container.java:2010)
         at java.awt.Component.dispatchEventImpl(Component.java:4021)
         at java.awt.Container.dispatchEventImpl(Container.java:2068)
         at java.awt.Component.dispatchEvent(Component.java:3869)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
         at java.awt.Container.dispatchEventImpl(Container.java:2054)
         at java.awt.Component.dispatchEvent(Component.java:3869)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Yes!!  This is VERY HARD to find.  I literally spent ONE YEAR looking for solutions to my printing problems until I found this little drop-down box in the middle of the second or third dialog box that the Mac OS offers you when you're printing.  If you're still not finding it, ask us again.  I'm not in front of my Mac right now, and I'll be glad to give you detailed instructions.  I tried several hundred different things before I could get my photos to print well, and the secret was always right there, hidden in that tiny drop-down menu in the center of that dialog box.  VERY frustrating.

  • Major Issues with printing Images from applet

    Hi,
    I am currently working on an automated report generation software. The Project Goal is simple, all i need to do is to connect to Access Database, and get all the information onto the applet in an arranged format and display it on the webpage. Now here is the deal... The applet will only be used on a single local machine, (Why Applet?? because i need to print the report... applet viewer will also do). I am able to make the connection to the database from the applet viewer, but fail miserably if i try to do it from Internet Explorer. So i gave up on the IE. The major problem is, on applet i have a ImageViewer (I am using "symantec.itools.multimedia.ImageViewer", if you have an alternative that works then please lemme know). I have a method that sets diffrent Images in the Imageviewer, depending upon what record is being dispalyed. In otherwords, every record has an image associated to it. and i want to display the Image with the data.
    Now when i run the applet in appletviewer, it works perfect, BUT.... when i go to print it (using the print in the appletviewer's menu), It print everything EXCEPT the Image..... The Image happens to the main peice of Information, so rest of the code is worthless unless the image is displayed...
    Please help me with this project. I have failed many times trying to print it. If you need the code please email me @ [email protected] i will send the code to you, with a sample database.
    Please help
    Vaibhav

    Hi,
    I am currently working on an automated report
    generation software. The Project Goal is simple, all i
    need to do is to connect to Access Database, and get
    all the information onto the applet in an arranged
    format and display it on the webpage. Now here is the
    deal... The applet will only be used on a single local
    machine, (Why Applet?? because i need to print the
    report... applet viewer will also do). I am able to
    make the connection to the database from the applet
    viewer, but fail miserably if i try to do it from
    Internet Explorer. So i gave up on the IE. An Applet can't connect to an URL or file that isn't in his applet.getCodeBase() directory or subdir. For that to happen you have to create a profile add that profile to your java virtual machine etc.
    To much work just use an application.
    The major
    problem is, on applet i have a ImageViewer (I am using
    "symantec.itools.multimedia.ImageViewer", if you have
    an alternative that works then please lemme know). I
    have a method that sets diffrent Images in the
    Imageviewer, depending upon what record is being
    dispalyed. In otherwords, every record has an image
    associated to it. and i want to display the Image with
    the data.Why don't you use a panel with the paint method
    use the
    java.awt.Graphics.drawImage()
    method
    It draws the normal image files( e.g. gif jpeg npg etc.)
    Now when i run the applet in appletviewer, it works
    perfect, BUT.... when i go to print it (using the
    print in the appletviewer's menu), It print everything
    EXCEPT the Image..... The Image happens to the main
    peice of Information, so rest of the code is worthless
    unless the image is displayed...
    Please help me with this project. I have failed many
    times trying to print it. If you need the code please
    email me @ [email protected] i will send the
    code to you, with a sample database.
    Please help
    VaibhavYour trying to use the appletviewer to print for you I wouldn't do that
    Why don't you just write your own print method by using the java print from sun.
    some links
    http://java.sun.com/printing/
    http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html#intro
    http://java.sun.com/j2se/1.4/docs/guide/jps/
    hope this help you on your way.
    greetz pietje

  • Hi All,  I setup 2 Mac Minis, 'setup in a no-apple id. Now with Mini1 I installed a shared printer from Windows7 Pc it ask for credentials then I input Adminstrator account and the password ticking the remember in "keychain"  I run a test print and its se

    Hi All, 
    I setup 2 Mac Minis, 'setup in a no-apple id. Now with Mini1 I installed a shared printer from Windows7 Pc it ask for credentials then I input Adminstrator account and the password ticking the remember in "keychain"
    I run a test print and its seamless. I reboot the Mini1 and run test print again and its good.
    Now in Mini2 I did the same installation on shared printer but it is asking for user credential again and again, there is a check mark in "remember in keychain but still gives a notice that "requires authentication" I put the admin creadentials same with Mini1 then it prints.
    every time I print on Mini2 its always asking for a user & password before Printing. How can we fix it.
    I tried
    - lpd printing = "authentication required"
    - reset printer settings ang re-install printer = "authentication required"
    - replace sharename in windows7, reinstall printer in Mini2 = "authentication required"
    This stuff never happened to Mini1.

    Hi All, 
    I setup 2 Mac Minis, 'setup in a no-apple id. Now with Mini1 I installed a shared printer from Windows7 Pc it ask for credentials then I input Adminstrator account and the password ticking the remember in "keychain"
    I run a test print and its seamless. I reboot the Mini1 and run test print again and its good.
    Now in Mini2 I did the same installation on shared printer but it is asking for user credential again and again, there is a check mark in "remember in keychain but still gives a notice that "requires authentication" I put the admin creadentials same with Mini1 then it prints.
    every time I print on Mini2 its always asking for a user & password before Printing. How can we fix it.
    I tried
    - lpd printing = "authentication required"
    - reset printer settings ang re-install printer = "authentication required"
    - replace sharename in windows7, reinstall printer in Mini2 = "authentication required"
    This stuff never happened to Mini1.

Maybe you are looking for

  • I got the dreaded "Invalid Node Structure" Error

    Hi All, I entered the Mac world recently with a spanking new Macbook Pro 15". Updated it online to the latest OS 10.6.4 Snow Leopard. Today I was trying to install some more free application from the Official Mac Software Site. After installing a cou

  • BIWS not fetching data for getfromUserInstance

    Hi All, I have created a BIWS and have scheduled the Webi report separately for each user (we have tried for only 2 users so far). The BIWS property for the getfromuserinstance is set to "1". When we publish the dashboard on the launchpad it does not

  • Lost video ipod

    my friend told me there was a way to find stolen or lost i pods... what do u do. cause i lost my video ipod and.. apparently i seriously need to find it.

  • Proxy triggering in central instance but not in application

    Hi friends, There is one report which triggers the proxy. but this is not triggering in application servers and it is working fine when i trigger it in central instance. In this case i am executing this report in background and at that  time i can't

  • N96 - Unable to switch off the Status Light

    I am trying to disable the illumination light for the rim around the scroll key. I downloaded the N96 user guide from your site which says that the phone has the option under Tools > Settings > General > Personalisation > Standby Mode > Status Light.