How to print multiple pages in single spool in smartforms

Hi all,
  I have a issue on to print multiple pages in single spool,i can able to print multiple pages in multiple spool .I am doing Check Print smartforms in that i need to print Multiple pages in single spool.Currently i am using the below code please help to solve this issue.
IF gv_tabix = 1.
lwa_outp_option-tdnewid = 'X'.
ELSE.
lwa_outp_option-tdnewid = ' '.
ENDIF.
Thanks,
Deesanth

Hi
TABLES: spfli.
DATA:
  t_spfli type STANDARD TABLE OF spfli.
DATA:
  fs_spfli TYPE spfli.
DATA:
  w_form TYPE tdsfname,
  w_flag TYPE i,
  f_nam TYPE rs38l_fnam,
  w_input TYPE ssfcompin,
  w_control TYPE ssfctrlop.
SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
SELECT-OPTIONS s_carrid FOR spfli-carrid.
SELECTION-SCREEN END OF BLOCK blk .
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
PARAMETERS:
  p_single RADIOBUTTON GROUP rad1,
  p_ind RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK block1.
START-OF-SELECTION.
PERFORM display_data.
PERFORM ssf_function_module_name.
PERFORM spool_request.
*& Form display_data
* text
* --> p1 text
* <-- p2 text
FORM display_data .
SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid IN s_carrid.
ENDFORM. " display_data
*& Form ssf_function_module_name
* text
* --> p1 text
* <-- p2 text
FORM ssf_function_module_name .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = ' '
IMPORTING fm_name = f_nam
EXCEPTIONS no_form = 1
no_function_module = 2.
* IF sy-subrc NE 0.
* MESSAGE 'Form cannot be displayed' TYPE 'E' .
* ENDIF. " IF sy-subrc eq 0
ENDFORM. " ssf_function_module_name
*& Form spool_request
* text
* --> p1 text
* <-- p2 text
FORM spool_request .
w_input-dialog = 'X'.
CALL FUNCTION 'SSFCOMP_OPEN'
EXPORTING input = w_input
EXCEPTIONS error = 1.
*" LOOP AT t_spfli .....................................................
LOOP AT t_spfli INTO fs_spfli.
w_control-no_open = ' '.
w_control-no_close = ' '.
*"Single spool request..................................................
IF p_single EQ 'X'.
w_control-no_open = 'X'.
w_control-no_close = 'X'.
ELSE.
*"Individual spool request.............................................
IF w_flag NE '1'.
w_control-no_open = 'X'.
w_control-no_close = ' '.
w_flag = 1.
CALL FUNCTION ' '
EXPORTING control_parameters = w_control
fs_spfli = fs_spfli
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4.
endif. " IF w_flag ne '1'
ENDIF. " IF p_single eq 'X'.
CALL FUNCTION ' '
EXPORTING
control_parameters = w_control
fs_spfli = fs_spfli
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4.
ENDLOOP. " LOOP at t_spfli into ...
*&This function module close the spool request *
CALL FUNCTION 'SSFCOMP_CLOSE'
EXCEPTIONS error = 1.
ENDFORM. " spool_request
Regards,
Sravanthi

