Problem printing components

[reposted from Java programming forum]
Hi. I have subclassed a JTable, and made it implement Printable. If I have one of these components (with several rows and columns of data), and print it out (using a PrinterJob), it prints out fine 90% of the time.
The other times, some strange things happen. For example, some sections of the table will be missing... or it will cut off at the bottom (even though a footer will print successfully)... or just the right-most portion will print... And it's not that it's only whole table cells that are removed: sometimes the break is in the middle a cell, with the first two and a half characters of the data showing up on the page, for an entire column, etc.
This seems to happen to other subclassed swing components, as well. I'm not totally sure, but it looks like the problem is more likely to happen when there is more data on the component (i.e. more cells in a table). The same thing is happening with a SimpleChart we have subclassed (com.klg.jclass.chart.beans.SimpleChart from JClass); i.e., when there are many points on a graph.
Also, this is not restricted to any particular printer.
Does anyone know why would this happen?
Thanks,
SigurRos

Hi, I have the same problem, i.e. when printing a large report, sometimes it misses pages, or column dividing lines. If you find any solutions, please post it here. Thanks.

Similar Messages

  • HP Photosmart C7280 All-in-one problem printing. Ink System Failure has failed unable to copy--

    I'm having a problem printing on my HP Photosmart C7280 All-In-One. The following message is what came up on the printer screen: Ink System Failure has failed unable to copy, receive faxes or print. Refer to printer documentation Error O.cl9a0007.
    Does anyone have any suggestions?
    This question was solved.
    View Solution.

    Hey Spider! First off welcome to the forum.
    I would recommend removing all the ink cartridges, unplugging the USB cable from the computer that connects to the printer, and then shutting the printer off completely by removing the power cord. Then restart your computer. Turn the printer back on but leave it disconnected from the computer. After it has finished its power on cycle go ahead and insert the ink cartridges back into the printer and be sure to seat them properly.
    After you have all the cartridges back in the printer properly then connect it to the computer. See if this resolves the issue. If not post back with any findings.
    Thanks,
    SeanS
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Problem printing out to a parallelport printer

    Hello, I am using the javax.comm.*; package and I am having problems
    printing to the parallelport.
    Well, it prints out the string but the problem is that the light for paper feed
    starts blinking eventhough there is paper , once I click the paper feed button
    the printer then prints out the string.
    So, basically, everything is ok, apart from that I have to press the paper feed
    button for each time I want to print something.
    There is an error in my code somewhere, but as I am new to port communications I cannot understand what to do.
    Below is my code, please help.
    Thanks!
    public void print(String s){
    Enumeration ports;
    CommPortIdentifier portId;
         try{
              portId = CommPortIdentifier.getPortIdentifier("LPT1");
             addPort(portId,s);
         }catch (NoSuchPortException e){
                     e.printStackTrace();
    public static void addPort(CommPortIdentifier portId,String s){
         try{
              ParallelPort port = (ParallelPort)portId.open("LPT1",2000);
            /*port.notifyOnError(true);
            port.notifyOnBuffer(true);
            port.addEventListener(new ParallelPortEventListener(){
                   public void parallelEvent(ParallelPortEvent ppe){
                           System.out.println(ppe.toString());
                           System.out.println("An event has occured");
              try{
                   OutputStream os = port.getOutputStream();
                   if(os == null){
                        System.out.println("Os is null");
                   else{          
                          os.write(s.getBytes());
                   //os.flush();
              catch(Exception eis){
                   eis.printStackTrace();
              port.close();
         catch(PortInUseException e){
              System.out.println(e.currentOwner);
              e.printStackTrace();
         catch(Exception ecl){
              ecl.printStackTrace();
    }Of course this class imports :
    import java.util.Enumeration;
    import javax.comm.*;
    import javax.comm.CommPort;
    import javax.comm.CommPortIdentifier;
    import javax.comm.ParallelPort;
    import javax.comm.NoSuchPortException;
    import javax.comm.PortInUseException;
    import java.io.*;

    Wow - I wonder how the OP thought that the
    Developers Home > Developer Forums > Java Forums >
    Java Mobility Forums > Consumer and Commerce >Consumer and Commerce General >
    Forum was a correct choice for this problem??It's the same logic that leads one to believe that being new to port communications omits them from the responsibility of using general troubleshooting techniques to isolate/identify a problem.
    This logic often leads to obscure questions also, sadly.

  • Possible solution for problems printing with ICC profiles - esp. R2400

    (N.B. This is long because I've decided to go in to details about the background of the problem etc.. Also note that whilst my experience is with the Epson R2400, anyone with problems printing using ICC profiles in Aperture may find this post helpful, as will be explained further down the post.)
    Ok, here's the situation. I've been an Aperture user for over a year, and an R2400 owner for half a year. In that time I have done a huge amount of experimenting, but I've never managed to get Aperture to work perfectly with Epson's 'premium' R2400 ICC profiles - the ones you can download from their site which are better than the ones provided 'in the box'. This hasn't been too big a deal because, in fact, the R2400 does a rather good job just set to 'System Managed' in Aperture and 'Epson Vivid' with a gamma of 1.8 in the printer driver. Nevertheless, it really annoyed me that something that should work wasn't, which is why I've spent a lot of time trying to figure out what's going on. Having said that, I have come across a method which will give you pretty good prints out of your Epson R2400 using the premium profiles in Aperture - it's not perfect, but it's the best you're going to get if you want to use those profiles in Aperture. I understand the words 'it's not perfect' aren't what photography experts would probably want to hear, however, I have seen a few anguished posts from R2400 owners in here before, so I think some people may find it useful.
    The whole reason why Aperture is hopeless at using the R2400's premium profiles is because - unusually - their default rendering intent is set to 'relative colorimetric' rather than 'perceptual'. You might say 'but that's good - it means you get more accurate colours!', and if you do, you're right... however, there's a snag. To get an image to reproduce well using Epson's premium profiles and relative colorimetric rendering, you really need to use black point compensation. This is where the trouble lies: Aperture's black point compensation is diabolical to the point of being unusable when used with relative colorimetric rendering - I feel I need to be awarded compensation every time I've ever tempted to use the setting. So because BPC in Aperture is unusable, that effectively makes the premium profiles unusable too, because Aperture always uses the default rendering intent specified in the profile.
    The solution? Use perceptual rendering instead. Ok, so you can't change the rendering intent in Aperture, which makes that sound a tad difficult. However, as I said in the above paragraph, Aperture always obeys the default rendering intent specified in the profile... so you can see where we're going with this: we need to change the ICC profiles' default rendering intent from 'relative colorimetric' to 'perceptual'. I did some digging around and found one or two expensive pieces of software that could do that... but then I found that, lo and behold, the Mac OS has a command-line utility which can do the job for us, for precisely £0.00. It's called SIPS or 'Scriptable Image Processing System', and you can find out some information about it here: http://developer.apple.com/technotes/tn/tn2035.html#TNTAG58 For those who don't like reading technical jargon however, here's what you need to do to convert a profile's rendering intent. First go to terminal, then type in the following command:
    sips -s renderingIntent perceptual
    Do not press 'enter' yet. Instead, add a space after 'perceptual', find the ICC profile you want to modify, and click and drag it into the terminal window. You should then find that your command looks something like this:
    sips -s renderingIntent perceptual /Users/yourname/folder/RandomProfile.ICC
    At which point you can then press 'enter', and the command will execute, giving you an ICC profile which will now make Aperture use perceptual rendering.
    There is just one further thing to be aware of after doing this: for some crazy reason, you then need to turn on BPC in Aperture for the prints to come out as good as possible. Black point compensation shouldn't make any difference when using perceptual rendering as the idea of perceptual is that it takes account of things like that anyway, however, in Aperture BPC does make a difference, so remember to turn it on to get a half decent print. In general, I find that prints made using this setup come out pretty well; they almost perfectly match prints made using the profiles with a perceptual intent in Photoshop Elements, except for the fact that Aperture blocks up the shadows a bit more than Photoshop. However, if you can live with that, you might find this is quite a workable solution.
    Now, I said near the beginning of this post that all the above can apply to other printers too. Most printer profiles have 'perceptual' set as their default rendering intent, in which case everything I've just said won't be of much help. However, If you are reading this because you're having problems with ICC profiles in Aperture, but you don't use an Epson R2400, find your problematic ICC profile, double-click on it, and take a look at the window that opens: specifically, at the 'Rendering Intent' the window mentions. If it doesn't say 'Perceptual' then it may well be worth trying the steps I've outlined in this post to set it to perceptual, to see if doing so produces an improvement when using the profile in Aperture.
    Finally, just one note of caution: if you decide to try out the steps I've detailed above on a paid-for custom-made profile, please back your profile up before messing with it. I haven't experienced any problems when using SIPS to change a profile's rendering intent, but I obviously can't guarantee that it won't do something weird and corrupt your expensive custom-made profile.
    If you have any questions, feel free to ask, although (contrary to any impression I may give) I am not a colour-management expert; I'm just someone who doesn't give up when they have a problem that should be solvable.
    Thomas
    Mac Pro 2.0GHz with 30" ACD; 15" MacBook Pro 2.0GHz   Mac OS X (10.4.10)  

    Thomas
    Wow - thanks for such a comprehensive post.
    I have Aperture and a 2400 so this information is exceptionally useful to me.
    Again - thanks for caring and sharing
    Brian

  • Problem printing Report with Image in BI Publisher 11g

    I am working with BI publisher *11g* but I have problem printing images. Everything works fine if I do not include any images however when I add a image I get following problems.
    When I tried printing PDF in output I get
    Type /Xobject
    subtype /Image
    Filter /DTDDecode .......
    When I tried printing HTML output I get
    Type /Xobject
    <html...
    ....>
    When I tried printing RTF I get
    { \fontb1 }
    { \f0 Arial;}
    { \f1 Times:}
    I think I am missing some BI publisher configuration. Can you help me in this regard.
    Thanks,
    Santosh
    Edited by: user4956795 on Jan 16, 2012 2:08 PM
    Edited by: user4956795 on Jan 16, 2012 2:18 PM

    Isn't there a way for you to do this via a Package/Procedure versus having multiple queries?
    Per the BI Publisher guide,
    Following are recommended guidelines for building data models:
    Reduce the number of data sets or queries in your data model as much as possible. In general, the fewer data sets and queries you have, the faster your data model will run. While multiquery data models are often easier to understand, single-query data models tend to execute more quickly. It is important to understand that in parent-child queries, for every parent, the child query is executed.
    You should only use multiquery data models in the following scenarios:
    To perform functions that the query type, such as a SQL query, does not support directly.
    To support complex views (for example, distributed queries or GROUP BY queries).
    To simulate a view when you do not have or want to use a view.
    Thanks,
    Bipuser

  • Having problem printing to hp officejet pro 8500 since updated to yosemite. any help please?

    I am having problem printing to Hp Officejet pro 8500 printer, it says it is in use. I never had any problem until Yosemite update. Any ideas please?

    I had the same problem with a HP 4000 laser jet & SL, this is how I solved it
    http://www.macworld.com/article/142631/2009/09/snowleopard_printing.html

  • Problems printing from Google Chrome browser using my HP Officejet 6500 E709n Series printer

    Dear Sir or Madam:
    I am using Microsoft Windows XP Home Edition Version 2002 Service Pack 3 desktop computer.
    I have a HP Officejet 6500 E709n Series printer.
    I am encountering some problems printing from my Google Chrome browser in my Outlook.com account because when I try to change some settings in the print dialog interface the printout comes out incorrectly.
    Below are the 2 snapshots of the print dialog interface of Google Chrome browser before printing an email message from my Outlook.com account.
    Are there any software updates to correct this problem?
    Please reply back soon.
    Thanks.
    Sincerely,
    Etow

    Welcome to the forums Etow,
    I saw your post about the issue you are having with printing from Google Chrome. Have you tried disabling your pop up blocker to see if that will help? Also see this guide about Printing with Chrome.
    If the above does not help, try using Firefox or Internet Explorer to print.
    Have a great Friday
    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!

  • Problems Printing to HP 2610 All-in-one

    Hi Folks,
    First off, I'm a Windows person so please don't assume I know the internals of OS-X very well (my wife is the Mac user, but is not the household "techie"). That said...
    When we try to print documents to the HP 2610 All-in-one (USB connected directly to her G4), the print dialog comes up looking "almost" normal. The bottom of the print dialog only offers a "?", "Supplies.." and "Cancel" (but the left half of the cancel button is chopped off). "Send FAX Now" (greyed out) is also there. No print button! "Supplies" offers to sell me ink cartidges and "cancel" of course cancels the print job. Where is the "Print" button and how do I get it back?
    System preferences, System Profiler shows the printer as available, the default, USB and running HP driver version 7.3.0 (the latest one HP offers and the one I installed after upgraging to OS-X 10.4.3) is 7.3.1). System Preferences, Printers also shows the printer as available and on a USB port.
    I have tried printing from TextEdit, Office:X Word: Service Release 1 and AppleWorks 6 (6.2.2) and get the same messed up print dialog.
    Oddly... the system has no problems printing to a Brother 1440 Laser (not defaulted) connected via USB to one of my Windows XP Pro systems. It can't print to it's direct connected USB HP 2610.
    Dual 1.25Ghz PowerPC G4 Mac OS X (10.4.3) 768MB DDR SDRAM

    Hi Folks,
    First off, I'm a Windows person so please don't assume I know the internals of OS-X very well (my wife is the Mac user, but is not the household "techie"). That said...
    When we try to print documents to the HP 2610 All-in-one (USB connected directly to her G4), the print dialog comes up looking "almost" normal. The bottom of the print dialog only offers a "?", "Supplies.." and "Cancel" (but the left half of the cancel button is chopped off). "Send FAX Now" (greyed out) is also there. No print button! "Supplies" offers to sell me ink cartidges and "cancel" of course cancels the print job. Where is the "Print" button and how do I get it back?
    System preferences, System Profiler shows the printer as available, the default, USB and running HP driver version 7.3.0 (the latest one HP offers and the one I installed after upgraging to OS-X 10.4.3) is 7.3.1). System Preferences, Printers also shows the printer as available and on a USB port.
    I have tried printing from TextEdit, Office:X Word: Service Release 1 and AppleWorks 6 (6.2.2) and get the same messed up print dialog.
    Oddly... the system has no problems printing to a Brother 1440 Laser (not defaulted) connected via USB to one of my Windows XP Pro systems. It can't print to it's direct connected USB HP 2610.
    Dual 1.25Ghz PowerPC G4 Mac OS X (10.4.3) 768MB DDR SDRAM

  • Problem printing wirelessly with my mfc-j835dw

    Hi.
    I have a problem printing to my mfc-j835dw brother printer. I did not experience this issue until our broadband provider changed our modem/router to [echolife hg521] since it was crashed. I am not sure if there is a need to check for the settings of the printer or the modem/router itself. I tried to use my mobile hotspot and connect my printer to it and luckily i could print wirelessly.
    Any ideas regarding this issue?
    Your response are highly appreciated.
    Thanks!

    Verify the router is on the latest firmware.  If not, upgrade it.
    For Wireless Settings, please do the following : -
    Click on the Wireless tab
    - Here select manual configuration...Wireless Network mode should be mixed...
    - Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network...
    - Set the Radio Band to Standard-20MHz and change the Standard channel to 1...Wireless SSID broadcast should be Enabled and then click on Save Settings...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    You should use WPA2-AES and reset your TV and all your other wireless devices as it will ask for a new password/paraphrase.
    Change the Beacon Interval to 75 >>Change the Fragmentation Threshold to 2304, Change the RTS Threshold to 2304 >>Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect...
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Quality problem printing in Windows 8.1 with CP1215

    Recently purchased new laptop with Windows 8.1 Pro.  I have had my printer for years, CP1215, via USB, without having any problems printing to it with Windows 7 Pro. I first noticed that the quality of print I receive out of my printer on the new laptop is darker.  The darkness comes from black lines going diagonally across the page.  I would estimate at approximately a 2 degree angle.  I would also estimate that the lines appear every 4th pixel row.  I have attached 2 images, printed on 2 different printers.  The one on the top is the one off of my CP1215, the one on the bottom is a color copier in my office.  I have zoomed in incredibly on the prints to show the lines.  Just never had problems with this printer in pre Windows 8.1 days.  Tried installing ljcP1215-HB-pnp-win64-en.  Tried uninstalling printer, rebooting, then installing, still same problem.  I also have another problem with printing, but suspect it is more of a Microsoft problem.  My laptop thinks a network printer goes offline, stopping and restarting the print spooler service seems to fix that.  I had to make a .bat file on my desktop to do it, it happens at least 2 times in an 8 hr work day.                        

    Hi paulie99, Welcome to the HP Forums, I hope you enjoy your experience! I understand the printer isn't printing properly from Windows 8.I will be happy to help you. Check your printer driver settings. 1. On the File menu in the software program, click Print.2. Select the driver, and then click Properties or Preferences.3. Click the Paper/Quality tab.4. In the Type is or Size is list box, select the correct media type or size. Set the quality to ImageREt 2400. I have provided a document to install the Windows print driver to see if that makes a difference.Installing the Printer Software in Windows 8.1 for a USB or Network Connection. For the network printer I would setup a static IP address. Please let me know the results if you are still having issues. Thank you for posting on the HP Forums.Have a great weekend! 

  • Since the last update I have been unable to print from Firefox. No problem printing from Safari or any other program. I've seen a few responses to this problem but only to people running Windows. I'm on a Mac running v. 10.5.8

    Since the last update I have been unable to print from Firefox. No problem printing from Safari or any other program. I've seen a few responses to this problem but only to people running Windows. I'm on a Mac running v. 10.5.8.

    Also when I click on the link in my email to activate my account (in the hopes that a solve will be emailed to me) I get this message -
    "Something is wrong
    We could not activate your account. Please make sure that you have clicked the correct link in your email or typed in the correct address."
    Same message if I cut and paste the link.

  • HT4356 I checked everything out and had no problem printing from IPAD/MINI using the HP Photosmart 6520 printer, but the next day, using same application, my HP did not show, but was looking for the AirPrint Printer, what am I doing wrong?

    Using IPAD2, IPAD MINi, HP photosmartE6520 set up on wireless network.  No problem printing from my devices, but the following day, it is looking for AirPrint printer, why? 

    Hello lenc48,
    Welcome to the HP Forums.
    I see that you are having a few issues when it comes to printing from your mac as well as some two sided printing issues.
    I do have a some suggestions that we can try in the attempt to troubleshoot this issue.
    First off, please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    Please remove the usb cable (if using wireless, disregard this step) from the printer and from the Mac and leave it disconnected until further notice.
    Please click on the first link that will give you instructions on Uninstalling the Printer Software.
    Once the software has been removed, please disable any anti virus protection that you may have on the Mac. 
    The next step we are going to take is downloading the HP Photosmart 6520 e-All-in-One Printer Full Feature Software and Drivers - OS X 10.9 Mavericks.
    The installation will prompt you when to connect the usb cable (You will see a prompt for a wireless connection as well if that is the connection type you would like to use) so please do not connect the cable until prompted to do so.
    If you are still having issues, feel free to write me back or you can contact HP Total care direct.  If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Problems printing from a Macbook Pro on a Kodak ESP7

    Hi,
    I am having problem printing from my Mac to the Kodak.  I have connected the mac to the printer through the settings as it can see it.  However, when I come to print it it says the printer is not responding and to check if it is turned on and properly connected.  I have tried reloading the printer etc but still cant get it to work.  I fired up my old windows laptop and that will print fine wirelessly so it can't be my BT Hub for the internet.
    Any suggestions would be appreciated as I dont want to go and have to buy another printer.
    Thanks for suggestions.
    Matt

    Using the OS X built-in network printing protocols
    requires a CUPS driver. Check on Brother's site to
    see if they now have a CUPS driver for your model,
    or you can try the open source hl1250 driver from:
    http://www.linuxprinting.org/macosx/hl1250/
    Unfortunately, I don't have an Intel Mac, so I don't
    know if any of these power PC drivers will work for
    you.
    Please let us know.
    I was told by a friend that the drivers are already built into the OS X 10.4.3, I hooked up the printer directly via USB and indeed it worked just fine. But, as I stated before, I just can't get the **** thing to work when the printer is connected to my PC and I try to print through the network.

  • Adobe Acrobat Pro XI problems printing PDFs created from AutoCAD.

    Just installed Adobe Acrobat Pro XI and am having problems printing PDFs created from AutoCAD.  Printing other PDF created by MS Word works well.  Had a similar problem in an earlier version of Pro.  The fix I figure out then was to print the PDF file as another PDF.  Using the second PDF to print to a plotter typically worked.  It does not work for Adoabe Acrobat Pro XI.

    Hi presottom
    Please refer ; http://helpx.adobe.com/acrobat/kb/troubleshoot-pdf-printing-acrobat-reader.html
    or
    Let us know more details about it to help you better ?
    What is the OS ?
    is there any error message , etc .. ?

  • Problems printing PDF's using Adobe Acrobat 9 Pro

    During the last two weeks, I have been unable to print a PDF from my Adobe Acrobat 9 Pro. They appear okay on the screen, but print as gibberish.
    After consulting the forums, one workaround suggested was to print as image. Tried it, also prints gibberish.
    Another suggestion to update my printer software, did it. Still prints as gibberish. My priner is an Epston Stylus Photo R220.
    I'm a writer, not a software technician. I am not using a bootleg copy of the program, but an educational version, so Adobe won't offer me any advice over the phone without payment.
    Anything else I could try before paying?
    Diane Loupe
    [email address deleted by host]

    I have same problem as described above, but not always.  Seems to depend on the web page I am trying to print to Adobe. One consistent culprit is Bank of America.  Looks okay until I print to Adobe Acrobat 9 or 10. Then it's gibberish.  i had to copy to Word and then print Word to Acrobat or printer.  
    . Various computers,
    . same problem with either Acrobat 9 or 10.
    . Not a problem printing to Acrobat from a Word or Excel or Outlook document
    . Only from certain websites and not the entire page, only the OCR part. The objects: logos, pictures are okay, only text is messed up.
    Definitely would like Adobe to fix this.

Maybe you are looking for

  • Using BAPI_SALESORDER_CREATEFROMDAT2

    Hi! I would like to ask if anyone has sample code of a working call to the bapi BAPI_SALESORDER_CREATEFROMDAT2? I've tried it and I've been able to create a sales order, however I have troubles with repeating items in Conditions. Tried changing LOGIC

  • How to call my java program in vb?

    Hello , first of all i will tell my bussiness logic, i have designed a module in java for plotting a graph and the other module are written in vb so, i should call my module in vb,is the only method to do is calling my .bat file or is there any metho

  • How to find the middle of the string in line ?

    Hi, I have one text file. There is some data as a table format. Each table should have Header.Now i have to read the data from the text file and write into another text file upload the text file into oracle table. I have finished all the logic. But i

  • Camera is not connected.

    How can I make my camera connect for FaceTime and Photo Booth to work? It keeps telling me that the camera is not connected.

  • Data Reconcilation - GL Account Balances

    Hello All From the BI presepective, I would like to reconcile Financial data to the source tables. I would appreciate, if you tell me all the standard GL reports available to me to run it in DISPLAY only mode. Thanks