How to print entire print component

I have an application with fixed height & width. I have a
list component that displays additional content when an item is
clicked. I want to be able to print the entire list with each
item's additional text. I'm only getting a part of the data.
I created a print component to format the material correctly
(component's name is plPrintRenderer in the attached code). That
component in turn has a list component with a list itemRenderer
(named plItemRenderer in the attached code).
The sequence I'm using is summarized as follows:
Create the print job.
Start print job.
Create an instance of the print renderer.
Put the print renderer instance on the stage (in this case,
in the parent application).
Make the instance invisible.
Give the print renderer instance a data source -- the same as
the displayed list data source.
Add the print renderer instance to the print job.
Send the print job to the printer.
The printed output contains only the amount of the print
renderer that can be seen on the page, not the entire data. How can
I print the entire content if it can't be displayed on a page
(because of the fixed pixel size)?
Any ideas?
Thanks! I really need to get this working.

I cannot get a good grasp on your containers for all this
from the code you supply.
However, when I've done similar work it is usually because
the container that contains the items to print is being clipped by
it's parent container.
Try setting the parent container's clipContent property to
false.
Sorry to be a bit vague.
Ian

Similar Messages

  • How to Print entire Jtable

    hi
    I have used Jtable.print() command to print the JTAble but problem is that it is printing only that data which is visible row wise i.e.
    if in a row one column's data is shown like
    nam...
    then it is printing like that only
    i want to know how to print all data irrespective of how it is viewable on screen in table
    please help me out
    its urgent
    thanks

    package table;
    * PrintTableDemo.java
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class PrintTableDemo extends JFrame {
        private JButton btPrint;
        private JTable table;
        private JTable tableToPrint;
        public PrintTableDemo() {
            super("PrintTableDemo");
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setSize(190,150);
            setLocationRelativeTo(null);
            table = new JTable();
            btPrint = new JButton();
            table.setModel(new DefaultTableModel(
                new Object [][] {{"this should print entirely", null}},
                new String [] {"Title 1", "Title 2"}
                Class[] types = new Class [] {String.class, String.class};
                boolean[] canEdit = new boolean [] {false, false};
                public Class getColumnClass(int columnIndex) {
                    return types [columnIndex];
                public boolean isCellEditable(int rowIndex, int columnIndex) {
                    return canEdit [columnIndex];
            getContentPane().add(new JScrollPane(table), BorderLayout.CENTER);
            btPrint.setText("Print...");
            btPrint.addActionListener(new ActionListener() {
                public void actionPerformed(final ActionEvent evt) {
                    btPrintActionPerformed(evt);
            getContentPane().add(btPrint, BorderLayout.NORTH);
        private void btPrintActionPerformed(final ActionEvent evt) {
            tableToPrint = new JTable(table.getModel());
            tableToPrint.setSize(500,1500);
            tableToPrint.getColumnModel().getColumn(0).setWidth(200);
            tableToPrint.getColumnModel().getColumn(1).setWidth(200);
            try {
                tableToPrint.print();
            } catch (PrinterException ex) {
                ex.printStackTrace();
        public static void main(final String args[]) {new PrintTableDemo().setVisible(true);}
    }

  • Been using Macs since classic. Using MBP, OS 10.7.5. Trying to figure out how to print/save folder contents (Name, Date Modified, Size Kind) of entire (non-visible) folder? Any apps that can do this?

    Been using Macs since before classic. Using MBP, OS 10.7.5. Trying to figure out how to print/save folder contents including what's not visible on screen (Name, Date Modified, Size Kind) in entire folder?
    Screen shots are getting old hat.
    Tried select all, copy, paste into pages, but it didn't display date modified, size & kind, and also included images of selected files, which is too large. 
    Any apps/shortcuts/utilities that can do this?  Thanks in advance.

    Hello Achates:
    I did not read the rather long post. If you wish to reinstall OS X 10.4, use your software install DVD. Backup is essential. To minimize your risk, I would use an archive and install:
    http://docs.info.apple.com/article.html?artnum=107120
    In that way, you will have a fresh copy of OS X and your current settings will be preserved.
    Incidentally, I do not agree that the printer problem is best solved by reinstalling OS X. I have had HP printers for sometime and, on one occasion, had difficulty after an upgrade. HP technical support walked me through uninstalling all traces of the HP driver and then reinstalling.
    Barry

  • How to print selected cells in numbers

    Does anyone know how to print selected cells in a Numbers spreadsheet, rather than printing the entire sheet?
    Also, how to save the selected cells as a pdf file without saving the irrelevant cells?

    Hi nmygs,
    How about this?
    Cell A1 is a Pop-Up Menu containing names of the various "Departments"
    Other cells contain formulas to find a match for whatever is chosen in A1 from the Very Big Data Table.
    Reusable Print Me table.
    Regards,
    Ian.

  • How to Print a Character in Reverse video ...?

    Hi Could any one of you help me " How to print a character in Reverse Video " in SMART Forms and in SAP Scripts.
    Regards,
    Saravanan
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Mar 26, 2009 5:31 PM

    deepak_c3 wrote:
    Thanks for the info.,
    where should the page number n-1-i be returned ?
    Which method implementation of Pageable interface should return the page number ?w.r.t. your first question: don't return that number but return page n-1-i when page i is requested; your document will be printed in reverse order. Your class should implement the entire interface and wrap the original Pageable. (for that number n your class can consult the wrapped interface; read the API for the Pageable interface).
    kind regards,
    Jos

  • How to print the components in scrollpane

    hi there,
    can anyone tell me how to print the scrollpane components, i mean the headers & the main view of the component. i've a scrollpane with the following code and i want to print the components:
    JScrollPane pane = new JScrollPane(aTextPane);
    pane.setRowHeaderView(aLineNumberComponent);my requirement is i've a editor & lineno component as textpanes and added to scrollpane & when asked to print it should print the lineno component which resides in scrollpane's row header & the editor textpane which is the main view in the scrollpane. how can i achieve this?
    i'd would appreciate any suggestions & codes given.
    thanx in advance.

    After adding/removing components to/from a panel try:
    panel.revalidate();
    panel.repaint() // sometimes this is also needed, I'm
    not sure whyI'm not certain, but I think that panel.revalidate() implicitly calls repaint() only if something actually changed in the layout. If nothing changed, it sees no reason to repaint; hence, if something changed in appearance but not in layout, you have to repaint it yourself.
    Or something like that. I'm no expert. ;)

  • HOW TO PRINT THE MATTER IN FOR ALL ENTRIES

    HI HOW T  PRINT THE FOR ALL ENTRIES MATTER

    Hi Naresh,
    You can only use FOR ALL ENTRIES IN ...WHERE ...in a SELECT statement.
    SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result set. If the internal table itab does not contain any entries, the system treats the statement as though there were no WHERE cond condition, and selects all records (in the current client).
    For example:
    SELECT * FROM sflight INTO wa_sflight 
    FOR ALL ENTRIES IN ftab 
    WHERE CARRID = ftab-carrid AND 
                 CONNID = ftab-connid AND 
                     fldate = '20010228'. 
    This condition, return all entries of the sflight.
    When using FOR ALL ENTRIES the number of matching records is restricted to the number of records in the internal table. If the number of records in the database tables is too large then join would cause overheads in performance. Additionally a JOIN bypasses the table buffering.
    Thanks,
    Reward If Helpful.

  • How to print a graph in LV7.0

    I have a waveform graph,how to print it?
    thanks a lot!

    there are a couple of ways to do this ... if you want the entire panel you can do it manually by ctrl-p (windows at least)... you can also use the VI Server method get image along with the Open Vi Reference.vi and Print VI to printer method to print the whole panel programatically...
    you can also use Append Control Image to report.VI in conjunction with the print report.vi to print your control...
    Dan

  • How to printing oracle report by specific printer name  on solaris?

    When running reports
    -http://host/reports/rwservlet?destype=PRINTER&desname=printername&desformat=dflt.prt&report=test.rdf&userid=test/test@TEST&MODE=CHARACTER
    report with destype=printer desname=printername, the report fails with REP-50159 Executed successfully but there were some errors when distribute the output
    if set default printer by add PRINTER=printername export PRINTER; in uiprint.txt
    it can print to printer.
    i found document id 394554.1 in metalink but it can't fix problem.
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:342229662272785964::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,394554.1,1,1,1,helvetica
    To fix the problem, execute the following steps:
    1. Take a backup of opmn.xml
    2. Edit opmn.xml and include the path information of the new printer:
    For In-process report server add the path information within <OC4J_BI_Forms>
    Eg:
    <process-type id="OC4J_BI_Forms" module-id="OC4J">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH"
    value="D:\Oracle\product\FRHome_1\lib32:D:\Oracle\product\FRHome_1\lib"/>
    <variable id="PATH" value="//printserver;D:/Oracle/product/FRHome_1/bin;................./>
    </environment>
    Here //printserver is the network drive where is printer is installed.
    For standalone report server add the path information within <reportservername>
    Eg:
    <ias-component id="standalonerepsvr01" status="enabled" id-matching="false">
    <process-type id="ReportsServer" module-id="ReportsServices">
    <process-set id="standalonerepsvr01" restart-on-death="true" numprocs="1">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH"
    value="D:\Oracle\product\FRHome_1\lib32:D:\Oracle\product\FRHome_1\lib"/>
    <variable id="PATH" value="//printserver;D:/Oracle/product/FRHome_1/bin;........../>
    </environment>
    3. Reload opmn : opmnctl reload
    4. Restart opmn: opmnctl stopall , opmnctl startall
    5. Run the report with destype=printer and desname=newprintername
    my config (solaris)
    oracle application server release 2 (10.1.2.0.2)
    i used axis printserver name is SZ_R02.
    <process-type id="OC4J_BI_Forms" module-id="OC4J">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH_64" value="/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparcv9"/>
    <variable id="LD_LIBRARY_PATH" value="/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparc"/>
                        <variable id="PATH" value="/SZ_R02:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib32:/data/app/mid/lib32:/data/app/mid/lib:/data/app/mid/network/lib::/data/app/mid/jdk/jre/lib/sparc"/>
    </environment>
    how to print to printer by specific printer name?
    thank you very much
    khun

    if submit url with parameter
    http://hostname:7778/reports/rwservlet?destype=PRINTER&desname=lpSZ_R02_2&report=sticker.out
    error
    REP-50159: Executed successfully but there were some errors when distribute the output
    How to Solution?

  • How to print Signature stored in a flash drive on to check print program?

    Hi,
    I have a check print program template and have the following requirement. I need to print the signature image which is stored in a flash drive that will be inserted in to the check printer (HP laserjet 4250 series). The vendor sent the escape sequence to activate the signatue image. I'm familiar with how to print images stored in $OA_MEDIA area but not in a flash drive.
    Has anyone done this before? If you did, could you please let me know how and where to put the escape sequence the vendor sent on the .rtf document to activate the signature image while the check print program is run (Format Payment Instructions - in rel 12) ?
    Message was edited by:
    user586895

    Hi,
    This is an interesting problem, and not something I have considered before. I do not know of an exact solution, but as your printer is on a network, theoretically it will have an IP address. When your flash drive is inserted into the printer I would assume that is is treated like any other drive in a PC, so you would be able to use a URL to get to it.
    Using a dummy image and a URL to the printer flash drive you should be able to pick up the image.
    Not entirely sure if this would work, but it may be food for thought, and help you along the way.
    Regards,
    Cj

  • How to print the list shown in the finder

    I work as a photographer. For my clients I burn the pictures on DVD / CD.
    Some of my clients want a indexprint from the folder on the disk.
    How can print the list wich is shown in the finder? A screenshot doesn't work because there are often more items in the folder than the screen shows.
    A friend told me this isn't possible in OS X. In OS9 this function was available, but removed in OS X.... ?
    Regards
    Walter
    G5 Dual   Mac OS X (10.4.8)   also Intel Imac

    Hi Walter,
    To make a list, choose all (COMMAND + a) in the window than "copy" and "paste" to TextEdit or MS Word, or directly into email.
    Also, If you drag a folder or entire volume onto the Print Setup Utility it will print it's contents.
    -mj
    [email protected]

  • How to print from webdynpro client

    Hi Mobile friends,
    I have a big problem, I don't know how to print a webdynpro screen from the mobile client. I'm developing webdynpro laptop applications for offline scenarios with Mobile 7.1. Can anyboy help me with this issue?
    Regards,
    David Faustini

    Hi,
    I follow the help page but these are my results:
    1- When try to add a lib dc to my project with a compilation and assembly public part: The component fails to instal when is downloaded from the server.
    2- When try to add a lib dc to my project with just a compilation public part: The component successfully instal when is downloaded from the server but the lib can't be resolved, when I put the jar under the libs folder of my client the problem solved.
    Conclusions:
    It's still an error on the SAP documentation with the use of external libs on a DC project.
    Can any help me using external libs DC  with an assembly part on Mobile 7.1?
    Regards,
    David Faustini

  • How to print or save a webpage report?

    Hi all,
    How to print or save a webpage report? Not using the save spreadsheet?
    When I create classical report (no form link) I can see still see an edit (pencil button) . When I click the pencil button i gives me a page
    that is not updatable but the display is better to view for single record viewing. Unlike using spreadsheet which is not good to look and share to a user or client.
    How can I print this page please? or save it to file?
    In contrast to a classical report when I made one, it does not show this view pencil button. How can I configure it to display?
    Thanks a lot.
    Edited by: KinsaKaUy? on 12.8.2011 8:18

    Hi,
    you can do this by two ways
    1)If you want to print only current page,
    then go to region definition of your report
    In region header copy this code,
    <input type="button" id="PrintButton" value="Print this page" window.print()">
    this option helps you to print only the current page.
    2) If you want to create print button which is applicable for all pages of your application,
    then go to shared component->navigation bar
    create navigation to url
    Under Entry Display
    In Entry Label = print
    Under Target
    Target type = Page in this application
    Page = &APP_PAGE_ID.
    and check the Printer Friendly option
    Hope this will helps you,
    thanks
    jitu

  • How to print selection

    Hello! I am new to Mac's and I cant seem to figure out how to print a selection of text vs. printing the entire page, article, etc. Help! I've tried highlighting the desired selection and printing but that doesn't work...any help??

    There is a very easy way to do what you want to do.
    Highlight the portion of text you want to print.
    Go to edit function and select "copy".
    Go to your tool bar and select the application "text edit".
    Go to edit function and select "paste",
    Adjust the font size to a larger size if needed.
    Go to file function and select print.
    If application "text edit" does not show in your tool bar, go to the "applications" folder and you will find it there.

  • How to print a HTML file in browser look using DocPrintJob

    Hello guys,
    Does anyone know how to print HTML output/file into browser look?
    I'm using DocPrintJob and the DocFlavor set to DocFlavor.INPUT_STREAM.AUTOSENSE.
    posted below is my code :
    public class BasicPrint {
        public static void main(String[] args) {
            try {
                // Open the image file
                String testData = "C:/new_page_1.html";
                InputStream is = new BufferedInputStream(new FileInputStream(testData));
                DocFlavor flavor =  DocFlavor.INPUT_STREAM.AUTOSENSE;
                // Find the default service
                PrintService service = PrintServiceLookup.lookupDefaultPrintService();
                System.out.println(service);
                // Create the print job
                DocPrintJob job = service.createPrintJob();
                Doc doc= new SimpleDoc(is, flavor, null);
                // Monitor print job events; for the implementation of PrintJobWatcher,
                // see e702 Determining When a Print Job Has Finished
                PrintJobWatcher pjDone = new PrintJobWatcher(job);
                // Print it
                job.print(doc, null);
                // Wait for the print job to be done
                pjDone.waitForDone();
                // It is now safe to close the input stream
                is.close();
            } catch (PrintException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
        static class PrintJobWatcher {
            // true iff it is safe to close the print job's input stream
            boolean done = false;
            PrintJobWatcher(DocPrintJob job) {
                // Add a listener to the print job
                job.addPrintJobListener(new PrintJobAdapter() {
                    public void printJobCanceled(PrintJobEvent pje) {
                        allDone();
                    public void printJobCompleted(PrintJobEvent pje) {
                        allDone();
                    public void printJobFailed(PrintJobEvent pje) {
                        allDone();
                    public void printJobNoMoreEvents(PrintJobEvent pje) {
                        allDone();
                    void allDone() {
                        synchronized (PrintJobWatcher.this) {
                            done = true;
                            PrintJobWatcher.this.notify();
            public synchronized void waitForDone() {
                try {
                    while (!done) {
                        wait();
                } catch (InterruptedException e) {
    }the printed ouput for this code will be look like this
    <html>
    <body>
    <div style="page-break-after:'always';
                background-color:#EEEEEE;
                width:400;
                height:70">
         testPrint</div>
    ABCDEFGHIJK<p>
     </p>
    </body>
    </html>however, the output that i want is the HTML in browser look not HTML code itself.
    i've tried to change the DocFlavor into any TEXT_HTML type but it gives error:
    sun.print.PrintJobFlavorException: invalid flavor if you guys has any idea or solution, can you share with me... already search in Google but still not found any solution
    Thanks in advanced.

    hi,
    do the following
    URL url = null;
    try
         url = new URL("http://www.xyz.com");
    catch (MalformedURLException e)
          System.out.println("URL not correct " + e.toString());
    if (url != null)
           getAppletContext().showDocument(url,"_blank"); //shows the page in a new unnamed top level browser instance.
    }hope that helpz
    cheerz
    ynkrish

Maybe you are looking for

  • How to make a good picture/video movie

    i have a camera that has taken 4000x3000 pictures and 1280x720 HD videosand want to make a HD DVD movie i wanted to use premiere pro for making this movie because ive become slightly used to it i am using this on a 1600x900 17-inch laptop but i cant

  • Arch Live CD x64 hanging during boot at "triggering uevents"

    Hello! I recently was recommended Arch by a friend, and after I followed the 'Newbies Guide' and burning a live CD to install Arch with, it appears to hang during Live CD boot at "installing uevents." I am trying to install Arch as a dual boot on a l

  • Selective disable/enablement of sub workflows

    Hi, I am trying to design workflow with fork(For parallel execution) and many sub workflows. These sub workflows are totally independent of each other and cna have parallel execution. My requirement is to given an option for user to selectively enabl

  • On propagation from queue to queue on same instance

    Hi ! I have a queue that I need to propagate into another queue (and later add a transformation during the process). I have created the ques for the moment with the same payload type in order to test easily, but the propagate does not work. The messa

  • Are there any reported conflicts of CS6 (Stand-alone) with other Non-Adobe Software Programs?

    I just downloaded a trial version of CS6 (standalone) 64 bit for my Imac 27" 3.06 dual (OS 10.8.1) 4 GB Ram. I tried it, and then closed down to compare it to anothernon-Adobe program. As soon as I tried to open a file image in this other program, I