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
Similar Messages
-
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 advanceAn 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. -
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 Internet Problems
Simply put, my iMac G5, running OSX 10.4.1 will not and has never (since being bought over a year ago) been able to print from the internet. I just recently have need to do so on a regular basis. Whenever I try to print anything it says OSX has a fatal error and quits. I am using an HP PSC 1410 which works fine with my MacBook but not with my desktop. I have all the drivers installed and I just checked for new drivers and installed those. Any other suggestions?
Interesting. I guess first I would suggest repairing permissions. And then, I would recommend an upgrade to a more recent version of Tiger. At least 10.4.9. Then make sure you are using the latest version of safari 3.0.4. Both can be found under the Downloads tab above.
Try this link to download Print Selection app.
http://versiontracker.com/dyn/moreinfo/macosx/22665
This should keep you busy for a wee bit.
Nano -
I want to print from my .chm file using the table of contents using "Print the selected headings and all subtopics." This does not work. I get an "Object expected" script error for each page. Is there a way to get around this?
Hi Margaret
There is an inherent issue with printing this way. Basically what happens when you attempt it, is that the Help Engine begins appending one topic after another in a large concatenated temporary file. And things sort of fall apart from there.
If you are serious about providing a printed output, you should consider supplying a PDF version folks may print from.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
Adobe Certified RoboHelp HTML Training
SorcererStone Blog
RoboHelp eBooks -
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
GoranThe 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. -
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. -
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. -
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 -
Whenever I try to print a pdf file from the internet, it comes out backwards. To read I must turn page over and hold up to a light. I'd rather not have to do that. I am running Vista, and I have re-intalled Adobe Reader 9. I never had this problem until I downloaded and installed update version 9. Can someone please help me correct this problem.
Thanks, RodYou might try in the Reader forum... different product
http://www.adobeforums.com/webx?13@@.3bbf42f7 -
I am using an HP Photosmart C5580 All in One Printer. Recently, whan trying to pront postage from both Ebay and USPS, I have gotten an error message: An error message has occurred in the script to this page; line: 2126; Char: 1; Error: Unspecified error; Code: 0; Url: res://ieframe.dll/preview.js; (at this point, there is a question, "Do you want to continue running scripts on this page?Please help!
Hi bDannyman,
Welcome to the HP Support forums. I understand that you are encountering script error when trying to print postage from the eBay and USPS web sites.
The error message you are receiving is a Windows error message. I have included a link to Microsoft's Support center that gives you trouble shooting steps to take. The title of the subject is "Error Message: An Error Has Occurred In the Script on This Page".
Regards,
Happytohelp01
Please click on the Thumbs Up on the right to say “Thanks” for helping!
Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
I work on behalf of HP -
Canon IR Copiers printing from iPad
So I deployed the iPrint Appliance 1.0.1.69 to solve our "Can't print from iPad" problem and now am getting stuck at the printer/copier. We're getting a PDL IMG DATA INVALID error on our Canon IR 4075.
Anyone else have this problem and conquered it? Any suggestions where to start?
I enabled LPR support, which didn't make a difference.
Any advice would be appreciated.
Works fine with our HP printers.
Thanks,
Richsirjohnson,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://forums.novell.com/ -
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
VaibhavHi,
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 -
Wireless printing problem with hp officejet 100 mobile printer from win 7 dell laptop
My hp officejet 100 mobile printer was working fine with my dell XPS 15 in bluetooth wirelessly until my laptop crashed. Now I can not get it to print internet info except with hard wire connection. Page loads half way and then stops. Must shut down laptop and shut off printer or hard wire and shut off bluetooth. down loaded lastest drivers to no avail. printer will print from cell phone and win 8 computer via bluetooth but not win 7 laptop.
Sorry you are having problems with printing from the internet. I have a few more questions to ask you before I can be of much assistance.
What web-browser are you using?
Do you have any problems printing from Word or other non-internet documents?
What did you do to fix your computer (system restore, clean install of the OS, etc)?
Have you tried an alternate web-browser?
Make sure to install all of your Microsoft updates to see if that helps. Otherwise, answer those questions for me please and I will be happy to help.
Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
When a solution is found please mark the post that solves your issue.
Every problem has a solution!
Maybe you are looking for
-
Hi Folks! I have created a simple popup window which takes some data from the form. What I would like is to be able to submit the popup window and the automatically close it. To achieve this I have created a Submit button and the a branch process whi
-
Can I use my Verizon-issued iPhone 4 with another service provider?
Any help would be greatly appreciated. =]]
-
What can I do to get my ID back? X(
I couldn't remember my ID answers!! OOOO I'm so desperate, please help me!!! X(
-
Ipad not updating iphone calendar
IPad calendar is not updating iPhone calendar but iPhone will update IPad. Has worked fine in past but not now. Can anyone help?
-
IPhone 3G shuts down when not plugged in
Hello, I have had this problem for awhile and now just getting to troubleshoot the issue. Basically the phone appears to take a charge after it's been plugged in to my computer and/or outlet, however when removed it shuts down after 30 seconds or so