Similar Messages

  • Keep recto/verso page placement when printing 'Multiple' pages on single sheet

    Dear All,
    my book is designed for duplex printing. Every chapter starts on recto (odd) page.
    When I need to print it for proofreading in the multiple mode (2 pages on single sheet), pages do not follow the original intent as the first page is placed on the verso page (left half of the sheet), not recto one (right half). I couldn't find any option to place the first page on the recto 'side' in the Print dialog.
    My current workaround is to place one blank page at the beginning of my PDF file.
    But I'd like to avoid this manual step in the future. Is there a more efficient way?
    Btw, it would be nice to add a single option for this into the Print dialog. It could be handy for everyone.
    What is the best place for such kind of feature request?
    Thanks, Jan

    have no idea about what is wrong on your machine.
    Here doing that I get a normal behavior:
    You may try:
    a - quit/close Numbers
    trash the preferences file:
    <bootVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Numbers.pli st
    empty the trash
    restart Numbers.
    b - try to do the job from an other user account
    tell us how the beast behaves.
    Yvan KOENIG (from FRANCE samedi 31 mai 2008 14:47:07)

  • How to print multiple pages using Internet Explorer with af:showPrintablePageBehavior

    Hello,
    I am facing one issue with using af:showPrintablePageBehavior. I found similar posts and google pages, but unable to fix the issue. Most relevant post is,
    Print issues with af:showPrintablePageBehavior and Internet Explorer
    I have a page show in a af:popup. This page contain a Title in the top, af:outputText and a Print button below it. I have added af:showPrintablePageBehavior to Print button. I am using lots of data in the af:outputText. When I click on Print button, showPrintablePageBehavior is opening new browser window with multiple pages. But when I click on the Print Preview or Print, only first page is shown.
    I have tried the solution mentioned in above post but no luck.
        <f:verbatim>
            <style type="text/css">
                textarea {
                    width: 95%;
                    height: 350px;
                    overflow: auto;
                @agent ie {
                    af|document:maximized::printable {
                        position: static;
            </style>
      </f:verbatim>
      <af:panelStretchLayout bottomHeight="10%" startWidth="0%" endWidth="0%" topHeight="10%" inlineStyle="height: 100%; width: 100%">
      <f:facet name="top">
      <af:panelGroupLayout id="pnlGrpTitle"  layout="vertical" halign="center" inlineStyle="width: 100%;">
      <af:spacer id="titleSpacer" height="10px" />
      <af:label value="Title" inlineStyle="font-weight:bold; font-size: 16px; color:#000066; padding-left: 5px" id="dialogTitle" />
      <af:spacer id="titleSpacer2" height="20px" />
      </af:panelGroupLayout>
      </f:facet>
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="0" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="25" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelGroupLayout id="pnlTextArea" layout="scroll">
      <af:outputText binding="#{mybean.tfdArea}" escape="false" id="tfdArea" />
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      <f:facet name="bottom">
      <af:panelGroupLayout id="pnlGrpBottom" layout="vertical" halign="center" inlineStyle="width: 100%">
      <af:commandToolbarButton id="cbPrint" shortDesc="Print" icon="/images/print.png" inlineStyle="width: 40%" >
      <!--af:clientListener method="self.print" type="action"/-->
      <af:showPrintablePageBehavior />
      </af:commandToolbarButton>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
    Any idea how to fix it?
    - Sujay

    Hello,
    I am facing one issue with using af:showPrintablePageBehavior. I found similar posts and google pages, but unable to fix the issue. Most relevant post is,
    Print issues with af:showPrintablePageBehavior and Internet Explorer
    I have a page show in a af:popup. This page contain a Title in the top, af:outputText and a Print button below it. I have added af:showPrintablePageBehavior to Print button. I am using lots of data in the af:outputText. When I click on Print button, showPrintablePageBehavior is opening new browser window with multiple pages. But when I click on the Print Preview or Print, only first page is shown.
    I have tried the solution mentioned in above post but no luck.
        <f:verbatim>
            <style type="text/css">
                textarea {
                    width: 95%;
                    height: 350px;
                    overflow: auto;
                @agent ie {
                    af|document:maximized::printable {
                        position: static;
            </style>
      </f:verbatim>
      <af:panelStretchLayout bottomHeight="10%" startWidth="0%" endWidth="0%" topHeight="10%" inlineStyle="height: 100%; width: 100%">
      <f:facet name="top">
      <af:panelGroupLayout id="pnlGrpTitle"  layout="vertical" halign="center" inlineStyle="width: 100%;">
      <af:spacer id="titleSpacer" height="10px" />
      <af:label value="Title" inlineStyle="font-weight:bold; font-size: 16px; color:#000066; padding-left: 5px" id="dialogTitle" />
      <af:spacer id="titleSpacer2" height="20px" />
      </af:panelGroupLayout>
      </f:facet>
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="0" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="25" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelGroupLayout id="pnlTextArea" layout="scroll">
      <af:outputText binding="#{mybean.tfdArea}" escape="false" id="tfdArea" />
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      <f:facet name="bottom">
      <af:panelGroupLayout id="pnlGrpBottom" layout="vertical" halign="center" inlineStyle="width: 100%">
      <af:commandToolbarButton id="cbPrint" shortDesc="Print" icon="/images/print.png" inlineStyle="width: 40%" >
      <!--af:clientListener method="self.print" type="action"/-->
      <af:showPrintablePageBehavior />
      </af:commandToolbarButton>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
    Any idea how to fix it?
    - Sujay

  • Help With Printing Multiple Pages on Single Page

    I am trying to print a calendar on a single 11x17 sheet of paper. Currently the size of the calendar is forcing the application to want to print 3 pages. I have a ministry requirement that requires the calendar to be printed in Arial size 16 font and print
    on a single page. Is there any way to fit this document on to one page?
    Thank you

    I would set it up with a landscape page size of 11x17. Insert tables for the calendar, floating if necessary. Insert the text. This is not using a calendar wizard or anything of the sort.
    Tables
    Are we talking a week, a single month, two months, a quarter, four months, six months, or a year? Very much is going to be very crowded!
    As an alternative, you could try setting it up for two portrait pages and then tell word to print two pages per sheet. You would lose some paper to wider margins this way. (I have only done this with 8-1/2 x 11 pages but the principle should be the same.)
    This would require starting with an even larger font because Word would scale it. If you need exactly Arial 16 it may be tough to get.
    p.s. I envy your ability to print on 11x17.
    Charles Kenyon Madison, WI

  • How to print multiple pages of same form with one print command

    Hi,
    I have created a cheque print form in smartform. There is provision to print multiple cheques. I give multiple cheque numbers from my selection screen and for each cheque the smart form is called in loop.  Currently I get preview of 1st cheque then I print 1st cheque then click on back, cancel or exit button and then I get preview of second cheque ans so on...
    Now I want to print all the cheques with one print command.
    Please advice.
    Regards,

    Instead of looping at the smartform multiple times, pass an internal table with the data content to the smartform and use loop/ Table youroption  in ur smartform in the main window.in this way u can achieve printing multiple cheques at once and avoid previewing the document several times.
    Edited by: Mithun Shetty on Feb 25, 2011 8:56 PM

  • How to print multiple pages in OAF without opening the doc

    Hi,
    I have a search page, where i get multiple rows in the result page. In the result page i have a column with the docs attached(PDF format). I also have the option of selecting the multiple rows with a single click.
    My question is say if i get 10 rows in result page with the PDF pages attached. I would like to print the 10 pdf's without opening them in a single go.
    Any help/suggestions appreciated.
    Regards
    mac

    Hi,
    I have a search page, where i get multiple rows in the result page. In the result page i have a column with the docs attached(PDF format). I also have the option of selecting the multiple rows with a single click.
    My question is say if i get 10 rows in result page with the PDF pages attached. I would like to print the 10 pdf's without opening them in a single go.
    Any help/suggestions appreciated.
    Regards
    mac

  • How to print multiple fields in single barcodes

    Hello friends,
    How to create a single barcodes with multiple fields in smartforms and retrieve same multiple fields while scanning also.
    My requirement is, i want to create barcodes which contains material no, serial no, material description and quantity all fields together in a single barcodes.
    While scanning how to identify all this different fields. For e.g. from single barcodes how we will identify while scanning which is material no, serial no, material description and quantity.
    Thanks in advance.......
    Regards,
    Dev

    Hello friends,
    How to create a single barcodes with multiple fields in smartforms and retrieve same multiple fields while scanning also.
    My requirement is, i want to create barcodes which contains material no, serial no, material description and quantity all fields together in a single barcodes.
    While scanning how to identify all this different fields. For e.g. from single barcodes how we will identify while scanning which is material no, serial no, material description and quantity.
    Thanks in advance.......
    Regards,
    Dev

  • Flex 1.5 -PRINTING MULTIPLE PAGES

    hi,
    plz tell me how to print multiple pages in flex 1.5.
    i hv used the fillowing function.it works well but sometimes
    it HANGS OUT the application.
    function doPrintForm() {
    var currentScaleX:Number = msgnonvisual.scaleX;
    var currentScaleY:Number = msgnonvisual.scaleY;
    var currentScaleX1:Number = msgnonvisual1.scaleX;
    var currentScaleY1:Number = msgnonvisual1.scaleY;
    var currentScaleX2:Number = msgnonvisual2.scaleX;
    var currentScaleY2:Number = msgnonvisual2.scaleY;
    var currentScaleX3:Number = msgnonvisual3.scaleX;
    var currentScaleY3:Number = msgnonvisual3.scaleY;
    var currentScaleX4:Number = msgnonvisual4.scaleX;
    var currentScaleY4:Number = msgnonvisual4.scaleY;
    var currentScaleX5:Number = msgnonvisual5.scaleX;
    var currentScaleY5:Number = msgnonvisual5.scaleY;
    var currentScaleX6:Number = msgnonvisual6.scaleX;
    var currentScaleY6:Number = msgnonvisual6.scaleY;
    var tempHeight=msgnonvisual.height;
    msgnonvisual.height=800;
    msgnonvisual1.height=800;
    msgnonvisual2.height=800;
    msgnonvisual3.height=800;
    msgnonvisual4.height=800;
    msgnonvisual5.height=800;
    msgnonvisual6.height=800;
    msgnonvisual.scaleX=65;
    msgnonvisual.scaleY=65;
    msgnonvisual1.scaleX=65;
    msgnonvisual1.scaleY=65;
    msgnonvisual2.scaleX=65;
    msgnonvisual2.scaleY=65;
    msgnonvisual3.scaleX=65;
    msgnonvisual3.scaleY=65;
    msgnonvisual4.scaleX=65;
    msgnonvisual4.scaleY=65;
    msgnonvisual5.scaleX=65;
    msgnonvisual5.scaleY=65;
    msgnonvisual6.scaleX=65;
    msgnonvisual6.scaleY=65;
    var msgtext:String=msgta.text;
    var printtext:String=msgta.text;
    var inxnum:Number;
    var actendindex:Number;
    var srtindstr:String="";
    var countindex:Number=0;
    var countpj:Number=1;
    //var SS:String="";
    var srtidx:Number=0;
    var pj_array:Array = new Array();
    var pj:PrintJob = new PrintJob();
    if(pj.start() != true){
    delete pj;
    return;
    try{
    for (var
    startpoint:Number=0;startpoint<msgtext.length;startpoint++)
    var temp = mx.core.UIObject.useLayoutManager;
    inxnum=msgtext.indexOf("'",startpoint);
    startpoint=inxnum;
    // trace("FLEX ERROR
    ->>>>>>>>>>----->>>.>>>>>>>.>>>>>>>"+startpoint
    pj_array[countindex]=inxnum;
    countindex++;
    if(countindex%49==0 && countindex>48)//
    ||(printtext.length-startpoint)<34
    var endidx:Number=srtidx+48;
    actendindex=pj_array[endidx];
    actendindex++;
    if(countpj==1)
    msgnonvisual.text=printtext.substring(0,actendindex);
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    //pj.orientation == "landscape";
    pj.addPage(msgnonvisual, {xMin:0,xMax:900,yMin:0,yMax:700});
    }else if(countpj==2)
    msgnonvisual1.text=printtext.substring(pj_array[srtidx]+1,actendindex);
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    //pj.orientation == "landscape";
    pj.addPage(msgnonvisual1,
    {xMin:0,xMax:900,yMin:0,yMax:700});
    }else if(countpj==3)
    msgnonvisual2.text=printtext.substring(pj_array[srtidx]+1,actendindex);
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    //pj.orientation == "landscape";
    pj.addPage(msgnonvisual2,{xMin:0,xMax:900,yMin:0,yMax:700});
    }else if(countpj==4)
    msgnonvisual3.text=printtext.substring(pj_array[srtidx]+1,actendindex);
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    //pj.orientation == "landscape";
    pj.addPage(msgnonvisual3,
    {xMin:0,xMax:900,yMin:0,yMax:700});
    }else if(countpj==5)
    msgnonvisual4.text=printtext.substring(pj_array[srtidx]+1,actendindex);
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    //pj.orientation == "landscape";
    pj.addPage(msgnonvisual4,{xMin:0,xMax:900,yMin:0,yMax:700});
    }else if(countpj==6)
    msgnonvisual5.text=printtext.substring(pj_array[srtidx]+1,actendindex);
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    //pj.orientation == "landscape";
    pj.addPage(msgnonvisual5,
    {xMin:0,xMax:900,yMin:0,yMax:700});
    srtidx=srtidx+48;
    countpj++;
    if(countindex > 48)
    var arrlen:Number=pj_array.length;
    // var lendiff:Number=arrlen-srtidx;
    // mx.controls.Alert.show("Length Diff"+lendiff,"CCS");
    --arrlen;
    var actendindex:Number=pj_array[arrlen];
    actendindex++;
    msgnonvisual6.text=printtext.substring(pj_array[srtidx]+1,actendindex);
    mx.controls.Alert.show(pj_array[srtidx]+"\n"+actendindex,"CCS");
    var temp = mx.core.UIObject.useLayoutManager;
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    //pj.orientation == "landscape";
    pj.addPage(msgnonvisual6,
    {xMin:0,xMax:900,yMin:0,yMax:700});
    }else
    msgnonvisual6.text=printtext;
    var temp = mx.core.UIObject.useLayoutManager;
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    //pj.orientation == "landscape";
    pj.addPage(msgnonvisual6,
    {xMin:0,xMax:900,yMin:0,yMax:700});
    pj.send();
    }finally
    msgnonvisual.height=tempHeight;
    msgnonvisual1.height=tempHeight;
    msgnonvisual2.height=tempHeight;
    msgnonvisual3.height=tempHeight;
    msgnonvisual4.height=tempHeight;
    msgnonvisual5.height=tempHeight;
    msgnonvisual6.height=tempHeight;
    var temp = mx.core.UIObject.useLayoutManager;
    mx.core.UIObject.useLayoutManager = false;
    mx.managers.LayoutManager.updateNow();
    mx.core.UIObject.useLayoutManager = temp;
    msgnonvisual.text="";
    msgnonvisual1.text="";
    msgnonvisual2.text="";
    msgnonvisual3.text="";
    msgnonvisual4.text="";
    msgnonvisual5.text="";
    msgnonvisual6.text="";
    msgnonvisual.scaleX=currentScaleX;
    msgnonvisual.scaleY=currentScaleY;
    msgnonvisual1.scaleX=currentScaleX1;
    msgnonvisual1.scaleY=currentScaleY1;
    msgnonvisual2.scaleX=currentScaleX2;
    msgnonvisual2.scaleY=currentScaleY2;
    msgnonvisual3.scaleX=currentScaleX3;
    msgnonvisual3.scaleY=currentScaleY3;
    msgnonvisual4.scaleX=currentScaleX4;
    msgnonvisual4.scaleY=currentScaleY4;
    msgnonvisual5.scaleX=currentScaleX5;
    msgnonvisual5.scaleY=currentScaleY5;
    msgnonvisual6.scaleX=currentScaleX6;
    msgnonvisual6.scaleY=currentScaleY6;
    delete pj;
    msgnonvisual,msgnonvisual1, msgnonvisual2, msgnonvisual3,
    msgnonvisual4,msgnonvisual5,msgnonvisual6 are the non visual
    TextArea 's filled at runtime.
    can anyone guide me?
    thanks in advance!
    vinay

    hv anyone managed to see the code?

  • How to print multiple copies on one page ?

    How to print multiple copies of one document on one page ?
    in coreldraw I used to make the document -for example a business card 5x9 - and when sending to print it automatically placed the number of cards that would fit in my A4 sheet.
    how do I make the same operation in Indesign.
    thanks

    Hi, Peter S.
    >I can see that as a shortcut to printing a page of different cards for multiple people, but to do a simple n-up of a single card it seems overly complex to me. What am I missing?
    * It's just an alternative to copy/paste and step/repeat.
    * For a one-time only use, perhaps it's a little more complex than necessary. But for any future needs, only the content of the data file needs to be changed, either by editing, or by pointing to a new data file. If different cards for multiple people becomes necessary, it's ready to go.
    Regards,
    Peter Gold
    KnowHow ProServices

  • Print multiple pages on a single page in word or from a PDF

    I need to print multiple pages on a single page from a PDF (ie: pages 1 and 2 onto a single page, pages 3 and 4 on a single page etc.)
    Does anyone know how to do this? Thanks

    (near the middle in a pull down menu - if you have the small print window click on the triangle next to the printer name to expand the window
    In preview the menu shows "preview" until you open it to see more - and
    if you have the small print window click on the triangle next to the printer name to expand the window
    LN

  • 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 multiple footers for each page in RTF template xml report.

    Hi,
    How to print multiple footers for each page in RTF template xml report.
    i am able to print ( two sets ) ...
    up to last page ( one template ) and for last page ( another template).
    i want to change the footer information based on the group value printed in the report ( it might be 5 to 6) In every report run.. can you please check and let me know do we have any feasibility to achieve this.
    Thanks in advance.
    Regards,
    KAP.

    You can remove all other logic, like last page only contents (start@last-page:body), etc and section breaks if any you have inserted manually.
    Just have for-each@section logic.
    It would be difficult for me to guess what you have done without looking at your RTF or describing here.

  • How do you get rid of white space when you are printing multiple pages to one sheet of paper?

    How do you get rid of extra white space when you are printing multiple pages to one sheet of paper?  When printing multiple pages to one sheet of paper Acrobat won't let you select the "zoom" for printing.
    Thanks

    Take a look at Quite Imposing.

  • How do I print multiple pages (2) to one A4 page?

    Hi folks,
    How do I print multiple pages (2) to one A4 page (as you can in a PDF) ?
    There is no option when I try to print & I have checked advanced etc. I have tried opening as a PDF. I have tried printing to PDF but it won't allow.
    Any ideas or suggestions would be greatly welcomed - I don't fancy printing the whole 188 pages, but I need them all!
    Thanks,

    Hi Chris,
    Try this, and if you have any trouble get back and we'll trouble shoot, but I think it will work for you.
    Open System Preferences.
    Select Print & Scan
    Click on your printer under Printers in the left pane
    Click "Open Print Queue", on the right
    The print queue app will appear on your Dock
    Open a Finder window containing your files to be printed and select them all
    Drag the files from Finder to Print Queue icon in Dock
    Regards,
    Jerry

  • I can't print Multiple pages in FF6 – clipping off content after page 1. I have thrown out firefox completely off my imac and re-installed... still does not print correctly. How do I fix this?

    After upgrading last week, i can no longer print multiple page print outs off of any website, without the secondary pages clipping off content. Page 1 prints fine... the remaining pages do not.
    pages print fine in both safari and chrome...

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

Maybe you are looking for

  • Updating values in ADF

    Hi!! I am using jdeveloper 11.1.1.5 I had created RFQhdVO and RFQlnVO based on EO I had also created a Viewlink RFQhdVO.docno = RFQlnVO.docno and RFQhdVO.pfx = RFQlnVO.pfx I had dragged and dropped RFQhdVO as a af:ReadOnly Table. I had dragged and dr

  • Wireless conenction with Orange Livebox

    Hello! I have just got Orange broadband with Livebox. I have been using the famous Bramley Apple tutorial to set it up on my Powerbook and have managed to set it up an get a connection via ethernet, but when I come to go wireless and disconnect the e

  • I'm sick of this

    I have to say.  Every time a new version of CS comes out I sit at my desk and think, is this going to be worth the trouble?  It's gotten so bad with installation trouble and bugs that I skipped CS4 altogether.  CS 3 Bridge still randomly crashes and

  • HELP : How to disable iMessage without iOS

    Hi everyone, I need help from you guys because I have an issue with iMessage. I've been using this feature for a year when I recently got my iPhone 5 stolen 2 weeks ago Since then, I'm using a non-apple device which then do not handle iMessage. The p

  • Outlook problem from an absolute beginner

    A friend has sent us a mail which has photos. It is about 8mb. It successfully appeared on our Yahoo account (why does everything on our Outlook duplicate here?) also to our Gmail account but has NEVER arrived via Outlook - which we habitually use. I