How to print day per page on Palm Desktop?

I have a .dba Palm DateBook file taken off a Palm Treo 650 phone.  I would like to print the calendar entries with the entries for one day per page.  However the Palm Desktop software appears to only provide for one whole month to be printed on a single page.  Does anyone know how I can print the calendar entries for a particular day on a single page?
Post relates to: Treo 650 (Unlocked GSM)

Open Printers & Scanners. Select the HP. Click on Open Printer Queue. From the menubar, click on the Printer menu and then select Print Test Page.

Similar Messages

  • Tutorial on how to print  multiple output pages

    Hi,
    I am rather sad that this forum does not provide a simple principle on how to printout multiple pages to newbie.
    Below is a short contribution from me on how to print across multiple pages, other reader are also encourage to modify the code to provide more robust tutorial .
    * How to use java to print across pages that are more than one
    * Short contribution to java forum by Eric gan (Malaysia)
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.print.*;
    import java.awt.Graphics2D;
    import java.awt.print.*;
    import java.awt.print.Book;
    import java.awt.print.Pageable;
    import java.awt.Graphics2D;
    import java.awt.Graphics;
    public class Example implements Printable {
    //--- Private instances declarations
    private int row_cnt=30; // set the total number of row per page
    private int cum_row_cnt=30; // set the counter to record total number of row per page to determine
    // whether maximum pages should be increase depending on the programme requirement
    private int max_pg=0; // set the maximum number of page
    public Example () {
    //--- Create a printerJob object
    PrinterJob printJob = PrinterJob.getPrinterJob ();
         printJob.setPrintable(Example.this);
    if (printJob.printDialog()) {
    try {
    printJob.print();
    } catch (Exception PrintException) {
    PrintException.printStackTrace();
    public void paint (Graphics g) {
    Graphics2D g2d;
    g2d = (Graphics2D) g;     
    int x=10;
    int y=10;
    for (int outline=0;outline<=160;outline+=20){
              if (y>cum_row_cnt){
              cum_row_cnt+=row_cnt;//counter should grow by value equal to row_cnt
         max_pg++;
         g2d.drawString("outline value ---> " +outline , x, y);
         y+=10; // to set the row printing interval      
    } // end of paint procedure
         public int print(Graphics g,
    PageFormat pf, int pi)
              throws PrinterException {
    // normal routine to check when should java stop the print looping
    if (pi >max_pg) {
    return Printable.NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D) g;
         int fontHeight=g2.getFontMetrics().getHeight();
         int fontDesent=g2.getFontMetrics().getDescent();
         double pageHeight = pf.getImageableHeight()-fontHeight;
         double pageWidth = pf.getImageableWidth();
         // setting for the translate and graphics clipping to enable printing on output pages
    // row_cnt can be equal to pageHeight
    // in this examples assumming pageHeight=20 rows           
         g2.translate(pf.getImageableX(), pf.getImageableY());
    g2.translate(0f,-pi*row_cnt);
    g2.setClip(0, (int)(row_cnt* pi),
    (int) Math.ceil(pageWidth),
    (int) Math.ceil(row_cnt));
    paint(g2);
    return Printable.PAGE_EXISTS;
    public static void main (String [] args) {
    Example example = new Example ();
    System.exit (0);
    Thank

    Hello
    I know that Pages is using its own algorithm to resize pages when it put several of them on a single sheet.
    This is why I use this tip.
    I draw a rectangle whose size is supposed to be the final one.
    I give it a white background and a black border whose thickness is set to one point.
    For the tests I just insert three page breaks so that the document is a four pages one.
    I print it as is.
    Doing that, I may measure the printed rectangle.
    Of course, at first attempt it doesn't match the required size.
    It's easy to compute the required adjustments.
    When the correct factor is reached, it is easy to build the complete document so that it prints the correct size.
    Doing that I never got odd results but maybe it's because I am a lucky guy.
    Of course, disagreeing with one advice doesn't mean that I don't respect it.
    I respect your opinion, _on other matters too_
    Yvan KOENIG (from FRANCE mardi 6 mai 2008 17:24:09)

  • How to print 2 sided pages brochure

    how to print 2 sided pages brochure

    Hello kaskasnikola,
    I understand that you need to print 2 pages per page.
    1 Open the printer driver, and click the Finishing tab.
    2 Select the number of pages per sheet from the Pages
    per sheet drop-down list.
    3 Select the correct options for Print page borders,
    Page order, and Orientation.
    4 Click OK.
    If you are having any problems please post on our printer forums.
    Here is a link to the forum.

  • How to print envelopes in pages, How to print envelopes in pages

    How to print envelopes in pages, How to print envelopes in pages

    I presume you are using the Pages application, is that correct?
    So start off by launching Pages and choose one of the regular envelope styles. Traditional works well for me.
    Next go to the File menu and select Page setup. From the menu that says Paper Size select Manage Custom Sizes. In the resulting dialog, there should be a button on the left labeled "+". Click it. In the Paper Size area, select Width 5 in and Height 7 in. Name the size (where it says "untitled" something descriptive like "5 x 7 envelope". Click the OK button. The Paper Size menu here should now say the description you gave it. Click OK again. Your work area should now be a 5 x 7 envelope.
    Best of luck.
    PS If you are using Word or some other program, the process is probably the same or very similar.

  • How to divide record per page (20 record per page).

    How to divide record per page (20 record per page).
    I try word (limit) example
    "select * from table1 where [ some_condition]
    limit [start], [end] "
    , but it error.

    Tom Kyte has a rather extensive discussion of paging techniques here: http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:127412348064
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9

    I'm trying to print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9. HELP!!Version 7.0 (826.4)
    I'm using Preview Version 7

    Hello @kgingeri1, 
    Welcome to the HP forums.
    If you have sent a test print via ePrint, and experience this issue, i would call the Cloud Services department.
    If ePrint works fine, it is definitely a Google Cloud Print issue.
    Also, when you print from your android device, are you using Google Cloud print or the HP ePrint app?
    Please call our Cloud Services at 855-785-2777.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Hours:
    Mon-Fri. 8am - 11pm, Sat. 9am-8pm - EST
    Mon-Fri. 7am - 10pm, Sat. 8am-7pm - CST
    Mon-Fri. 6am - 9pm, Sat. 7am-6pm - MST
    Mon-Fri. 5am - 8pm, Sat. 6am-5pm - PST
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • How to implement Rows Per Page Selector for a tabular form kind of report

    Hello,
    Can somebody please tell how to implement Rows Per Page Selector in a tabular form (updatable report)
    -- similar to what we can have in an Interactive report---
    Plz help me out.

    You have to create item text field or select list (in interactive report is select list, you can create static value for example 10, 15, 50 , 100,500,.....) . In the Tabular form you have to go Report Attributes, search Number of Rows (Item) and select your item. And thats all. If I help you please check CORRECT or Helpful.

  • How do I transfer my data from Palm desktop to iPhone?

    How do I transfer my data from Palm desktop to iPhone? I just gave up my Treo 755p in favor of an iPhone. How do I transfer my Treo data (contacts, calendars)

    I believe that when you boot your computer for the first time and you are following the onscreen instructions you are prompted whether you want to transfer data from an old mac or PC. If you click 'transfer from an old mac' and follow the onscreen instructions, this may work.
    If you have already skipped this step you could use iCloud to transfer data. If you make sure that everything you want to transfer is synced in iCloud, this may also work.

  • How do I easily transfer data from Palm Desktop to iCal and Address Book?

    Hello,
    How do I easily transfer data from Palm Desktop to iCal and Address Book?
    I have a Palm Tungsten E handheld which just died.
    Luckily, all my data is backed-up on my Palm Desktop V4.2.1.
    I just bought an iPod-Touch, so I would like to easily transfer
    all my data (Addressbook, Calendar, etc) from the Palm Desktop
    on my Mac (OSX 10.5) to the equivalent Mac applications
    (Address Book, iCal) which will then allow me to view and update
    them on my iPod-Touch.
    How do I easily transfer data from Palm Desktop to iCal and Address Book?
    Thanks in advance for your help.
    David

    Hi David. The contact information is straightforward. Bring up your Address List in Palm Desktop, then select Export under file. You pick vCard as the format, and save the resulting file where ever. In Address Book, you then select Import --> vCards under file. You may need to edit things like birthdays by hand afterwards.
    I am still working on the Calendar information.
    - Chris

  • Does anyone know how to print from my pad to my desktop?

    does anyone know how to print from my pad to my desktop?

    A desktop is not a printer. Your question is not clear. Explain what you are trying to do.
    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad  ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99)  http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
     Cheers, Tom

  • How to print a empty page in a Layout

    Hi experts,
    i have a small requirement in forms. In my sapscript form i have 2 pages. its displaying properly the invoice layout.
    But the new requirement is the user want to print a empty page as 1st page and remaining as per now current setting.
    How to print a empty first page in a layout using sapscript?
    Anyone help this issue?
    Mohaha

    Hi Mohana,
                    Create one new page and one window of almost page size with no contents.  Move that window to this page.  Keep this page as first page and give earlier first page as next page to this newly created page.
                    Hope this should solve the problem.
    Regards
    Sravan

  • How to print PDF few pages duplex but not all from one PDF Doc?

    Hi,
    We have a desktop application that we use and it gives instructions to printer which document to duplex and which to not. For easy understanding, in a PDF if there are 10 pages, i want to take first two pages whenever they are  printed they go  on duplex rest of 8 pages should print without duplex. I have a PDF of these 10 pages document and want to send via email to one, so that if he has duplex printer, he just send that PDF doc to printer and it automatically send first two pages duplexed then rest of 8 pages per paper. So finally he get 9 printed hard copies. My question is, is there any capability in PDF document we can apply per page that when go on printer it instructs to printer to duplex me or not. Like we have PDF properties associated with doc. Can we setup such property for each page? I know this is not a good question, but our business requies to send PDF to customers and we do save this to do ourself, How customer know which page to duplex then?
    If there is any automated solution we can give to customers? The PDF each page take decision by its own when going on printer it says i have to go on back of the paper and the other  says i won't have to be duplexed?
    Shamshad Ali
    [email protected]

    I see you are using Dietmar Aust's JasperReportsIntegration kit. Check out following tutorials on how to call your report from APEX:
    http://www.opal-consulting.de/downloads/free_tools/JasperReportsIntegration/Opal-Consulting-JasperReportsIntegration.pdf (page 32 - 33)
    https://www.opal-consulting.de/apex/f?p=20090928:9:::NO:9::
    These sources should be sufficient to successfully call reports from an APEX application.
    Feel free to ask more information in case you're experiencing difficulties...

  • 7610 takes 14 minutes to print pdf per page

    Taking 15 minutes per page to print pdf.
    WHY???????

    Hi,
    How long does it take to send file to the printer (called Flattering) ? Yesterday I created an one page PDF file using Adobe Acrobat 10, the file size is only 21Kb (yes 21Kb) and it took 17mins to send that file to my printers. They are all networked, big laser printers. The output did not come out, the printers display memory full (all of them - note: I can walk to any printer with my access card to det my output). These printers can print 400 pages PDF document no longer than 10mins. I will send it to another printer later when working at other building.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to print a specific page from the internet

    I have tried to print a specific page, and get about seven pages that are linked to it, without
    seeing the specific page I wanted printed out. The page settings under printer only lists header and footer
    info, and no choices to print only this page or frame. There is no way to print  one specific page on this printer?
    I always was able to do this  with the Epson printer I just replaced, but unable to with this printer.
    Please help! There must be a way to do this when printing from the internet. Thanks for any help.

    deezire
    Welcome to the HP Community Forum.
    I don't have any idea what you are trying to print, nor do I wish to know.  Smiling.
    The key may be to control this in Print Preview like you would with most things when you are printing from a Browser.
    Manage Print Output with Print Preview
    ========================================================================
    Depending on which browser you are using, you might also be able to make use of Smart Print:
    Downloads and Information:
    HP Printing Software
    Scroll down > look on the right side of the page under Web Page Printing for the HP Smart Print download
    How-To:
    Smart Print Help and FAQ
    Includes: How to update your installed version of Smart Print:
    #6: How do I get the latest version of Smart Print?
    Smart Print updates automatically using the default settings. You can choice to update manually by selecting the "?" on the Smart Print Preview/Print bar located in the upper left corner of Smart Print. Select the Updates tab to get the latest version.
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • Java printing problem how to print in multiple pages

    hi all
    i'm trying to print the output of my application
    no problems with the 1st page but i'd like to tell to my app to print in a brand new page if the content exceed the printable length of the first page. i have 2 classes: printer and Document. the last one implements Printable
    Printer code
    PrinterJob printJob = PrinterJob.getPrinterJob ();
          //--- Create a new book to add pages to
          Book book = new Book ();
          //--- Add the cover page using the default page format for this print job
          //book.append (new IntroPage (), printJob.defaultPage ());
          //--- Add the document page using a landscape page format
          PageFormat documentPageFormat = new PageFormat ();
          documentPageFormat.setOrientation (PageFormat.LANDSCAPE);
          //Document doc=new Document();
          //book.append (doc, documentPageFormat);  
          //book.append (new Getter(), documentPageFormat);  
          book.append (new Document(), documentPageFormat);  
          //--- Tell the printJob to use the book as the pageable object
          printJob.setPageable (book);
          System.out.println("AAAAAAAA" +book.getNumberOfPages());
          //--- Show the print dialog box. If the user click the
          //--- print button we then proceed to print else we cancel
          //--- the process.
          if (printJob.printDialog()) {
             try {
                printJob.print(); 
             } catch (Exception PrintException) {
                PrintException.printStackTrace();
          }Document code:
    public class Document implements Printable
        private final static int POINTS_PER_INCH = 72;
        Calendar now;
        DateFormat df;
        Date date;
        double width;
        Point2D.Double pen;
        Graphics2D g2d;
        LineBreakMeasurer lineBreaker;
        AttributedString paragraphText;
        TextLayout layout;
        double maxPen=0.0;
        static int x1,x2,x3,x4,x5,x6,x7,x8,x9,x10;
        static double intestY, textX, textY;
        public Document()
        public int print (Graphics g, PageFormat pageFormat, int page)
            pen = new Point2D.Double();
            //setto calendario e DateFormat per orario
            df=new SimpleDateFormat("HH:mm:ss:SSS");
            //now=GregorianCalendar.getInstance();       
            //date=now.getTime();
             //--- Create the Graphics2D object
             g2d = (Graphics2D) g;
             //--- Translate the origin to 0,0 for the top left corner
             g2d.translate(pageFormat.getImageableX (), pageFormat.getImageableY ());        
             g2d.setColor(new Color(204,204,204));
             Font titleFont = new Font ("arial", Font.PLAIN, 10);
             Font textFont = new Font ("arial", Font.PLAIN, 8);
             g2d.setFont (titleFont);
             //--- Compute the horizontal center of the page
             FontMetrics fontMetrics = g2d.getFontMetrics ();
             String text = "ABSOL s.r.l. - LISTA APPUNTAMENTI DI Marcello Baiguera";
             textX=(pageFormat.getImageableWidth() - fontMetrics.stringWidth(text))/2;
             textY =7.2;
             //g2d.drawString (text, (int) textX, (int) textY);
             g2d.setFont (textFont);
             fontMetrics = g2d.getFontMetrics ();        
             //linea orizzontale sotto il titolo
             textY=textY + fontMetrics.getDescent();
             //g2d.drawLine(0, (int)textY, (int)pageFormat.getImageableWidth(), (int)textY);
             //prima linea verticale - margine sx
             //g2d.drawLine(x1, (int)textY, x1, (int)pageFormat.getImageableHeight());
             //seconda linea vert 
             x2=x1+fontMetrics.stringWidth("ven. 31/12/2003 ");
             //g2d.drawLine(x2, (int)textY, x2, (int)pageFormat.getImageableHeight());
             //terza linea vert         
             x3=x2+fontMetrics.stringWidth("88:88 ");
             //g2d.drawLine(x3, (int)textY, x3, (int)pageFormat.getImageableHeight()); 
             //quarta linea vert         
             x4=x3+fontMetrics.stringWidth("Marcello Impegnato text text text text");
             //g2d.drawLine(x4, (int)textY, x4, (int)pageFormat.getImageableHeight());
             //quinta linea vert         
             x5=x4+fontMetrics.stringWidth("Sig D'alessio Gigione ");
             //g2d.drawLine(x5, (int)textY, x5, (int)pageFormat.getImageableHeight());   
             //sesta linea vert         
             x6=x5+fontMetrics.stringWidth("Via del PonteVico, 222222 ");
             //g2d.drawLine(x6, (int)textY, x6, (int)pageFormat.getImageableHeight());
             //settima linea vert         
             x7=x6+fontMetrics.stringWidth("del Bagnolo Del Mella (bs) ");
             //g2d.drawLine(x7, (int)textY, x7, (int)pageFormat.getImageableHeight());
             //ottava linea vert         
             x8=x7+fontMetrics.stringWidth("333/78547888 ");
             //g2d.drawLine(x8, (int)textY, x8, (int)pageFormat.getImageableHeight());       
             //nona linea vert         
             x9=x8+fontMetrics.stringWidth("Rinnovo Scadenza Il ");
             //g2d.drawLine(x9, (int)textY, x9, (int)pageFormat.getImageableHeight());
             //decima linea vert         
             x10=x9+fontMetrics.stringWidth("Sandropolitan")+2;
             //g2d.drawLine(x10, (int)textY, x10, (int)pageFormat.getImageableHeight());
             intestY=textY+12;
             text = "DATA";
             textX= x1+((x2-x1)-fontMetrics.stringWidth(text))/2;                 
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "ORA";
             textX= x2+((x3-x2)-fontMetrics.stringWidth(text))/2;                 
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "CLIENTE";
             textX= x3+((x4-x3)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "REFERENTE";
             textX= x4+((x5-x4)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "INDIRIZZO";
             textX= x5+((x6-x5)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "CITTA'";
             textX= x6+((x7-x6)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY);        
             text = "TELEFONO";
             textX= x7+((x8-x7)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "MOTIVAZIONE";
             textX= x8+((x9-x8)-fontMetrics.stringWidth(text))/2;       
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "APP. CON";
             textX= x9+((x10-x9)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY);       
             textY=intestY+6;
             //g2d.drawLine(0, (int)textY, (int)pageFormat.getImageableWidth(), (int)textY);
             textY=textY+12;
             double initialTextY=textY;
             System.out.println("maximum Y: "+pageFormat.getImageableY());
             Vector maxPens=new Vector();
             boolean vai=true;
             for(int i=0;  i<12; i++ )
                 if(textY<400.00 && vai)
                     System.out.println("");
                     System.out.println("-- "+i+" --"+df.format(new Date()));
                     //data
                     text = Integer.toString(i);
                     //textX= x1+((x2-x1)-fontMetrics.stringWidth(text))/2;
                     pen.x=x1+2;                
                     printJustified(text, x2-x1-4,textY);
                     //ora
                     text = "10:00";
                     //textX= x2+((x3-x2)-fontMetrics.stringWidth(text))/2;          
                     pen.x=x2+2;                
                     //printJustified(text, x3-x2,textY);
                     //cliente
                     text = "Costruzioni Benedini";        
                     pen.x=x3+2;
                     //printJustified(text, x4-x3-4,textY);
                     //referente
                     text = "Sig. Alessandro mmmm mmmm mmm mmmm mm  ";
                     pen.x=x4+2;
                     //printJustified(text, x5-x4-4, textY);
                     //indirizzo
                     text = "Via del Ca'";
                     pen.x=x5+2;
                     //printJustified(text, x6-x5-4,textY);
                     //citta' + (prov)
                     text = "Pozzolengo S. (VR)";
                     pen.x=x6+2;
                     //printJustified(text, x7-x6-4,textY);
                     //telefono
                     text = "335/6998523";
                     pen.x=x7+2;
                     //printJustified(text, x8-x7-4,textY);
                     //motivazione
                     //text = "Primo Appun";
                     pen.x=x8+2;
                     //printJustified(text, x9-x8-4,textY);
                     //Appuntamento con
                     //text = "Alessandro";
                     pen.x=x9+2;
                     //printJustified(text, x10-x9-4,textY);        
                     //textY=pen.y+12;
                     try
                        textY=Double.valueOf(maxPens.get(i).toString()).doubleValue()+12;
                        System.out.println(i+" recuperato");
                     catch(ArrayIndexOutOfBoundsException a)
                         maxPens.add(Double.toString(maxPen));
                         textY=maxPen+12;
                         System.out.println(i+" aggiunto");
                 else
                     System.out.println("aaaaaaaaaaaaaa ("+textY+")");
                     vai=false;
             //--- Validate the page
             return (PAGE_EXISTS);
             //return(NO_SUCH_PAGE);
          void printJustified(String text, double width, double y)
             pen.y=y;
             String txt=text;   
             System.out.println("text: "+text+" - pen.y= "+y);
             paragraphText = new AttributedString (txt);
             paragraphText.addAttribute (TextAttribute.FONT, new Font ("arial", Font.PLAIN, 8));
            //--- Create a LineBreakMeasurer to wrap the text for the TextLayout object
            //--- Note the second parameter, the FontRendereContext. I have set the second
            //--- parameter antiAlised to true and the third parameter useFractionalMetrics
            //--- to true to get the best possible output
            lineBreaker = new LineBreakMeasurer (paragraphText.getIterator(), new FontRenderContext (null, true, true));
             //--- Create a Vector to temporaly store each line of text
             Vector lines = new Vector ();
             //--- Get the output of the LineBreakMeasurer and store it in a Vector
             while ((layout = lineBreaker.nextLayout ((float) width)) != null) {
                lines.add (layout);
             pen.y = pen.y - 7.373047;
             //--- Scan each line of the paragraph and justify it except for the last line
             for (int i = 0; i < lines.size (); i++)
                //--- Get the line from the vector
                layout = (TextLayout) lines.get (i);
                //--- Check for the last line. When found print it
                //--- with justification off
                //--- Align the Y pen to the ascend of the font, remember that
                //--- the ascend is origin (0, 0) of a font. Refer to figure 1
                pen.y += layout.getAscent ();
                //--- Draw the line of text
                layout.draw (g2d, (float) pen.x, (float) pen.y);
                //--- Move the pen to the next position adding the descent and
                //--- the leading of the font
                pen.y += layout.getDescent () + layout.getLeading ();
                if (pen.y>maxPen)
                    maxPen=pen.y;
                    System.out.println("-----------------------------------------------txt: "+txt+" new maxPeny= "+maxPen);
       }in Document i use the printJustified method that simply splits the text in rows.
    i'll don't explain the method 'cause my question is another.
    thanx a lot
    please!!!
    sandro

    Basically you need to write some smart code. Your application needs to be able to determine what to print on each page because the print api will call the following function passing a page number. Your application must know what to paint on each page. If you think it sounds complicated you better believe it is !!
    public int print(Graphics g, PageFormat pf, int pageIndex) {
    PageNumber = pageIndex+1;
    // Need to calc the pages here
    page = (Graphics2D)g;
    calcPages();
    say("Printing page " + PageNumber);
    if (PageNumber <= getNumPages()) {
    paint(g);
    return Printable.PAGE_EXISTS;
    } else
    return Printable.NO_SUCH_PAGE;
    The code above comes from my report printer class and as you can see a calcPages() function is called prior to the paint() function being called. This function sets up a whole bunch of things including exactly what needs to be printed on each page. Note that the calcPages() function is smart enought to simply return is it has already been called. This way the paint function simply checks the PageNumber variable when painting to establish what to draw on the page.
    So imagine when you are generating a very large report from a database ! You basically have to process the report doing all the formatting prior to actually allowing the paint function to be called. Its quite a complicated business but fortunately even the largest report does'nt really take up that much memory. I basically just create buffers of the data for each page - its a bit of a pain but the same logic is required for pagination anyway.
    Be happy to provide you with the source code but you might need the whole application to get anything working.

Maybe you are looking for