Printing in multiple pages

I am using the source code provided by sun available in following url
http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html
(Listing 3: Using the print method: PrintText )
The problem I am facing is, if I am invoking the printjob multiple times in a loop while printing the first page if second page is requested the first page printing is
stopped and second page is printed on the same page. My requirement is printing each time in
a different page. Can anyone of you help??

This is the source code
import java.applet.*;      
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import javax.swing.JOptionPane;
import java.awt.font.*;
import java.awt.geom.*;
import java.awt.print.*;
import java.text.*;
public class Test2 extends Frame implements ActionListener,WindowListener,Printable
     Label l = new Label("Row");
     Label l1 = new Label("Column");
     Label l2 = new Label("Pinnumber Printing");
     Panel p = new Panel(new FlowLayout(FlowLayout.CENTER, 10, 10));     
     Panel p1 = new Panel(new GridLayout(0,2,5,5));
     Panel p4 = new Panel(new FlowLayout(FlowLayout.CENTER, 10, 10));     
     static PrinterJob printerJob = null;
     static int rows = 0;
     static int var = 0;
static int x,y;
static String mText = null;
static String tempArray[][]=new String[1][10];
     boolean flag = false;
     Button b = new Button("Print");
     static TextField t1 = new TextField(4);
     static TextField t2 = new TextField(4);
     static String [][]args =new String[1][10];     
     String temp[] = new String[1];
     static int xPos=0;
     static int yPos=0;
     public Test2() {}
     public Test2(int xPos,int yPos)
          try
               this.xPos=xPos;
               this.yPos=yPos;     
               Class.forName("org.gjt.mm.mysql.Driver").newInstance();
               System.out.println("Driver loaded");
               -- here is my connection ---
          System.out.println("Connection created");
               Statement st = con.createStatement();
               ResultSet rs = st.executeQuery("SELECT C_ACCOUNTNO,A_PIN_NO,ACCOUNT"
               +",ADDRESS1,ADDRESS2,ADDRESS3,ADDRESS4,concat(CITY,'-',POSTALCODE) "
               +",STATE,COUNTRY FROM ACCOUNT,ACTIVATION "
               +" WHERE ACTIVATION.A_ACCOUNT_NO = ACCOUNT.C_ACCOUNTNO AND "
               +" ACTIVATION.A_PRINT_STATUS='"+"N"+"' and C_ACCOUNTNO in('"+"00000000104053"+"','"+"00000000104054"+"')");
     //          +" ACTIVATION.A_PRINT_STATUS='"+"N"+"' and C_ACCOUNTNO in('"+"00000000104025"+"','"+"00000000104054"+"')");
               ResultSetMetaData rsmd = rs.getMetaData();
               int index = 0;
               String label="";
               Statement st1 = con.createStatement();
               ResultSet rs1= st1.executeQuery("SELECT count(*) AS total FROM ACCOUNT,ACTIVATION "
               +" WHERE ACTIVATION.A_ACCOUNT_NO = ACCOUNT.C_ACCOUNTNO AND "
               +" ACTIVATION.A_PRINT_STATUS='"+"N"+"' and C_ACCOUNTNO='"+"00000000104025"+"'");
               int total = 0;
               if(rs1.next())
                         //total = rs1.getInt("total");
                         total = 2;
               st1.close();
               rs1.close();          
               args =new String[total][10];
               temp = new String[total];
               while(rs.next())
                         //System.out.print("count.."+rsmd.getColumnCount());
                         for(int i=1;i<=rsmd.getColumnCount();i++)
                              if(args[index][i-1] != null)
                                   if(rs.getString(i) != null)
                                        args[index][i-1] = args[index]+"|"+rs.getString(i);
                                   else
                                        args[index][i-1] = args[index]+"|"+" ";
                              else
                                   if(rs.getString(i) != null)     
                                        args[index][i-1] = rs.getString(i);
                                   else     
                                        args[index][i-1] = " ";
                         index++;          
          setResizable(false);
          setBackground(Color.lightGray);
          setTitle ("PINNUMBER PRINTING SCREEN");
          setSize(300,140);
          setLayout(new GridLayout(3,1));
          b = new Button("Print");
          p.add(l2);
          p1.add(l);
          p1.add(t1);
          p1.add(l1);
          p1.add(t2);
          p4.add(b);
          add(p);
          add(p1);
          add(p4);
          b.addActionListener(this);
          addWindowListener(this);
          setVisible(true);
          }catch(Exception e) {System.out.println("error..."+e);}     
     public void actionPerformed(ActionEvent ae) {
               if(t2.getText().length() > 0 && t1.getText().length() > 0)
                    xPos = Integer.parseInt(t2.getText());
                    yPos = Integer.parseInt(t1.getText());
                    if(JOptionPane.showConfirmDialog(null,"Do you want to invoke printing?", "Confirmation", JOptionPane.YES_NO_OPTION) ==0)
                                   for(int j=0;j<2;j++){
                                             printContent(args,xPos,yPos);
               else
                    JOptionPane.showMessageDialog(null, "Please enter row column positions", "Error", JOptionPane.ERROR_MESSAGE);
     // ************** WindowListener methods
     public void windowActivated (WindowEvent e) { }
     public void windowClosed (WindowEvent e) { }
     public void windowClosing (WindowEvent e) {
          this.dispose ();
          System.exit(0);
     public void windowDeactivated (WindowEvent e) { }
     public void windowDeiconified (WindowEvent e) { }
     public void windowIconified (WindowEvent e) { }
     public void windowOpened (WindowEvent e) { }
     // end WindowListener method
          public static void main(String arg[])
               Test2 t = new Test2(50,50);
public synchronized void printMethod(String args[][],int xPos,int yPos) {
               printerJob = PrinterJob.getPrinterJob();
     Book book = new Book();
     book.append(new Test2(), new PageFormat());
     printerJob.setPageable(book);
                              System.out.println(args[0][0]);                              
                                   tempArray = args;
                                   x = xPos;
                                   y = yPos;
     boolean doPrint = printerJob.printDialog();
if (doPrint && flag == false) {
try {
                    var = 0;
                              printerJob.print();
                              System.out.println("In print...."+flag);
} catch (PrinterException exception) {
System.err.println("Printing error: " + exception);
rows ++;
public int print(Graphics g, PageFormat format, int pageIndex) { return Printable.PAGE_EXISTS;
}//End of class     
class innerTest2 implements Printable
public int print(Graphics g, PageFormat format, int pageIndex) {
               flag = true;
               for(int i=0;i<10;i++)
               Graphics2D g2d = (Graphics2D) g;
               mText = tempArray[rows];     
               if(i == 0)
                         g2d.translate(format.getImageableX()+(12*x),format.getImageableY()+(12*y));
               else if(i == 1)
                    g2d.translate(0,12*3);
               else
               g2d.translate(0,12);
               g2d.setPaint(Color.black);
                    Point2D.Float pen = new Point2D.Float();
                    if(mText.length() == 0)
                    i++;
                    mText = tempArray[rows][i];     
                    if(mText.length() > 0)
                    AttributedString mStyledText1 = new AttributedString(mText);
                    AttributedCharacterIterator charIterator1 = mStyledText1.getIterator();
                    LineBreakMeasurer measurer1 = new LineBreakMeasurer(charIterator1, g2d.getFontRenderContext());
                    float wrappingWidth1 = (float) format.getImageableWidth();
                    while (measurer1.getPosition() < charIterator1.getEndIndex()) {
               TextLayout layout1 = measurer1.nextLayout(wrappingWidth1);
               pen.y += layout1.getAscent();
               float dx1 = layout1.isLeftToRight()? 0 : (wrappingWidth1 - layout1.getAdvance());
               layout1.draw(g2d, pen.x + dx1, pen.y);
               pen.y += layout1.getDescent() + layout1.getLeading();
                              System.out.println("In inner for...."+measurer1.getPosition());
               }     //End of print
     } //End of inner for loop
          if(var > 1)     {
               flag = false;
               System.out.println("b4 returning...."+flag);
          var ++;
     return Printable.PAGE_EXISTS;

Similar Messages

  • My report prints on multiple pages

    My report which shows change requests by categories I setup and sort on prints across multiple pages.  I do not want that.  It is starting a new page for every catgegory.  Where can I check to see what setting I have made (unknowingly) that tells it to start a new page for each category?
    Thx

    Assuming that you are grouping on Category, there are two places where it is possible to set this.
    1.  Right-click in the gray area to the left of the group header and select "Change Group".  Go to the Options tab and verify that "New Page After" is not turned on.  Close.
    2.  Right-click in the gray area to the left of the group footer and select "Section Expert".  Go to the Paging tab and verify that "New Page After" is not turned on.  You might also want to check other sections and verify that there is no paging set up elsewhere.
    -Dell

  • Print across multiple pages

    I am setting up a financial statement that will include monthly actuals & budgets.  Is there a way to print this across multiple pages?  I currenlty have it setup in Excel and even printing on 11x17 it prints across 2 pages.
    I currently have XI but didn't now if the feature was available in this version or possibly in 2008.

    hello E Hammer,
    in XI to XI R2 you have 2 options:
    1) use a Cross-tab as it can easily print across multiple pages.
    2) try the workaround using the attached sample report...there are instructions on the report itself on how to create this "banner" style report. you do not need a special printer driver to do this. just to warn you in advance though, it's a bit of work.
    in cr2008 it is much easier as you can use the "Disocciate Formatting Page Size and Printer Paper Size" option to create a report which would print out to multiple pages horizontally.
    cheers,
    jamie

  • I'm trying to print a multiple page document from my ipad using an Airprint printer. Only the first page is printing, Please help?

    I'm trying to print a multiple page document from my ipad using an AirPrint printer. Only the first page is printing. Please help. The printer works correctly with my desktop and laptop.

    What version of iOS are you using?  Some people were having this problem before, and it was fixed when they updated to iOS 5.

  • Whats mass printing ?multiple page formating?

    whats mass printing ?multiple page formating?

    hi..
    plz follow the mentioned web link for mass printing ..
    and multiple page formatting is ...
    sapscript does not support multiple page formatting where as smartform does.
    Multiple page formating is nothing havinfg different page formats in  a form.
    eg..
    sapscript zform has 3 pages..
    1 page has portrait
    2 page has landscape format and 3rd page has landascape.
    this is not possible with sapscript..it tends to error. however, you can do so in smartform. Also this is sometime possible in sapscript by creating different form for each page and using the same print program.
    regrds,
    shamim.

  • Printing Problem - Multiple pages won't print

    I am attempting to print the inside pages of a wedding program using Pages '08. I have two printers - an HP 7580 and a Lexmark c544dn. I have elected file>print>copies and hit print. The Lexmark prints one copy while the HP shows only a red exclamation mark by the printer and will not print anything. Curiously, the outer page of the program will print multiple copies on the 7580. The inner back to back page (or more clearly, a portion of the program is on each half) is slightly smaller and the sizing has been adjusted accordingly and of course the page oriented to Landscape. This is about to drive me crazy because I can find no reason one section would print correctly while the inner pages won't. I'm sure there's some simple setting I'm missing But -- I'll appreciate any help to solve this puzzle

    I'll bet you have an HP printer. It's a long-standing problem between Apple applications & HP printers, specifically AppleWorks & Pages (any version of either) & HP printers. I'll also guess that you have numbered your pages starting with a number other than 1. Try putting the specific page numbers in the print dialog. For example, if you have a six-page document but the pages are numbered 11 to 16, an HP printer doesn't know what to do. Tell it to print pages 11 to 16 & it likely will work.

  • 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.

  • Single page printing of multiple page calendar file

    I have created a calendar in Photoshop Elements 9.  While printing it, I had problems with my printer.  How do I go back and print only select pages from my project without having to reprint everything?  I tried creating a pdf file - but a page consists of upper and lower halfs of the month of the calendar.  Since I have to print upper half on one side of the page and lower half on the other side of the page - this won't work.  I would appreciate any assistance.

    Suggest that you use a desktop editing program such as MS WORD, or MS Publisher, or a greeting card program.
    Go to www.avery.com. select a template for your paper stock, and open it in WORD (e.g.)
    Copy/paste the calendar material  which you created in Elements to the front and inside pages.

  • Print JTree multiple page?

    Hi all
    I have a JTree, I was printed this tree with all node opened, but i only print a first page, so i want to print multi page. please help me. I searched on google but that's not helping me.
    Thanks in advanced,
    Regard,

    ecard104 wrote:
    I am sorry, i dont understand what are you say, i am bad englishEs gibt keine Mittel, zu verhindern, da� JTable#print einen Kasten um die Tabelle zeichnet.
    Er is geen middel om JTable#print te verhinderen een vakje rond de lijst te trekken.
    Il n'y a aucun moyen d'emp�cher JTable#print de dessiner une bo�te autour de la table.
    Non ci � modo di impedire JTable#print estrarre una scatola intorno alla tabella.
    N�o h� nenhum meio impedir que JTable#print extraia uma caixa em torno da tabela.
    No hay medios de evitar que JTable#print dibuje una caja alrededor de la tabla.
    &#916;&#949;&#957; &#965;&#960;&#940;&#961;&#967;&#949;&#953; &#954;&#945;&#957;&#941;&#957;&#945;&#962; &#964;&#961;&#972;&#960;&#959;&#962; &#957;&#945; &#945;&#960;&#959;&#964;&#961;&#945;&#960;&#949;&#943; JTable#print &#945;&#960;&#972; &#964;&#959; &#963;&#967;&#949;&#948;&#953;&#945;&#963;&#956;&#972; &#949;&#957;&#972;&#962; &#954;&#953;&#946;&#969;&#964;&#943;&#959;&#965; &#947;&#973;&#961;&#969; &#945;&#960;&#972; &#964;&#959;&#957; &#960;&#943;&#957;&#945;&#954;&#945;.
    &#1053;&#1077; &#1073;&#1091;&#1076;&#1077;&#1090; &#1089;&#1077;&#1088;&#1077;&#1076;&#1080;&#1085; &#1087;&#1088;&#1077;&#1076;&#1086;&#1090;&#1074;&#1088;&#1072;&#1090;&#1080;&#1090;&#1100; JTable#print &#1086;&#1090; &#1088;&#1080;&#1089;&#1086;&#1074;&#1072;&#1090;&#1100; &#1082;&#1086;&#1088;&#1086;&#1073;&#1082;&#1091; &#1074;&#1086;&#1082;&#1088;&#1091;&#1075; &#1090;&#1072;&#1073;&#1083;&#1080;&#1094;&#1099;.
    JTable#print &#12364;&#12486;&#12540;&#12502;&#12523;&#12398;&#12414;&#12431;&#12426;&#12391;&#31665;&#12434;&#24341;&#12367;&#12371;&#12392;&#12434;&#38450;&#12368;&#24179;&#22343;&#12364;&#12394;&#12356;&#12290;
    &#53580;&#51060;&#48660;&#51032; &#51452;&#50948;&#50640; &#49345;&#51088;&#47484; &#45817;&#44592;&#44592;&#50640;&#49436;JTable#print&#51012; &#47561;&#45716; &#54217;&#44512;.
    &#27809;&#26377;&#25163;&#27573;&#38450;&#27490;JTable#print &#30011;&#31665;&#23376;&#22312;&#26700;&#38468;&#36817;&#12290;

  • ID3 Printing issue-multiple pages per sheet mirror image printing

    So, like the title says, I'm trying to print 4 up per sheet out of ID CS3. The first page prints fine, but all pages that follow print as mirror images. I have gone through all the print settings for InDesign and specific to the printer (Xerox 7665) to make sure that flip and mirror print is not on. Still, it keeps printing every page aside from the first mirrored. Any ideas?

    A friend of mine rang me last week with a similar problem. I didn't know what to say, it was every page after the first one printed upside down.
    To me that can't happen, they should all send at the same orientation.
    Perhaps you need to update your printer drivers. But to me it sounds like an issue with your printer and not InDesign.
    As another test
    Go to File>Print and the advanced menu and choose Print as Bitmap
    I'm not sure what that will prove though?

  • Printing large Panel across multiple pages!

    We are trying to print a receipt which has master panel consisting of more than 10 components(transaction panels) which are going to spread multiple pages. Is there a way to print this multiple page spanning receipt. I appreciate your response.

    I don’t think you want to set the image’s width/height to the page dimensions.  I think that will shrink the image to fit the page.  If you leave the image as a larger size, FlexPrintJob should chop into enough pages.

  • Check Printing - Multiple pages

    There is a problem when a single check is printed on multiple pages for the same vendor - it is printing 3 consecutive check number on each page : 1000051 on page 1, 1000052 on page 2 and 1000053 on page 3. This is a multi-page due to long remittance list.
    I have a requirement to print the same check number (1000051) on all the 3 pages and 3rd page should print the original check. The check number should not increment.
    Is there a setting that needs to be turned on ? Any help will be appreciated.
    Thanks.

    Found the solution. I need to check the 'Do not Void any checks' checkbox on RFFOUS_C for it to keep the same check number on all pages.
    Thanks for looking.

  • Printing Multiple pages in Smartform on Local printer

    Hi guys,
    I have a smartform with a command to print a page with the general conditions.
    When I print this on a defined printer in SPAD everything goes fine (got 2 pages) but when I print this same form thru the Local printer I only get 1 page. It seems the second page is printed over the first.
    Tried it with more pages, 1 with data then general conditions then data again, and it also prints it all on 1 page thru the Local printer. With the third page on top of the second on top of the first.
    Does anybody know how to solve this issue.
    Thanks.

    Hi,
    I checked the printers and they are using the normal SAPWIN type. I tried it with access method F and G but both give the same result. The page format used is the standard DINA4.
    On the print preview it looks fine, when I print it on a printer from my windows session using the local printer it all prints on the first page (so it only shows the last page).
    I tried to add the check SY-TABIX > 1 and it is the same issue.
    The problem seems not to be with the smartform because if I print a layout which do not have a command to add an extra page but it contains enough data to print on multiple pages and we get the same result. Second page is printed over first page.
    Thx.

  • Multiple page printing!!! help needed

    hi,
    Another problem to solve. How the hell I can print multiple pages. If my frame is too large I want it to print on multiple pages. I tried different things but doesn't work. Please help me out in this too. I have included a small code currently it is prinitng one page only. But I need to print multiple pages if the display is too large to fit on one page.
    sample code that I am using
    PrinterJob printerJob = PrinterJob.getPrinterJob();
              //Calls painter to render the pages. The pages in the document to
              //be printed by this PrinterJob are rendered by the Printable object,
              //painter. The PageFormat for each page is the default page format.
              printerJob.setPrintable(this);
              //Presents a dialog to the user for changing the properties of the print job.
              if ( printerJob.printDialog() )
                   try
                        //this print() method implements the Printable interface
                        printerJob.print();
                   catch (Exception e)
                        e.printStackTrace();
    public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException
         if (pageIndex >= 1)
              return Printable.NO_SUCH_PAGE;
         Graphics2D graphics2 = (Graphics2D) graphics;
         graphics2.translate(pageFormat.getImageableX(),
         pageFormat.getImageableY());
         //prints the selected frame only
         selectedFrame.paint(graphics2);
         return Printable.PAGE_EXISTS;
    }

    I used to ask similar question when I starting using Java printing APIs. Is is useless to ask such general questions.
    There is no magic pill. There is no way your program knows how many pages to send to printer - you need to tell your program everything about it. Spend some time and do some research, you will figure out by yourself. Good luck.

  • Printing Mail message page numbers

    Wehn I print a multiple page message that I have received, the pages are not numbered.
    How do I tell the printer to put page numbers on the message?

    Since Mail (nor any other mail program I've ever used
    or heard of) has this feature, you can't get page
    numbers on your email.
    I beg to differ. Eudora prints page numbers and summarizes who the mail is from on each page. This is a desireable feature.
    If you don't want to print mail that is your privilege, those of us who do want to print would like to have the option to see page numbers.
    Eudora also gives you the option of displaying the local time when a message was sent, not only the time you download it.

Maybe you are looking for

  • Message MM 309

    Hi guys, when I enter in a material master code MM02, view 'Accounting 1' I have three labels 'Period 092011' 'Period 082011' 'Period 122010' and I select this third label 'Period 122010' and I want to modify the purchse order unit--->so it appears t

  • Not able to open ichat

    I have a MAC Book Pro with 10.4.11.. I am not able to open iChat. The application starts running when I click it, but the ichat window does not open up.. Did anyone face this problem before?

  • Mac Adapter for Diamond Pro 2070 SB CRT Monitor

    Hi, I just received the above mentioned monitor from a friend. The instructions say that I have to use a "Diamond Pro Macintosh Cable Adapter" to connect to the 15-pin mini D-SUB end of the signal cable before I can use the monitor. I use a Power Mac

  • Open GL Photoshop CC 2014

    I'm unable to open 3D files in Photoshop even though I have a brand new iMac, Retina 5K, 32Gigs Ram, 4Gigs Vram (AMD Radeon R9 M295X). Keep getting an error that 'open GL' needs to be turned on, which it is and all memory allocations are maxed out. A

  • Trying to transfer apps to new laptop

    Hi Apple community. I'm trying to to transfer my apps to new laptop (Windows Vista to 7) and in turn sync these to and new iPhone (4 to 4S). I have copied apps via external hard drive to 'Mobile Applications' folder in new laptop but when trying to s