Multipage Printing

Hello,
I have to print multiple pages with images, a header and a footer. And I don't know the length of my text and images that will be on the pages. The only thing I do know is that it can be split after each piece of text/image and the pieces will be smaller than a page. The thing i'm after is something like printing a shopping basket with images, details and comments for each selected product.
I read that many people prefer a third-party api above FlexPrintjob and PrintDatagrid to print.
So here is my question:
What do you prefer and use for printing multiple pages?
Thanks in advance,
Glen

I answer for myself and for next generations.
That the DocumentRenderer will be able to print
nt the PlainDocument with
desirable font the following is needed:
1) to set desirable font to Graphics2D in
in DocumentRenderer ;
2) to set the same font to the JEditorPane, which
ch is used for layout document.Thanks for this thread - it helped me a lot, since I had the same problem.
But I also discovered another problem:
When I use this solution (that's setting the font to "monospaced" directly in DocumentRenderer, then I loose some text in all those lines of the TextArea, where linewrapping took place. That means, whenever I have text, that covers more than one line and is wrapped to several lines without having used the return-key, I loose text. This doesn't happen, when I stick to the original font.
Do you have the same problem?

Similar Messages

  • Multipage print issue

    I'm using Adobe's 'official' multipage print example as basis for my print component and I've been encountering an issue.
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7c7e.html
    If you increase the header size, the data grid height on  the subsequent pages reduce. So, if you have a really large header, you see  large empty space at the bottom of subsequent pages.
    Any idea how to fix this?
    I'm using Flex SDK 4.5.1
    Message was edited by: DilipShah

    Any idea why header size on the first printed page impact the height of PrintDataGrid instance on the subsequently printed pages? Any suggestions on how to tackle this one? Thx!

  • Acrobat 7.1.0 multipage print job goes one page at a time

    This condition existed before I installed the lastest update but it has not gone away so it must be a setting. When I send a multipage document to my printer (laserjet 4000) from Acrobat Professional the printer will start up (wakeup), print one page, stop the printing process (explained below) and then restart/wakeup and print the next page. It could take 3 or 4 minutes to print a 10 page doc.
    By stopping the printing process I mean the display will return to "Ready" the the printer will make that whining down sound like it is completed a print job and stop for 10 seconds or so. It then starts all over.
    When I print from any other program the printer starts up and stays running until the print job is complete even if it is 50 pages or so.
    Any thoughts?????
    Thank you in advance!!

    Many different factors could be causing this, but there's no way to tell from this end what it could be.
    The first thing I always recommend is to check for driver updates online. Even if a newer version doesn't exist, you should download and reinstall the printer driver. Never hurts to do that, and sometimes it solves the problem... especially in cases like yours, where the printer model is old but the software you're working with has continued to be updated. HP seems to have the most trouble across different applications; these printers never seem to be fully compatible with all new software versions, no matter what software it is. Seems like there's always something that doesn't work quite right.
    Assuming you've done that and it didn't help, next look at what you're printing.
    Is the PDF heavy in graphics? How large are the graphics---what resolution are they and if in color, what color format (I use the demo version of Quite a Box of Tricks plug-in for this: http://www.quite.com/box/)? At what resolution are you printing? Do the images contain transparencies?
    Have you (or whoever creates the PDFs) changed any color management options? What happens if you use the Quite plug-in to convert colors to greyscale? (The demo version will place an X over the page but you'll at least be able to tell whether it makes a difference.)
    What is the PDF file size? Have you tried optimizing the PDF before printing?
    All printers and printer drivers are different, giving different options in the Print dialog, so I can't give you anything very specific to look at there... but look for your print quality option. Is it set to "high" (or "best" or whatever your printer calls it)? If so, change it to normal quality and see if that speeds things up.
    Those are just some things off the top of my head that you might want to look at. Please report back with your results.

  • Undesired multiple pdf files created with multipage print.  Acrobat 9.5

    Hello,
    I have a 20 tab spreadsheet in Excel 2010, 18 tabs of which are presentation pages.
    Most are landscape letter, 3 or 6 are landscape legal
    The first time around, I selected the 18 tabs, file/printed to pdf, and I ended up with a perfect pdf, All 18 pages, 3 of which were legal size.
    I change department names, change a bunch of data, added a few more tabs.
    When I commence the same print routine, selecting all tabs to be included, I now get one 16 page pdf, a number of 1 page pdf's, and one three-page pdf.  Each time the print routine asks for the file name.  8 times in total, instead of just once.  What triggers this unwanted multi file split, and how can I prevent it?
    Thank you for any and all suggestions,

    Hello,
    I have a 20 tab spreadsheet in Excel 2010, 18 tabs of which are presentation pages.
    Most are landscape letter, 3 or 6 are landscape legal
    The first time around, I selected the 18 tabs, file/printed to pdf, and I ended up with a perfect pdf, All 18 pages, 3 of which were legal size.
    I change department names, change a bunch of data, added a few more tabs.
    When I commence the same print routine, selecting all tabs to be included, I now get one 16 page pdf, a number of 1 page pdf's, and one three-page pdf.  Each time the print routine asks for the file name.  8 times in total, instead of just once.  What triggers this unwanted multi file split, and how can I prevent it?
    Thank you for any and all suggestions,

  • Problem in multipage printing

    Hello,
    I was trying to print html document through java.
    for a small, single page document it's printing fine.
    but for a long document, which spans more than one
    page, its giving problem and going into infinite loop.
    I could not solve the problem.
    Can any of you suggest any solution.
    thanks.

    <addition with the above>
    actually I am using JFrame and boxView for printing.

  • Printing a multipage document containing multiple Components

    Hi everybody,
    I am trying to print a multipage document which consists of multiple JPanels used for grouping, each of which hold JLabels and JScrollPanes and JTextAreas.
    I know how to do multipage printing with text but I am lost with the multi component situation.
    Thanks in advance for any help.
    vh

    If you know how many pages are in use, get the size of the page (the pageformats imageable height * page number) and with that number translate the page up that number of pixels. ( the translate method of graphics ). Then you can draw all the components on the page. Make sure you translate before you draw, this mistake took me a day to figure out. Hope this helps.

  • Is it possible to print JTable and custom JPanel on the same page?

    Hello everybody!
    I have a custom panel extending JPanel and implementing Printable.
    I am using paint() method to draw some graphics on it's content pane. I would like to print it, but first I would like to add a JTable at the bottom of my panel. Printing just the panel goes well. No problems with that.
    I was also able to add a JTable to the bottom of JFrame, which contains my panel.
    But how can I print those two components on one page?

    Hi, thanks for your answer, but I thought about that earlier and that doesn't work as well... or mybe I'm doing something wrong. Here is the sample code:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    public class ReportFrame extends JFrame implements Printable {
         private static final long serialVersionUID = -8291124097290245799L;
         private MyPanel rp;
         private JTable reportTable;
         private HashPrintRequestAttributeSet attributes;
         public ReportFrame() {
              rp = new MyPanel();
              String[] columnNames = { "Column1", "Column2", "Column3" };
              String[][] values = { { "Value1", "Value2", "Value3" }, { "Value4", "Value5", "Value6" }, { "Value7", "Value8", "Value9" } };
              reportTable = new JTable(values, columnNames);
              add(rp, BorderLayout.CENTER);
              add(reportTable, BorderLayout.SOUTH);
              setTitle("Printing example");
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setPreferredSize(new Dimension(700, 700));
              pack();
              setVisible(true);
         @Override
         public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
              if (pageIndex >= 1)
                   return Printable.NO_SUCH_PAGE;
              Graphics2D g2D = (Graphics2D) graphics;
              g2D.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
              return Printable.PAGE_EXISTS;
         public static void main(String[] args) {
              new ReportFrame().printer();
         class MyPanel extends JPanel implements Printable {
              private static final long serialVersionUID = -2214177603101440610L;
              @Override
              public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
                   if (pageIndex >= 1)
                        return Printable.NO_SUCH_PAGE;
                   Graphics2D g2D = (Graphics2D) graphics;
                   g2D.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
                   return Printable.PAGE_EXISTS;
              @Override
              public void paint(Graphics g) {
                   super.paintComponent(g);
                   Graphics2D g2D = (Graphics2D) g;
                   int x = 0, y = 0, width = 70, height = 70;
                   for (int i = 0; i < 50; i++) {
                        g2D.drawOval(x + i * 10, y + i * 10, width, height);
         public void printer() {
              try {
                   attributes = new HashPrintRequestAttributeSet();
                   PrinterJob job = PrinterJob.getPrinterJob();
                   job.setPrintable(this);
                   if (job.printDialog(attributes))
                        job.print(attributes);
              } catch (PrinterException e) {
                   JOptionPane.showMessageDialog(this, e);
    }UPDATE:
    I've managed to get this to work, by calling 2 methods inside the outer frame's print method (lines 78 and 79)
    Those two methods are:
    rp.paint(g2D);
    reportTable.paint(g2D);but still it is not the way I would like it to be.
    First of all both the ReportPanel and ReportTable graphics are printed with the upper-left corner located in the upper-left corner of the JFrame and the first one is covering the second.
    Secondly, I would like to rather implemet the robust JTable's print method somehow, because it has some neat features like multipage printing, headers & footers. But I have no idea how to add my own graphics to the JTables print method, so they will appear above the JTable. Maybe someone knows the answer?
    Thanks a lot
    UPDATE2:
    I was googling nearly all day in search of an answer, but with no success. I don't think it's possible to print JTable using it's print() method together with other components, so I will have to think of something else i guess...
    Edited by: Adalbert23 on Nov 22, 2007 2:49 PM

  • Printing by white color

    hi
    it's my second post about printing jpanel
    following code is work, it's print multipages, printing all components
    but all text - jlabels,table headers and table contents printing by WHITE COLOR. At display it's showed black, and at print method i set color to black too. So WHY text still WHITE ???
    thanks
    my code is
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    import javax.swing.table.JTableHeader;
    import javax.swing.table.*;
    class JPanelMy extends JPanel implements Printable
              static JLabel title1=new JLabel("test");
              static JLabel prelast=new JLabel("testl1");
              static JLabel last=new JLabel("testl2");
              JLabel titlename,daydate;
              JTableHeader th;
              TableElements table_elements[];
              MainWindow src;
              JLabel l1[],l2[];
              JPanelMy(MainWindow src)
                        super();
                        this.src=src;
                        DateWork dw=new DateWork();
                        daydate=new JLabel(dw.getDayDate());
                        titlename=new JLabel();
                        setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
                        setBackground(Color.white);
                        setForeground(Color.black);
              public void setTitleDoc(String s)
                        titlename.setText(s);
              public void printData()
                        PrinterJob pj=PrinterJob.getPrinterJob();
                        pj.setPrintable(this);
                        pj.printDialog();
                        try
                                  pj.print();
                        catch (PrinterException pe)
                                  System.out.println("Printer Exception");
              public void showTables(int doc,TableElements table_elements[])
                   // showing jpanel structures
              public int print(Graphics g,PageFormat pageFormat,int pageIndex) throws PrinterException
                        Graphics2D g2=(Graphics2D)g;
                        g2.setColor(Color.black);
                        int fontHeight=g2.getFontMetrics().getHeight();
                        pageFormat.setOrientation(PageFormat.LANDSCAPE);
                        double pageHeight=pageFormat.getImageableHeight()-fontHeight;
                        double pageWidth=pageFormat.getImageableWidth();
                        Dimension d0;
                        d0=getSize();
                        double panelWidth=(double)d0.width;
                        double panelHeight=(double)d0.height;
                        double scale=1;
                        if (panelWidth>=pageWidth)
                                  scale=pageWidth/panelWidth;
                                  System.out.println("scale="+scale);
                        double panelWidthOnPage=panelWidth*scale;
                        double oneRowHeight=fontHeight;
                        int numRowsOnAPage=(int)(pageHeight/oneRowHeight);
                        double pageHeightForPanel=oneRowHeight*numRowsOnAPage;
                        int totalNumPages=(int)Math.ceil((double)panelHeight/pageHeight);
                        if (pageIndex>=totalNumPages)
                                  return (NO_SUCH_PAGE);                         
                        g2.translate(pageFormat.getImageableX(),pageFormat.getImageableY());
                        g2.translate(0f,-pageIndex*pageHeightForPanel);
                        g2.setClip(0,(int)pageHeightForPanel*pageIndex,(int)Math.ceil(panelWidthOnPage),(int)Math.ceil(pageHeightForPanel));
                        g2.scale(scale,scale);
                        paint(g2);
                        g2.scale(1/scale,1/scale);
                        g2.translate(0f,pageIndex*pageHeightForPanel);
                        return (PAGE_EXISTS);
              public void setPCardLabels(JLabel l1[],JLabel l2[])
                        this.l1=l1;
                        this.l2=l2;

    so no advices ? :(

  • Cropping pages and then printing 2 up per page.

    I have a PDF from Google books of a scanned in book with lots of white space in margins. The pages are small and portrait so I wish to print 2 per page on landscape A4. When I use the cropping tool I can reduce the white space to something like the original margins of the book. Then I print 2-up on Landscape to a .ps/pdf–x/pdf file and my cropping is ignored and I get two postage stamp sized (exaggeration for effect) pages in a sea of white space.
    How can I bake the cropping to a new file or at least get it to print with my chosen cropping and then enlarged to fill A4 landscape.
    View cropped pages in Acrobat:
    http://www.flickr.com/photos/13808162@N08/3691054224/
    And printed two-up to A4 landscape page as .ps then distilled:
    http://www.flickr.com/photos/13808162@N08/3691055114/
    Also I can't use the insert image button in this forum thread editor it is greyed out but Video is good?!
    And i can't write my own <a href="apple.com">Better forum tools</a> links here, despite having such a good example in apples discussion forums and years to think about getting it right. Adobe is twin brothers I think – one good one evil
    Message was edited by: wideEyedPupil

    Thanks Michael,
    I'm pretty sure I could do this in InDesign if I ran the script to load the PDF pages into an InDesign doc and then a script to align/crop each page. Wanted to make sure I am not missing something in Acrobat first — in fact, if what I am finding is all Acrobat can do in terms of realising its crops on multipage printing, it amounts to a serious bug (in my book). I've used imposition software in Print shops and it is very effective I know but the price is just too high for a small return. Don't want to learn demo software I can't use after a couple of uses either. Thanks for the suggestion though it's definitely a solution.

  • B209 - long pause when printing last page

    I have a b209 printer setup as a wireless printer.  It communicates with my computers but when printing multipage prints it will print fine for the first page but on the last page it prints a couple of lines and then stops printer for about a minute and then starts printing again and completes.
    This happens printing from both a WindowsXP and Windows 7 machine.  I've loaded the latest software from the web site and still experience the same problems.
    TIA for any help with this.
    Bri-ko

    OK, that's a pretty elaborate system!  The first thing that came to mind is all of the devices the packets have to go through to get to your printer.
    Anyway, I assume you have only one device acting as DHCP server (it looked that way, but want to make sure that the Uverse was not involved).
    Let's set a static IP address for the printer:
    - Print a Network Config Page from the front of the printer. Note the printer's IP address.
    - Type that IP address into a browser to reveal the printer's internal settings.
    - Choose the Networking tab, then Wireless along the left side, then the IPv4 tab.
    - On this screen you want to set a Manual IP. You need to set an IP address outside the range that the router automatically sets (called the DHCP range). If you know what that is, set an IP outside that range but no higher than 254 (the last number in the address). This is important.
    - Use 255.255.255.0 for the subnet (unless you know it is different, if so, use that)
    - Leave the gateway and DNS blank.
    - Click 'Apply'
    Now, shut down the router and printer, start the router, wait, then start the printer.
    After this you may need to redo 'Add a Printer' using the new IP address.
    If this does not work, do the same thing only enter the gateway IP for gateway and first DNS entry, leave the second blank.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Why does my hp d7260 printer spit out a blank page each time one is printed?

    Often the printer will print out the desired page and than a eject the next page (blank with no intention of printing on it).  It will have a blank page between each multipage printing.  It always does this on printing from my wife's computer and sometimes from mine.  The printer is connected to our home network.  I am using xp and my wife is using vista.  I haven't kpet track of every incident from my computer but usually printing something from my browser. I run the paper through again so it is not a waste but just a pain.
    Thanks   George

    This sounds like an issue that could result from having A4 sized paper but having the printer settings set for A size.  Please check the paper settings.
    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

  • How can I print some pages from multipage report

    Hello,
    I have created a multipage report in word. I would like the user to be able to print the pages selected (as in word printing: pages: 1, 2-3); 
    I am using Office 2007 pro, the LabVIEW Report Gen Toolkit, LabVIEW 2009, and Windows XP.
    I used the suggestion in thread:
    http://forums.ni.com/t5/LabVIEW/How-can-you-print-a-single-page-of-a-multipage-report/m-p/155233 , modifying the print VI that comes shipped with LabVIEW: NI_ReportGenerationToolkit.lvlib:Word_Print.VI.
    first of all I put two integer constants on "From" and "To" in the Invoke node (PrintOut), but Labview return an error:
    Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclassrint Report.vi -> print2.vi
    Then I searched for PrintOut Method in word 2007 Reference guide, and I saw that for using From and To the Range field must have the string  wdPrintFromTo;
    I insert wdPrintFromTo string  in RANGE Field and tryed.... same error......
    After that I change approach; removed all constants and used the field Pages; I put a string "1-2" connected to this field and now the printer respond, but all pages was printed!
    What's wrong?
    many thanks
    Attachments:
    print2.vi ‏18 KB
    parte comune.doc ‏43 KB

    Thanks, Alex!
    ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
    I don't try second approach, because at this time I have only one report
    I try also with VB macro: this is better (print3.vi) but.....if I use:
    Sub Print_Pages_From_To()
    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
    End Sub
    is ok; print the pages selected; if I use:
    Sub PrintPages()
    ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
    End Sub
    printer print all pages.
    what do you think?
    regards,
    Italo
    Attachments:
    print Problem.jpg ‏39 KB
    print4.vi ‏19 KB
    print3.vi ‏19 KB

  • Printing a multipage document (7 pg) only prints 1 page windows 7

    Printing a multipage document (7 pg) only prints 1 page windows 7. The original document shows 7 pages but when going to print preview only show pg 1 of 1

    This document may offer some help:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c02002372&lc=en&product=1153494&tmp...
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • CS5.5 InDesign: Last 2 pages of multipage duplex print come out 1-sided

    Using CS5.5 InDesign, last 2 pages of a multipage duplex print come out 1-sided. Same page ranges print OK in PDF. Printer is HP Color Laserjet 4700 with latest device firmware. Have latest HP drivers on Mac OS 10.7.
    This is a recent problem. Had no problems with CS5 InDesign duplex printing from this computer to this printer until a couple weeks ago. First sign of an issue was that printing slowed to a crawl. Literally 5 minutes to resolve one page to the printer. Updated the printer firmware and speedy printing returned, but then noticed the duplex printing issue. Problems began about the same time as a Mac OS system update, but I'm not sure which came first, the software update or the printing issues. No problems with the printer from other software or other computers on the network.
    I have read that certrain InDesign print settings sometimes produce unexpected results in some computer environments. Am hoping this is the case, and someone on this forum will know the trick.

    evollowitz wrote:
     ...and someone on this forum will know the trick.
    I think for most users, "the trick" that produces the most consistently predictable result is to never print directly from InDesign; always go to PDF and print that. Personally, I haven't even attempted to print from InDesign since CS2.

  • Which multifunction Laser printer (MFP) for Lion? - need multipage scanning through automatic document feeder

    Hi all,
    I'd love to get your advice on what MFP laser printer to buy.
    I need:
    - Laser color PRINTING for a small business (+/- 1500 pages per month)
    - SCANNING, preferably easy multipage scanning through the automatic document feeder
    Optionally:
    - 2nd paper feed tray
    I think of buying the HP Color LaserJet CM2320fxi, but there seem to be plenty of compatibility issues with Lion (e.g. scan to network folder does not work on Lion).
    I'd love to hear about success or failure of MFP on Lion from HP, Brother, Xerox, Lexmark, etc...
    Thx for your advace,
    S.

    I can recommend the Canon MF8380C. It has a document feeder that supports duplex scanning to Lion, either via Image Capture or Preview or 3rd party application like Acrobat Pro. You can also push scan documents from the machine by first configuring the scan settings using the Canon MF Toolbox that gets installed on the Mac.
    The print quality is good for office documents, but not that accurate for colour proofing. It uses Canon's proprietary UFR2 v2.30 driver of which the Lion version of this driver is available from the Canon web.
    As for the monthly volume, 1500 pages per month is the maximum recommended volume, so not sure if this would suit your business needs. It's recommended monthly volume is 800 colour pages.

Maybe you are looking for

  • PASSWORD FOR FLODERS  PLEAse  HELP URGENT

    HI ALL please tell me the method of implementing password provision for some folders/files in the system. it should ask for password authentification before opening when i click on the folder. please help urgent thanks belur

  • How to do detection of pulsating light (eg torch light)

    Hi all, I am trying a application where i need to do intensity based object detection. The inputs provided for the algorithm are threshold intensity, object size(minimum 3 to 100 pixels) and  pulsating (that is torch light is on in one frame and off

  • BAPI for Outbound Delivery Creation with reference to Sales Order

    Dear all, I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction. I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_D

  • TDS : on Downpayment

    Hello Experts, TDS on Invoice has been configured & calculated correct, thanx to all your help & guidance. The vendor on which i m trying has already crossed limits & surcharge is now applicable to him. but now when i m trying to post a downpayment,

  • Variable char 255 in the body of a Send Mail step

    When I include a variable (char 255) of the workflow container  in a "Send Mail" step body, in the sent mail I can't see all the characters. It seems to cut about 80 characters. Can anybody help me. Thanks in advance. Sonia