Simplest Print rectangle of known dimensions in mm

I'm trying to get an applet in a browser to print properly.
I want to provide metric coordinates and have them honoured!
I've ported a parametric CAD system to java but can't get the printouts to be sensible! So close and yet so far...
I only need to draw lines, so the simple Graphics interface will be fine, but I'm not sure if there is a print callback I should hook to or if paint is what to use...
public void paint(Graphics g) {
  // I'd like to set a scale here so that the units I give are 10 microns
  g.drawRect(0, 0, 5000, 10000); // This should then print a 5cm x 10cm box
}In C++ I'd have to set a mapping mode, I've found things like MediaSize and implementing Printable but I can't find anything for simple JDK1.6.0_10
Swing forum mentions a print callback: Printable's method implementation:
public int print (Graphics g, PageFormat pf, int idx) throws PrinterException...
I don't even know what Swing is, and hope I don't have to learn just to draw a rectangle!
I've wasted far too much time trying to find this out for myself!
Help! This should be sooooo easy!

Looks like I have to answer this myself...
Three evenings later, I've figured out a way.
This is the answer I was hoping for!
import java.applet.*;
import java.awt.*;
import java.awt.print.*;
import java.awt.event.*;
public class ScaledPrintExample extends Applet implements Printable, MouseListener {
  public void init() {
    setBackground(Color.white);
    addMouseListener(this);
  public void mousePressed (MouseEvent e) {}
  public void mouseReleased(MouseEvent e) {}
  public void mouseClicked (MouseEvent e) {Print();}
  public void mouseEntered (MouseEvent e) {}
  public void mouseExited  (MouseEvent e) {}
  public void Print() {
    PrinterJob printerJob = PrinterJob.getPrinterJob();
    PageFormat pageFormat = printerJob.defaultPage();
    pageFormat.setOrientation(PageFormat.PORTRAIT);
    printerJob.setPrintable(this, pageFormat);
    printerJob.setJobName("Print Test");
    try {if(printerJob.printDialog()) printerJob.print();} catch (PrinterException e) {}
  public int print(Graphics g1, PageFormat pf, int pageIndex) {
    if(pageIndex!=0) return Printable.NO_SUCH_PAGE;
    Graphics2D g=(Graphics2D)g1;
    g.translate(pf.getImageableX(), pf.getImageableY());
    g.setStroke(new BasicStroke(0.0f));
    g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    paint(g);
    Toolkit.getDefaultToolkit().beep();
    return Printable.PAGE_EXISTS;
  public void paint(Graphics g1) {
    Graphics2D g = (Graphics2D) g1; // Have to use the 72dpi to convert
    g.drawRect(0,0, 1*72, 2*72); // 1" by 2" box
    int n=2540/72; // 1 unit = 10 microns if divided by n (my existing C++ uses 10 micron units). To stay with integer math, use division, so that n is large.
    g.drawRect(0,0, 1000/n, 2000/n); // 1cm by 2cm box
}

Similar Messages

  • How to create a rectangle per entering dimensions rather than by drawing it

    how to create a rectangle per entering dimensions rather than by drawing it

    ReNewUs,
    Just click with the Rectangle Tool somewhere on the Artboard, then insert Width and height.

  • I am in the print mode  but the dimensions I select in the size template do not show up on either the cell size or the photo,  i.e. select 4x6 template lR gives me 3.5x4 8x10 gives me 5.19x3,50 I have to use 8x10 template in order to get 3.5x5.194

    The sizes on the print template do not relate to the size I get in the cell size or on the photo. Template 8x10 gives me 3.5 x5.194 which is on the cell size can't make it any larger. 4X6 template gives me 3.5x4 which is the same as the cell size.  My printer is a new epson 3000 which is set to print 4x6 but LR does not give the 4x6 dimension to the printer just the aforementioned sizes!!!! I have tried everything to get it to print properly to no avail.   The photo system that came with the computer an iMac 27" pro 2013  with yosemite as the os.works fine with he printer!  You just cannot do much other than print with it
    Anybody have any idea what happened?  It used to work fine ____about a week and a half ago
    HELP
    len

    Hi,
    I tried the example and got some weird error messages as follows:
    ********* error messages*********
    ShowComponent.java:90: cannot resolve symbol
    symbol : method getName ()
    location: class javax.swing.UIManager.LookAndFeelInfo[]
    { String plafName = plafs.getName();
    ^
    ShowComponent.java:91: cannot resolve symbol
    symbol : method getClassName ()
    location: class javax.swing.UIManager.LookAndFeelInfo[]
    final String plafClassName = plafs.getClassName();
    ^
    ShowComponent.java:139: cannot resolve symbol
    symbol : method indexOf (char)
    location: class java.lang.String[]
    int equalsPos = args.indexOf('=');
    ^
    ShowComponent.java:143: cannot resolve symbol
    symbol : method forName (java.lang.String[])
    location: class java.lang.Class
    Class componentClass = Class.forName(args);
    ^
    ShowComponent.java:161: cannot resolve symbol
    symbol : method substring (int,int)
    location: class java.lang.String[]
    String name = args.substring(0, equalsPos); //property name
    ^
    ShowComponent.java:162: cannot resolve symbol
    symbol : method substring (int)
    location: class java.lang.String[]
    String value = args.substring(equalsPos+1); //property value
    ^
    6 errors.
    *****end of error messages*****
    I use jdk1.3 and Win2000. Can anybody tell me how to delete above error messages?
    Thanks a lot.
    Li

  • Print report with diferent dimensions

    i need print a report that print a page
    with exatly 6.7x4.0 inches and stop. i make a report in report 6i windows nt and my printer don't have a custom settings. only a4 letter and b5. I have a continous page on printer and i need that the report stop when finished print 4.0 height

    Hi,
    You can go ahead. The max. size is <b>1023</b> chars.
    REPORT zfr1000g
           NO STANDARD PAGE HEADING
           LINE-SIZE 999
           MESSAGE-ID fr.
    Regards,
    Anjali.
    Refer the Documentation on Reports.
    ... LINE-SIZE col
    Effect
    Creates a report with col columns per line.
    If the LINE-SIZE specification is missing, the line length corresponds to the current screen width. The system field SY-LINSZ contains the current line size for generating lists. The maximum width of a list is 1023 characters. You should keep lists to the minimum possible size to improve useability and performance (recommendation: LINE-SIZE < 132). For very wide lists (LINE-SIZE > 255), you should consult the notes for using LINE-SIZE

  • Batch Print Images in Their Original Dimensions CS5?

    How can I batch print multiple images that have various dimensions and have them printed at their original dimensions? I used to be able to do this in CS3 but now I'm using CS5 Creative Suite in Windows 7, all the images are printed at the same dimensions. Any help would be greately appreciated.

    Then again it may have to do with the images you recorded the action with. It might have been small and center images was checked so the offsets are large. I do not know the answer I don't Batch print and have not create actions with print steps.  You may want to try to recorde the action a bit differently. Open a document (image) then go through the steps to print it. That is Open the print dialog and select the printer and set up its defaults paper and orientation like landscape from paper tray 8.5 x 11.  After doing that don't print just exit the print dialog.   You may want to download my crafting action package there is a utility script that will rotate protrait images to lanscape you may want to include in you action and an other long side print size it you want to fit the image to the paper. Any way when you record the action print step record menu File>Print One Copy.   Print One Copy does not record anything about size.
    http://www.mouseprints.net/old/dpr/JJMacksCraftingActions.zip
    Contains:
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action http://www.mouseprints.net/old/dpr/WM900x600.jpg
    Sample Actions.txt Photoshop CraftedActions set saved as a text file. This file has some additional comments I inserted describing how the actions work.
    12 Scripts for actions

  • Final print dimensions different to print preview

    I have been trying to print A2 prints on a 24inch/615cm wide (A1) roll. The final sheet is square i.e. 615x615 with the image off centre. I have gone into page setup and checked everything and even the preview indicates all is well until I print and then the dimensions are all incorrect. Suggestions? Thanks.

    Hi Narasimhan,
    Yes, your guess is correct. We have tried out the possibility of controlling the print from the user status configuration side of things, but as the user status is at an Operation level, the system status at the header level still gets set, confusing the user that a print was created.
    Any other ideas / alternates ?
    Cheers,
    Ashok.

  • Finding features in InDesign, I want a rectangle known coordinates can move I would be glad if you write for this scprit

    finding features in InDesign, I want a rectangle known coordinates can move
    I would be glad if you write for this scprit

    Thank you very much, but
    In this script document with facing pages, single pages (3, 5, 7, ...) does
    not process
    I want to do my
    The height and width of a rectangle with known or find text frame, changing
    the height and width, to move to a point
    I'm glad I sent you edit scprit
    var findX, findY, changeX, changeY, moveX, moveY;
    var diyalogWindow = app.dialogs.add();
    with(diyalogWindow){
      with(dialogColumns.add()){
    with(borderPanels.add()){
    with(dialogColumns.add()) {
    staticTexts.add({staticLabel:"FİND X"});
                         findX = textEditboxes.add();
                        staticTexts.add();
                          findY = textEditboxes.add();
    with(dialogColumns.add()) {
         staticTexts.add({staticLabel:"CHANGE X"});
                          changeX = textEditboxes.add();
                          staticTexts.add();
                          changeY = textEditboxes.add();
             with(dialogColumns.add()) {
         staticTexts.add({staticLabel:"MOVE X"});
                          moveX = textEditboxes.add();
                          staticTexts.add();
                          moveY = textEditboxes.add();
    if(diyalogWindow.show() == 1) {
    var myDocument=app.activeDocument;
    var p;
    for(p=0; p < myDocument.selection.length; ++p) {
    myDocument.selection[p].move();
    // ................... how contined ???
    2014-09-03 15:19 GMT+03:00 vandy88 <[email protected]>:
        finding features in InDesign, I want a rectangle known coordinates
    can move I would be glad if you write for this scprit  created by vandy88
    <https://forums.adobe.com/people/vandy88> in InDesign Scripting - View
    the full discussion <https://forums.adobe.com/message/6697059#6697059>

  • I have an HP Laserjet 5m monochrome printer that I have used for years with our three Mac computers

    HP Laserjet 5m monochrome printer C3917A (1997)
    Operating system: OSX 10.7.4
    Error message: Printer busy
    No known changes made to system or configuration
    I have an HP Laserjet 5m monochrome printer that I have used for years with our three Mac computers (two on OS X Lion and one on  Leopard). I'm using ethernet to connect to a router and then my computer (although I have also tried to connect directly to no avail.) We went away for 2 weeks, returned and got “Printer busy” for all 3 computers. I reset the printer to factory settings. Same problem. By the way, the printer says READY. I then went to System prefs and clicked ‘–‘ in the Print & Scan section to remove the printer. When I tried to add back the printer, nothing shows up. I now remember that this may be because the means of communicating with the printer has now changed and that I had found the printer by somehow adding its address settings (or something). Can anyone help me to reconnect with the printer? 
    This question was solved.
    View Solution.

    Download and install this: http://support.apple.com/kb/DL907
    Reset the printing system:
    - Go to System Preferences > Print & Scan
    - Right (or control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add a printer. Select the Defualt tab on the top of the window. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Why does my image not reach the edges of the page when printed, but appears fine as pdf?

    Why does my image not reach the edges of the page when printed, but appears fine as pdf?

    Check a printable area of your printer.
    Make a (grey) rectangle that is larger than the paper size. Print it,
    you'll get a message that some cropping will occur, that's okay. Then take a
    ruler and measure the dimensions of the rectangle printed on the paper or
    the white borders around the printed rectangle.

  • Are there any known issues with focus stacking or auto align causing PS to stop responding?

    Are there any known issues with focus stacking or auto align causing PS to stop responding?

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Undesired scaling when printing from SWF

    Greetings, all -
    I'm helping a client develop a solution for making certain
    proprietary documents available on their Web site. The goal is to
    make it easy for visitors to print the documents, but not to
    download them, modify them or copy text from them. Since the
    documents start out in PDF format (well, actually in QuarkXPress,
    but the typesetter sends them to my client as PDFs), it seemed like
    a good plan to convert the PDFs to SWF using Print2Flash, and then
    set up a custom Flash UI on the site that displays requested
    documents and offers a Print button -- but no Select Text tool (to
    prevent copying text) and no link to a downloadable PDF.
    The Flash UI has been developed and we are now in a testing
    phase, but a fairly major problem has surfaced. To my surprise, the
    printed output is being scaled to a smaller size than the actual
    document, seemingly without regard to print driver settings. When I
    became aware of the problem I created two test documents in
    Microsoft Publisher -- one with a simple rectangle (1-pixel black
    border, no fill) whose edges sit exactly 0.25-inch from the page
    edges, and another with the same rectangle but at 0.5-inch from the
    edges. I created SWF files from these documents (actually I tried
    both Publisher -> PDF -> SWF and Publisher directly to SWF,
    but the results were identical) and printed them from the Flash UI.
    The 0.25-inch document produced output that placed the top and left
    borders at 0.34375-inch (11/32) from the page edge, the right
    border at 0.5-inch, and the bottom border at 0.59375-inch (19/32).
    The 0.5-inch document placed the top and left borders at 0.625-inch
    (5/8), the right border at 0.75-inch (3/4) and the bottom border at
    0.8125-inch (13/16). So not only is the output being scaled, but
    it's actually being distorted as the scaling isn't uniform.
    I suppose I should mention here that it's extremely important
    to my client that these documents print at their proper dimensions,
    or at least as close to that ideal as possible. The results I'm
    getting now just aren't acceptable, and I'm not sure what to do.
    A few more facts from my testing:
    - If I print these test documents directly from MS Publisher,
    OR from a PDF version, the results are accurate and properly sized.
    - It would seem that our custom Flash UI is not at fault,
    because opening these SWF documents in the standalone Flash Player
    gives the same results.
    - Not EVERY printer I tested gives bad results; one inkjet
    printer (Epson R200) outputs the documents accurately, and that's
    without any special "borderless" or "maximum printable area"
    options turned on. However, every laser printer I've tested so far
    has produced the scaled-down version. The only exception has been a
    high-end imaging unit that offers a "full bleed" option -- when
    that's turned on, that printer produces accurate results.
    In order for this solution to be workable, we really can't
    ask the users to mess around with tweaking options in their print
    drivers -- some users have trouble finding and adjusting these
    options, and with thousands of drivers out there it's impossible to
    predict how they're labeled in order to provide clear instructions.
    Again, when I print these test documents from PDF or Publisher, no
    special settings are required to get accurate output.
    Given how popular Flash has become, it's hard for me to
    believe that no one else has encountered this problem; it would
    surprise me if we're doing anything that's terribly unique or
    unusual. At the same time, I understand that most Flash content is
    intended to be an onscreen experience rather than being oriented
    toward printing hard copy. In any case, my searches of this forum
    haven't turned up anything that seems to match my situation. So I
    guess I'm hoping that someone here has run into this before, or at
    least that someone has a broad enough knowledge of Flash to know of
    certain code parameters that need to be tweaked in the Player
    and/or in our SWF files to get us closer to the accurate output we
    need.
    I apologize for my wordiness...I'm just trying to supply as
    much data as possible and anticipate some of the questions that
    would likely come up. I'll close now and await your responses.
    Needless to say, I would appreciate ANY input. And of course, if
    this HAS been covered and answered in another thread somewhere,
    please point me there and accept my apologies for the redundancy.
    Pat

    Greetings, all -
    I'm helping a client develop a solution for making certain
    proprietary documents available on their Web site. The goal is to
    make it easy for visitors to print the documents, but not to
    download them, modify them or copy text from them. Since the
    documents start out in PDF format (well, actually in QuarkXPress,
    but the typesetter sends them to my client as PDFs), it seemed like
    a good plan to convert the PDFs to SWF using Print2Flash, and then
    set up a custom Flash UI on the site that displays requested
    documents and offers a Print button -- but no Select Text tool (to
    prevent copying text) and no link to a downloadable PDF.
    The Flash UI has been developed and we are now in a testing
    phase, but a fairly major problem has surfaced. To my surprise, the
    printed output is being scaled to a smaller size than the actual
    document, seemingly without regard to print driver settings. When I
    became aware of the problem I created two test documents in
    Microsoft Publisher -- one with a simple rectangle (1-pixel black
    border, no fill) whose edges sit exactly 0.25-inch from the page
    edges, and another with the same rectangle but at 0.5-inch from the
    edges. I created SWF files from these documents (actually I tried
    both Publisher -> PDF -> SWF and Publisher directly to SWF,
    but the results were identical) and printed them from the Flash UI.
    The 0.25-inch document produced output that placed the top and left
    borders at 0.34375-inch (11/32) from the page edge, the right
    border at 0.5-inch, and the bottom border at 0.59375-inch (19/32).
    The 0.5-inch document placed the top and left borders at 0.625-inch
    (5/8), the right border at 0.75-inch (3/4) and the bottom border at
    0.8125-inch (13/16). So not only is the output being scaled, but
    it's actually being distorted as the scaling isn't uniform.
    I suppose I should mention here that it's extremely important
    to my client that these documents print at their proper dimensions,
    or at least as close to that ideal as possible. The results I'm
    getting now just aren't acceptable, and I'm not sure what to do.
    A few more facts from my testing:
    - If I print these test documents directly from MS Publisher,
    OR from a PDF version, the results are accurate and properly sized.
    - It would seem that our custom Flash UI is not at fault,
    because opening these SWF documents in the standalone Flash Player
    gives the same results.
    - Not EVERY printer I tested gives bad results; one inkjet
    printer (Epson R200) outputs the documents accurately, and that's
    without any special "borderless" or "maximum printable area"
    options turned on. However, every laser printer I've tested so far
    has produced the scaled-down version. The only exception has been a
    high-end imaging unit that offers a "full bleed" option -- when
    that's turned on, that printer produces accurate results.
    In order for this solution to be workable, we really can't
    ask the users to mess around with tweaking options in their print
    drivers -- some users have trouble finding and adjusting these
    options, and with thousands of drivers out there it's impossible to
    predict how they're labeled in order to provide clear instructions.
    Again, when I print these test documents from PDF or Publisher, no
    special settings are required to get accurate output.
    Given how popular Flash has become, it's hard for me to
    believe that no one else has encountered this problem; it would
    surprise me if we're doing anything that's terribly unique or
    unusual. At the same time, I understand that most Flash content is
    intended to be an onscreen experience rather than being oriented
    toward printing hard copy. In any case, my searches of this forum
    haven't turned up anything that seems to match my situation. So I
    guess I'm hoping that someone here has run into this before, or at
    least that someone has a broad enough knowledge of Flash to know of
    certain code parameters that need to be tweaked in the Player
    and/or in our SWF files to get us closer to the accurate output we
    need.
    I apologize for my wordiness...I'm just trying to supply as
    much data as possible and anticipate some of the questions that
    would likely come up. I'll close now and await your responses.
    Needless to say, I would appreciate ANY input. And of course, if
    this HAS been covered and answered in another thread somewhere,
    please point me there and accept my apologies for the redundancy.
    Pat

  • How to send a report DIRECTLY to the printer (Linux App. Svr.)?

    Here is the problem:
    -- We have Windows clients / Linux App Server / Forms 10g R2.
    -- Printers are attached to the Windows clients.
    -- When we want to send DIRECTLY to the printer, we have to write data into a text file (using TEXT_IO) &
    -- print the same using command HOST('lp -d '||<printer IP of logged in user>t||' '||<file name>,NO_SCREEN).
    -- Our normal reports are displayed as PDFs.
    Is there a way to directly send the PDF to the printer without having to re-write the report to a text file?? Then we can just use the PDF output and don't have to do any code changes (i.e. redo every report).
    Edited by: user12240205 on May 16, 2011 5:59 AM
    Edited by: user12240205 on May 16, 2011 5:59 AM

    InoL wrote:
    Use destype=printer.
    The printer on the Windows client has to be defined as a network printer and be known on the Linux server.
    Other options:
    - use the orarrp utility
    - if you call your Reports from Forms, you can use a Java bean
    http://forms.pjc.bean.over-blog.com/article-6621538.html
    Thank you for the quick response. Can u please tell us how to make the printer "known" as a Linux server?? Will a normal network admin know how to do this or is it an Oracle developer's task?

  • How to print multiple small pages on 1 sheet of paper without changing size

    I have a document 85x110mm which I want to print *at exactly that size* 4 times on a sheet of A4 paper. I have duplicated the pages in the document (so there are 4 of them) and in print -> layout I can choose that they all go onto one sheet. BUT they get resized. In print -> paper handling there is an option 'destination paper size' (sounds hopeful...) where I can choose 'document paper size: letter' or 'scale to fit paper size: my custom 85x110 page'. The paper size isn't letter; it's 85x110mm; and my default paper size is A4. The first option seems to lay out the pages to letter, but resizes them anyway, and the second option lays them out to A4, but resizes them. Where's the missing function which lets me *keep everything at the correct size*?
    Possible workaround: if I can lay out the 4 pages on one A4 page that would do - but I need to specify their exact layout in centimetres. I tried modifying a business card layout, but it seemed to want me to set the positions of every element in every card manually. I can't do that precisely enough.

    Hello
    I know that Pages is using its own algorithm to resize pages when it put several of them on a single sheet.
    This is why I use this tip.
    I draw a rectangle whose size is supposed to be the final one.
    I give it a white background and a black border whose thickness is set to one point.
    For the tests I just insert three page breaks so that the document is a four pages one.
    I print it as is.
    Doing that, I may measure the printed rectangle.
    Of course, at first attempt it doesn't match the required size.
    It's easy to compute the required adjustments.
    When the correct factor is reached, it is easy to build the complete document so that it prints the correct size.
    Doing that I never got odd results but maybe it's because I am a lucky guy.
    Of course, disagreeing with one advice doesn't mean that I don't respect it.
    I respect your opinion, _on other matters too_
    Yvan KOENIG (from FRANCE mardi 6 mai 2008 17:24:09)

  • Job prints but is then stuck in queue - LaserJet P1102 with JetDirect 175x print server

    Hello,
    I have an unusual error happening when i try to install my P1102 through a print server. Everything installs ok and allows me to print a test page, the next document i try to print prints ok but the job remains in the queue and stays there. After a couple of minutes saying Printing it then says Error, and any other attempts at printing get stuck behind this job. Then, if i dont delete the job in error from the queue it will print this document every 10 mins until deleted or i switch the printer off!
    The set up is a LaserJet P1102 attached to a JetDirect 175x print server, PC running Win7 x86
    Things i have tried:
    - Install on another pc. Tried both Win 7 x86 and x64
    - Changed print server for known working one
    - Connected via USB, printer works fine
    Any suggestions? Thanks in advance

    Hi CompassCC, 
    The jetdirect 175 is a commercial line product. Check out the support documentation from the link below. 
    http://h20000.www2.hp.com/bizsupport/TechSupport/Home.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesI...
    You may want to repost your questions on the commercial support forum at the links below. 
    http://h30499.www3.hp.com/t5/Business-Support-Forums/ct-p/business-support 
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413 
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Jobs show twice in print queue - won't delete and won't print

    I have an HP Laserjet P1006 running on a HP laptop running Windows 7 64 bit.  Printer has worked fine for 8 months but recently ran into problems. 
    When I send a print job to it, the printer doesn't print.  If I open up the print queue, the job shows up twice.  If I try to delete the jobs, they don't delete.  I can use the HP Print Diagnostic Utility to get the jobs cleared out of the queue, but the same thing happens the next time I try to print something. 
    A Few Other Items to Note:
    - I don't get any error lights on the printer. 
    - I brought home a laptop from home running XP and installed the printer using the CD.  The printer worked fine with that computer, so I don't think it's a problem with the printer hardware.
    - I have tried uninstalling the printer, both using the CD that came with it and with the latest drivers/software from the website.  Didn't do anything (same problem occurs when printing a test page).
    - HP Print Diagnostic Utility doesn't find anything wrong.  Likewise, if I right click on the printer and click Troubleshoot, that doesn't help either.
    - I've tried restarting the print spooler, but that didn't do anything. 

    Hard Reset – While printer is powered ON, pull the power cord from the printer then from the wall. After 30 seconds reconnect power to wall and printer. This will trigger a ‘dirty power up’ and restore the printer to a known good condition (if it is possible). No user settings are lost with a ‘hard reset’.
    This ‘Hard Reset’ is one of the most powerful tools to use when the printer hardware is not functioning properly!
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

Maybe you are looking for