Blank pages from print job

The code below is written in JDK 1.1.8. When I run it uder JDK 1.4.1, I get the right number of pages, but all blank.
how do I fix his?
Many thanks in advance.
          } else if ( DnDTable1.validRowsTotal == 2 ) { 
               pjob = frame.getToolkit().getPrintJob(frame, "Printing Test", null);
               if (pjob != null) {
                    Graphics pg1 = pjob.getGraphics();
                    if (pg1 != null) {
                         frame.repaint();
                         page1.printAll(pg1);
                         pg1.dispose(); // flush page
                    Graphics pg2 = pjob.getGraphics();
                    if (pg2 != null) {
                         panelEast.remove( page1 );
                         panelEast.add( page2 );
                         frame.repaint();
                         page_showing = 2;
                         page2.printAll(pg2);
                         pg2.dispose();
                  paintTimer.start();
                    pjob.end();
          

replace the toner cartridge in the printer :-)

Similar Messages

  • Blank pages from printer

    I have a Mac, os X Yosemite, version 10.10.1
    My printer is HP F4280 Deskjet All-in-one
    I changed my printer ink and now all I get is blank pages. I have tried copy/ scanning and printing a test page, all are blank.
    I have updated my drivers and still get blank pages? 
    Thanks for any help. 

    Welcome to the HP Community @TN4444,
    I understand you have changed your ink cartridges in your Deskjet F4280 and now all scans, copies, and print outs are blank. I sure will try to help!
    Because you mentioned copies and scans are also blank, this makes me think that the cartridges could be defective, or the printhead in the printer could have failed. I would rule out a software problem as the copies are blank and copies do not involve the computer at all. I wouldn't suggest software troubleshooting until and if the ink will print out on a standard copy.
    Please try the steps in this guide for ink cartridge problems: 'Print Cartridge Problem', 'Incompatible Cartridge', 'Incorrectly Installed Cartridge', or 'Print Ca...
    Tip: When you reset the printer, ensure it's plugged in directly to the wall outlet, avoiding power bars and surge protectors. This ensures the printer is receiving full power and may help greatly.
    Write me back with the outcome from the steps above and if any ink will print out on a copy, and we will go from there!
    Good luck, I hope this helps you
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • HP c309a printing blank pages from new Dell Win8 laptop

    I have a c309a installed on the network via LAN to the router.  It works fine with Win-Vista and Win-7 computers wired and wirelessly connected to the network.
    A new Dell laptop with Win-8 is connecting to printer, but nothing but blank pages comes out of the printer - even when trying to print a test page from Printer Properties in Windows.
    I have tried to istall the complete HP printer software from the HP website, also via HP Print and Scan Doctor, which din in fact install on the laptop, as well as from the disc that came with the printer - but in vain.  I have downdoaded the software repeatedly. It runs the file extraction, but nothing happens when done.  Not even an error message.  When attempting to run setup.exe from the disc, nothing happens either. The disc runs for little while, then stops.  No error massage in this case either.
    I have removed the free McAfee security program that came with the laptop, in the hope that it was terminating the installation, but to no avail.
    Please help!   

    Hi viben,
    I understand you are having issues installing the HP software on your new Dell with Windows 8, and that you can not print from the windows 8 machine as you get only blank pages. Please try the following steps and let me know how it works out.
    Hold down the Windows Logo key () on the keyboard and the 'R' to open the run box, type %temp%
    Delete all files and folders from the temp folder. Choose skip if any pop ups appear saying any of the files could not be deleted
    Download the software and choose to save as, save to desktop > HP Photosmart Premium Fax All-in-One C309 Series Full Feature Software and Driver
    After the software downloads and extracts, open the temp folder again, use the instructions from step 1.
    Look for, and open the folder starting with 7z (Example: 7zS2356)
    Open folder Util
    Open folder CCC
    If you have an HP computer run the L3uninstall.exe. If you have anon-HP computer run the L4uninstall.exe
    When the uninstall has completed restart the computer
    Follow these steps to reset the registry settings and options for Windows Installer.
    Hold down the Windows Logo key on the keyboard and the 'R' to open the run box
    In the Open box, type msiexec /unregister, and then click OK.
    Hold down the Windows Logo key on the keyboard and the 'R' to open the run box
    In the Open box, type msiexec /regserver, and then click OK
    If you have any difficulty with this step, please use this link to perform it another way. Restarting Windows Installer
    Run Disk cleanup from Accessories\ System Tool < How to Delete files using Disk Cleanup
    Download and install the latest version of Adobe flash player http://www.adobe.com/support/flashplayer/downloads.html
    Restart the computer
    Download and run the HP Printer Install Wizard for Windows
    The HP Printer Install Wizard for Window was created to help Windows 7, Windows 8, and Windows 8.1 users download and install the latest and most appropriate HP software solution for their HP Printer.
    It is a good idea to keep your antivirus and firewalls off while troubleshooting, but don't forget to turn them back on after!
    I hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • My printer prints blank pages from my documents but prints pages from e-mail fine

    My HP printer prints blank pages from my documents.  When I print any other pages it prints fine.  Thank you

    Please read this post then provide some details.  What printer model? What operating system? How is the printer connected - USB, wired LAN, Wireless LAN, bluetooth? Are there any error messages on the printer or computer screen?
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Hp 6510 prints fine from laptop but only prints blank pages from ipad

    Printer prints fine from my laptop but will only spit out blank pages from my ipad.  It used to print fine from the ipad.

    RESOLVED!!!!
    I called HP regarding this issue, and was connected with a very nice woman out of India, Lola, who resolved the problem for both my Google Nexus 7 tablet running android 4.4.4 and also my iphone 5s.  Its the printer, and its wi-fi connection, along with the app.
    Here were the steps to resolve:
    1. Make absolutely sure you dont have a cable going into your printer from your router or modem.  Then make sure your connected to wi-fi if on your printer if you did.  (If you had a cable connected, re-run the wi-fi setup wizard for your printer, preferably on the printer itself, not your computer.
    2. Sounds crazy, but verify your wi-fi is actually on.  Click on the wi-fi button on your printer, and you should also have a light that signals your wi -fi is actually connected (at least on the Officejet 6700 that I am using, it does).
    3. Make sure you still have HP Eprint on your phone and/or tablet.  Check that you have your settings correct in your HP Eprint setup options, including the email address you want to use for your account.  If you don't, you will need to enter it, then click activate on HP Eprint.  It will send you a code via email. Copy/paste the code into the HP Eprint setup.
    4. Once you're sure you have your printer re-connected to wi-fi correctly, and no cables attached; resart your printer, and re-start your phone/tablet.  Once everything has re-booted its time to test....
    5. Test Printing: First test printing drictly from HP Eprint's app, selecting a file... then test using a webpage from your browser, to ensure its running correctly through Airprint (which is best, secondary is Google Cloud Print).
    If you are still having trouble, re-boot everything again, double check your wi-fi on your printer, and that you have your settings correct in your HP Eprint from above.  If that doesn't work for you, call HP at (855) 785-2777 and select HP EPrint for assistance.
    Good Luck & Happy Printing!

  • HP printer only prints blank pages from Word or Pages

    My HP all in one printer only prints blank pages from Word or Pages documents, prints ok from anything else.  Any ideas? Have deleted and readded printer removed HP software reinstalled software from Apple etc. Help please!

    If this just happens from these two programs, it's most likely a driver conflict.  If typically using an alternate driver will alow you to get around this.  To try this, add the printer's que to the Mac.  Click the dropdown next to Use and choose a driver that's not for your printer.  Typically the best one to try is another Photosmart dirver, but Deskjet drivers will work as well.  I would make the instructions a bit more clear, but I don't have access to a 10.6 Mac.  Let me know if this works or not. 
    I am a printer tech for HP.

  • Blank pages while printing in BO6.5.1

    Post Author: Saravanan Perumal
    CA Forum: Desktop Intelligence Reporting
    Hi,
    I'm trying to create a Business objects report 6.5 with more tables and cells than will fit across one page. This results blank pages while printing, Is there any option to fit the cells and Tables into the first page that extended to the second page.
    Any one having the idea regarding kindly let me know.
    Thanks in advance!
    Br
    Saravanan.

    Hello,
    BLANKPAGES specifies whether to suppress blank pages when you print a report. Use this keyword when there are blank pages in your report output that you do not want to print.
    rwclient.exe server=<repserver_name> report=only_main.RDF userid=scott/tiger@orcl destype=file desformat=pdf BLANKPAGES=NO
    Another solution would be the use of srw.abort_program:
    If there is no data, the report is not run:
    SRW.PROGRAM_ABORT needs to be called from a format trigger and since any object within repeating frame ( based on main query) will not be formatted unless there is data, So need to have a "Boilerplate Text" outside of Frame and placed at "Main Section"-> "Body". This Text object will have Following format Trigger.
    begin
    if :data_yn ='Y' then
    null;
    else
    SRW.MESSAGE(100, 'No Data to run report ');
    raise SRW.PROGRAM_ABORT;
    end if;
    return (False);
    end;
    Here return (false) as do not want to print the text.
    data_yn is a user parameter variable, Not exposed to user or at Parameter Page.
    There is PL/SQL Filter Written at the Main Query at Data Modal as
    function G_EMPNOGroupFilter return boolean is
    begin
    Select 'Y' into :data_yn from dual;
    return (TRUE);
    end;
    This Helps in setting data_yn to Y is there is data returned by the underlying Query. by default this is Null.
    So when Report is executed by passing 2 as value to 'no', Query does not returns any row, So PL/SQL filter will not run and while formatting Blank report, format trigger of the "Text Object" will raise exception to abort report, thus no output.
    Similarly if there is data returned by Query then PL/SQL filer will set 'Y' to data_yn and "Text object" format trigger will not raise Exception.
    Regards,
    Alex

  • Can't Stop Cover Page from Printing

    Every time a user prints a report, they are getting a cover page as listed below. If there is a way, how can we stop this cover page from printing? Thanka ahead of time.
    ########## User: applmgr@prowvdb1
    ##### Title: JDoe.649719
    ##### Date: Mon 09:35 Aug 20, 2007
    ##### Job: Lazerjet5326_HP-12721
    #####

    Hello,
    This seems to be what is called a "Separator page" in Windows printer driver.
    Separator pages are used at the beginning of each document to make it
    easy to find a document among others at the printer
    On Windows, it is a "Printer Driver" setting
    Regards

  • OSX 10.3.9 - Blank page when printing to HP LaserJet 2430.

    Hi all,
    I have a problem with a user who has a G5 running OSX 10.3.9.
    Initially they were able to print to the printer fine but as of Friday last week it just prints a blank page.
    The printer is setup on a print server and the Mac has it setup via an LPD queue.
    It was setup to use an HP2300 print driver and that was fine. But has since stopped working. I installed the proper 2430 driver but get the same problem.
    I've tried dumping the apple.print.*.plist preferences but still it only prints out a blank page from every application I've tried i.e. Word 2004, Text Edit, Adobe Acrobat etc...
    You can print to other printers no problem. I can also print from another identical model Mac to the troublesome printer.
    Has anybody got any further suggestions?
    Much appreciated!
    Richard

    Not sure, but look at these links.
    Troubleshooting printing issues in Mac OS X
    http://docs.info.apple.com/article.html?artnum=106714
    Mac OS X: About the Reset Printing System feature
    http://support.apple.com/kb/HT1341?viewlocale=en_US
     Cheers, Tom

  • Scanning multiple pages from print book into computer

    How to scan multiple pages from print book into computer? Someone supplied a link to this question, but I got stuck at step 1: Where is "HP Director software"? In other directions, it says to open the "HP Scan window," but that option is not available to me when I follow the directions. I have an HP 2159m computer, HP Photosmart Plus all-in-one, Windows 7, and use Firefox, if that's any help.
    TIA

    I have a similar problem:
    I am using an HP Officejet 6310xi via its TWAIN interface.  Regardless of which application invokes TWAIN (whether Irfanview, Thumbs Plus, or something else), the scanner dialog closes after transferring each scanned image.  To scan the next page requires re-starting the scanner, beginning with a whole new preview and re-entering all my scan settings.  This is only an issue with the HP scanner, not with my Cannon CanoScan LIDE 100, Visioneer OneTouch 8920, or any other scanner, each of whose scanner dialogs stay open for scan after scan.  Can anyone help me make the HP scanner dialog stay open for multiple pages?
    Note: Based on a suggestion on another site I set my scan preferences to include "Prompt for Additional Scans from Glass" as follows, but it did not help.
    I am experienced at scanning, but I find it extremely frustrating that the HP scan dialog closes, forgetting its settings, after each page.
    If it helps others, I gladly share my article, "Freedom from Paper--At Last" here
    http://www.richpasco.org/paperless.html

  • How Do I delete a blank page from a multiple page doc in Adobe XI?

    How Do I delete a blank page from a multiple page doc in Adobe XI?

    Thank you Claudio.  That's like an ultimate bummer!  So frustrating.  Thank
    you for taking the time to answer my question.
    Best,
    Robert
    Best,
            Robert
    On Sat, Mar 8, 2014 at 10:03 PM, Claudio González

  • Smartform: Blank page gets Printed

    Hi All,
    in my smart form i have two pages, Second page contains main window.
    i have restricted my first page with some conditions , so that first page data will not be printed.
    if i execute the smartform first page is printed blank without any data.
    is there any option to avoid the blank page getting printed????
    Regards,
    Dinesh R

    Hi Dinesh,
    One reason for getting a blank page is if the windows are overlapped in the page layout. Please check and see if any window is overlapping.
    Else, check for "page break" . This is a check box . Once this is activated for a text or window or page, it directs you to a new page. Probably this might be the problem.
    Hope this helps.
    Thanks,
    Prisford Pereira.

  • Windows 8.1 printing blank pages from all apps

    Morning Tech Support:  My favorite people!!  This just began within the this week where what ever appl I attempt to print from, prints blank pages.  Upon viewing the print spooler, it shows doc going into printer okay, no probs w/ margins
    or page size (already checked). Printer is Canon MG5400 (newer).  I've already rebooted turned on the computer where the computer is installed.  What else could it be.  Working on installing new updates that just came down as well.  
    HELP!!!!
    s.hamel

    Try install all updates for Windows and check for update for latest version of your printer's software.
    Try run a test print and check if it works.
    Also check the cartridge and make sure they are okay.
    You may contact Canon's support too. 

  • Page Count Missing From Print Job Status Window

    When I print a multi-page document from TextEdit or AppleWorks, the Print Status window does not show the page count. Instead it always shows "Sheet 1 of 1".
    Both TextEdit and AppleWorks show the document as having four pages. A print preview from AppleWorks confirms the document does have four pages. Yet when the document is printed the Print Status window continues to show only "Sheet 1 of 1" with no indication that the document actually has a total of four pages. Nor does it show which pages is currently printing.
    I am running Mac OS X 10.5.8. If I recall correctly, previous versions of Mac OS X showed both the total page count and the currently printing page number, which incremented as the job printed. As it is, there is no way to know the progress of a large print job.
    Any idea what is wrong?
    Thanks.

    Could some check their print status window while a job is printing? Does it always show "Sheet 1 of 1" or does it show the page count that increments as the job prints?
    Thanks.

  • I can' print anything from firefox (emails, web pages, etc.) I get blank pages from my printer.

    Whenever I go to the print option in the file menu, my pages do not print. Blank pages come out of the printer. I have checked all of the setup that I know. This is not a problem if I go to Google Chrome or other browser. Only a problem with firefox. Even on the print preview it shows up blank. Any suggestions?

    Sorry, Firefox doesn't use the Windows "default printer" as the default printer, but rather it uses the last used printer as the "default". That doesn't always happen when the printer involved goes into stand-by and is "offline", from what I have seen on my small LAN.
    Just one of the hundreds of print related Bugs or nuisances in Firefox that I doubt will ever be fixed, until they write all new code for printing

Maybe you are looking for