Print function in JTable

Hey all,
I'm not sure if every1 know there's a print function in JTable.
thats right,
What ever is in the table will be printer.
it also brings up a Printer dialog box, with options which printer to use,
landscape, potriat, etc.
now i have 1 problem.
with 1 table it print every thing fine.
i also got another table that only print the 1st column.
I dunno y it's doing this, i'm doing the same thing with the other table.
does any1 have a clue y it might be doing this?
I'll post the code in my next post, since i don't have it with me right now.
thanks,
is there another easy way to print?

Hey well i figured out, y it's cutting the table
The PrintMode is wet by default to cut n fit on the page.
there's another optional where it print everything even if it has to fit it on another page.
the code is
try{
                              table.print(PrintMode.NORMAL, new MessageFormat(some message),new MessageFormat("Page {0,number}"));
                         }thanks anyway

Similar Messages

  • Enabling the printing function of your HP Laserjet M1005 printer

    If you wonder how to install the printing function of your HP Laserjet M1005 printer, here is listed a bullet list of the actions. This has just been tested out thanks to the Support team from Germany
    Go to the page http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=1 839459&lang=en&cc=us&prodTypeId=18972&prodSeriesId=1839458&taskId=135 and select the link Mac OS X; download the link "HP LaserJet M1005 MFP Mac OS X Full Software Solution"
    Use the opportunity to update your printer firmware by selecting the link "Printer Firmware Update"
    Shutdown your Mac and start up in the safe boot mode (should be the combined keyboard shift and power on/off - refer to the Apple web site for details)
    Run the downloaded SW package listed in the step 1
    Go and select under system settings printer and fax, follow the step-by-step instructions to have a printer installed
    Shutdown your Mac and start up again in the safe boot mode
    Connect your printer and the printer SW installation message shoud pop up requesting you to install it
    SW download process should appear and run
    Be aware that just the printing function will be available - no scanning function so far
    For those who may be interested in knowing why safe boot mode: it is likelz that my anti-virus SW Kaspersky denied the installation.
    Continue to enjoy your HP Laserjet M1005 printer

    "For those who may be interested in knowing why safe boot mode: it is likelz that my anti-virus SW Kaspersky denied the installation."
    You should read this:
    http://www.reedcorner.net/mmg-antivirus/

  • How do I use the print function to output a numeric variable with a fixed amount of leading zeroes

    I need to create an output from a T-SQL query that picks a numeric variable and uses the print function to output with leading zeroes if it is less than three characters long when converted to string.  For example if the variable is 12 the output should
    be 012 and if the variable is 3 the output should be 003.
    Presently the syntax I am using is PRINT STR(@CLUSTER,3) .  But if @CLUSTER which is numeric is less than three characters I get spaces in front.
    Please help!

    >> I need to create an output from a T-SQL query .. <<
    NO! NO! In RDBMS, we have a presentation layer that handles displays. We do not ever do it in the database. This is fundamental. But more than that, the purpose of PRINT is for debugging in T-SQL and never for output.
    You are still writing 1960's COBOL or BASIC, but you want to to it in SQL.  You probably picked the wrong data type (a numeric that should be a string) and are trying to repair your design error.  
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Infopath 2013 Print Function

    Hi Folks,
    I need to understand Infopath Print functionality. It's a basic question, but please help me.
    My Infoapth form has 2 views. View A and View B. I want Print version of both forms. I have created a separated print view for both forms Print_ViewA and Print _ViewB (I have removed Submit buttons and other buttons from print version). Now when users fills
    View A , how he will be directed to Print the form? I mean should I give a separate print button and on clicking print button shold i redirect to print_viewA  or what.
    I need a basic understanding of print function.
    Please suggest.

    I have already gone through the link before. I did all the thing. Now what i want is a Print button on my View A. and when user clicks the Print button it should print the print version of my form.
    Am I clear to explain the problem?

  • The print function on websites doesn't work in Firefox.

    I want to print information from a certain website by selecting the Print View button. That works. But when I select the Print function, nothing happens. In other words, Firefox has stopped printing from websites. Other print functions (such as Word 2007) work just fine.

    Same problem, could not print web page. Deleted HP Smart Web Print program. Print function worked after removal. Firefox 4 Beta 8

  • Can no longer print from Photoshop CS^ have upgraded drivers error message reads There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents."

    I have upgraded my iMac to Yosemite but now my two Canon Printers no longer print from Photoshop CS6. I have upgraded the drivers. All other applications including Lightroom are fine. I am receiving an error message as follows:"There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents." How can I get the OS to return a list of printers to Photoshop when Photoshop requests a list.

    Have you printed to this printer from 10.10 before?  If so, check your connections.

  • I can no longer print off a web page (eg Flight booking confirmation). Other printer functions are OK. Any ideas?

    My printer will no longer print off web-pages, either from the tool bar command or from the "print page" command. This has only just happened and seeems to have followed a MS up-date, but can't be sure.
    Can anyone suggest a fix?
    All other printer functions work OK.
    Many thanks.

    My printer is HP Photosmart C4650 Series. I can print from everything but the Web. I don't get an error message or anything it just will not print.
    I'm using Windows 7, it had been doing fine than it just decided to quit printing from the web.
    T'hank You,
    Angelia 
    [Personal Information Removed]

  • Cannot print with a Samsung ML2160 printer (mono laser) and Pages. Print function doesn't work, only drag and drop in printer's queue

    Hello,
    I just purchased a Samsung ML2160 printer and it doesn't work with nor my Pages program, nor the Preview (to print PDF). No matter the way I tried, the Print function doesn't work and I cannot neither print or even enter the printer preferrences menu! My MacBook Pro has worked before with other printers, but now with the Samsung it doesn't work at all... Though, if I drag and drop a document, jpg, pdf in the printer queue, it prints just fine, but that method gives me absolutely no freedom to the printing... Could it be something from the Computer -> Machintosh HD -> Library -> Printers? Because a friend of mine was recently trying to save me some disk space, and therefore erasing part of the HP printer (to remove the previous printer I owned)...
    If anyone has any idea, that would be much appreciated
    Thank you in advance

    Do the sensible thing, as you say neither Preview nor Pages print, try other programs eg TextEdit. If none of them print then it is a System problem and very likely the printer drivers are AWOL or were never installed.
    Go to Samsung's website and download their software for the Mac:
    http://www.samsung.com/uk/consumer/print-solutions/print-solutions/mono-printers /ML-2160/XEU-support
    http://www.samsung.com/uk/support/model/ML-2160/XEU-downloads
    Peter

  • There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents. Error message in PhotoShop CC

    Printing from PS CC worked fine today. I made no changes to preferences. In between working with 2 projects, the first one printed fine, the second gave me this Error Message.
    There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents.
    Now I've checked for updates for my printer, reset my printer, reset PS CC preferences, picked my printer as Default and Last Used, and rebooted. I've followed all the recommended fixes for this issue I could find here and on the internet. I can print fine from any other program. Alas, the error message keeps popping up and I can't print.
    PS CC is up to date
    Running OS 10.10.2
    HP Printer updated
    Help?

    Have you printed to this printer from 10.10 before?  If so, check your connections.

  • Photoshop suddenly does not print to Epson 3880 - PROBLEM: Cannot print from Photoshop  After restart error message appears:  - "There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopen

    PROBLEM: Cannot print from Photoshop
    After restart error message appears:
    — “There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents.”
    • All print commands are greyed out and unavailable — even to call up the printer commands cannot be done.
    The printer printed fine until about 2 weeks ago when this error message appeared.  Printing continues from Pages, I-photo, preview etc. —  only Photoshop fails.
    The printer has been turned on and off, as have open documents been closed and open etc..   Preferences reset.  Repeatedly I have read through blogs and forums and attempted to contact Adobe — all without results
    Epson support struggled to find reason and several solutions were tried and they assume this is an Adobe problem.
    Running Mac Powerbook X 10.10.2 / Photoshop CS6 13.0.6.x64
    Attempting unsuccessfully to print to Epson 3880
    What Adobe support will be of help.
    Robert Darling —  2/19, 20, 21,22,23/2015

    Probably best to ask in Photoshop General Discussion
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • AcroPDF ActiveX print functions are not working with Adobe Reader 9.2 / Actobat Reader 9.3

    AcroPDF ActiveX print functions are not working with Reader 9.2/9.3. Tried ActiveX print functions like printPages(), printAll(), printWithDialog(), none of them is working. Tried on platforms: XP 32 bit and Win7 32 bit. These print functions all work fine with Adobe Reader 9.1.0. or 8.2.0 or 8.1.0 on XP 32 bit or Win7 32 bit.
    The way I have my setup: I have created a C/C++ project with AcroPDF MFC ActiveX classes. I have created an AcroPDF object in there, and then calling it's LoadFile() function passing a pdf file in the parameter. Then calling the printPages() or printAll() function. With Adobe Reader 9.1.0. or 8.2.0 or 8.1.0, printing is starting through the default printer without any problem. As soon as I update the reader version to 9.2 or more, the same code stops working.
    Is anybody noticing any similar issue? Any info on this will be highly appreciated. Thank you!

    Unfortunately printWithDialog() is also not working. Actually none of the print functions like Print(), printWithDialog(), printPages(), printPagesFit(), printAll(), printAllFit() are working. All of them works fine though with older reader.
    BTW, what security related changes are there for printPages() and printAll()? Can you please elaborate on that? Is there any workaround?

  • How to add warning message while using 'print' function in Adobe LiveCycle Designer

    I am trying to make pdf document for my company which requires adding a warning message while anyone use 'print' function from the page...
    Does anyone know how to add warning message on LiveCycle Designer
    Also my supervisor mentioned something using 'nag' if that rings any bell

    No you shoudl never go into the XML source unless uinstricted to do so.
    You can open the script editor (under the window menu). It will appear above the drawing area but below the toolbars. You can resize it if there is not enough room. When you click on an object in the form you can choose an event to script against in the Show dropdown. In your case you will want to choose the prePrint event. A line will show up that indicates the object that is associated with the script as well as the event and other information. Add your script below this line. Once that is done you are finished and your form is ready for testing.
    Paul

  • Can't create a pdf, or see preview, from print function in Filemaker

    I recently bought a 24" imac with 10.5.6 installed. I transferred everything over from my old G5. Everything works well except one function that I really need.
    I Filemaker (8.5), in the print function, if I click on "pdf", the "save as pdf" choice doesn't work. Nothing happens. Also the "preview" button doesn't work. Nothing happens.
    I can create a pdf from the "save/send records as" function in the FILE menu, but it's a pain.
    The "save as pdf" works in all my other programs except Filemaker.
    I've deleted the plist file, reinstalled Filemaker, even called Apple. Nobody seems to have an answer.
    Any ideas?
    Thanks.
    alchait333
    Message was edited by: alchait333
    Message was edited by: alchait333

    As far as the images are concerned, that may be a result of your choice of job settings. You may want to use the Press or Print option if the image quality is important. I assume you are talking about bit images in this case.
    As to the hangup, have you checked to see if AcroTray is active on your system? It may not be running as needed. In the meantime, try checking print to file and then opening that file in Distiller to complete the conversion to PDF.
    Before you ever try a reinstall, you need to do a repair first to see if that resolves the problem. There are a lot of unknowns about your exact process for the printing and your job settings that may be part of the problem. The rest of your system setup is useful in some cases, but did not help me see your problem.

  • Call print function from ABAP/BSP

    Hi all,
    I've an holiday map that is called from portal as a bsp, it open in a new window without the functions "file", etc.. an window only with the top bar (minimize, maximize and close), then, if I press CTRL-P it opens print functionality, how can I call it from a buttom in the BSP !?!?
    Thanks all for the help,
    Best Regards,
    Pedro Rodrigues.

    Hello Pedro,
    the problem here is, that the Internet Explorer provides this image with a given size for the Windows Pinting environment. The easiest way to go is surely to have image wich can fit on the paper, or many printers support "scaling". You should find this on the print dialog >> preferences >> paper / quality >> advanced. /* E.g. oure HPLJ 4050 printer supports this */
    I hope it helps.
    Regards,
    Dezso

  • Disable print function for  a pdf document

    Is there a way to make an Adobe pdf read-only?  Can I disable the print function for an isolated document before making it available to others? I am working on MAC laptop.

    hi
    i got the answer
    we have to give issue output to -->screen

Maybe you are looking for

  • Secured Network - Can't get WGA54G to connect

    My brother could connect fine before we secured our network. He is using a WGA54G wireless adapter. We are using a BEFW11S4 router. We were dumb and hadn't secured our network but finally did and got all other computers set up to connect but we are h

  • Multiple Cards in one computer

    Hello, I have two NI DAQ cards installed in one computer. 1. PCI-6711 which is used by Nikon EZ-C1 which controls laser intensity in a Nikon Confocol Microscope System. 2. PCMCIA 6036E(via PCMCIA to PCI adapter). I write a MATLAB program to do data a

  • ACE Strange setup: catch-all rule and no normalization

    Hi, I have the following setup:                                                 Internet                                                       | PC1             ACE                 Default Gateway |                    |                               

  • Open PDF with acrobat reader not preview

    Hi everyone: I have been creating cross platform projects for a while now. I just noticed that opening PDF from director tend to open up in "preview" not in Acrobat. Is there a way I can tell my Mac project to open the PDFs in Acrobat, if Acrobat doe

  • Endless Rebooting

    I've been reading lots about this problem from last year. The iPod reboots itself repeatedly about evey ten seconds. There have been lots of posts on this topic, and everything from bad files with low bit rates to bad firmware has been blamed. I just