Regarding Print Problem in ALV

hi all,
          I am getting o/p in ALV Report. When i am taking Print Print is not coming.
I am using Function Module Reuse_alv_grid_display. Here i need to mention anything for printing.
Please suggest.
Thanx & Regards
Rami

hi
data: ls_print type SLIS_PRINT_ALV.
CLEAR ls_print.
  ls_print-no_print_listinfos = 'X'.
then in function module use these things
i_default          = 'X'
i_save             = 'A'
is_print            = ls_print
Regards
Smitha

Similar Messages

  • Printing problem in ALV report.

    Hi,
    I have made an ALV report using 'REUSE_ALV_LIST_DISPLAY' FM. There are 18 coloumns in this report which i want to print in A4 paper. Thses all coloumns are printing but the font size is too small and also printing start from left most i.e. no margin for FILING. How to increase font size and left margin for filing. Kindly suggest.
    Regards,
    Rajesh Vasudeva

    Hi
    The font size depends on the format you've choosen for the print.
    The abap list arranges the page as grid: colunmXrow.
    Every colunm of a page means a character.
    If you use the standard format X_65_200, it means you're page is arranged for 65 row and 200 colunm:
    that means the size of a character is optimized to can print 200 chararcter in a A4 page.
    If you use the standard format X_65_132 it means you're page is arranged for 65 row and132 colunm:
    that means the size of a character is optimized to can print 132 chararcter in a A4 page.
    So that mean the size of format X_65_132 will be bigger than X_65_200, because in the same space (page A4) it needs to write 132 char instead of 200.
    If your report print NN char, u should use the format wiith number colunm is closer to NN.
    If there isn't a format or u use the first available format or u create a new one by trx SPAD.
    Max

  • Regarding Printing Problem

    Dear Abaper's
      I  am having  problem in check Priniting  program. Tcode is FCHN. Now Vendor name is not apperning on cheque.
    After  own spool Request the cheque data must appear. How will I get Script Name of the  printing Program.
    I have check in Tnpar but  i am not getting Printing program name.
    Thanks
    Dnyashwar.

    hi ,
              i think you are using f110_prenum_chck standard script .Name of the print programme is RFFOUS_C.To find the name of the print program first copy the script and open the script in display mode then Settings>form painter->check the check box Graphical form painter -
    >left side u can find 'texts' button--->click on it -
    >dialog box will come (press enter ) ---> then it will show the details of print program and description.
    <begging removed by moderator>
    Thanks and regards
    Naresh
    Edited by: Thomas Zloch on Oct 12, 2011 6:55 PM

  • Printing Problem from ALV

    Hi,
    When I run my report, its perfectly working fine with all the data, subtotals, grand totals etc.
    But when I print the ALV by clicking the PRINT Button on the Standard tool bar, My first subtotals are printing correctly. From second, its printing ZEROES and my grand totals are printing double the number as I see on the output.
    This is strange and am not able to understand why I get those errors.
    ANy pointers please.
    Thanks,
    Kiran
    Edited by: kiran dasari on Sep 9, 2009 1:04 AM

    Hi Roger,
    I am using Function Module "REUSE_ALV_HIERSEQ_LIST_DISPLAY"
    I am displaying a hierarchical ALV with subtotals, page-breaks & grand totals.
    The strange thing is  that my  first SUBtotal gets printed properly. Its the problem from the second subtotal onwards.
    Finally, the grand totals also a problem(Doubling when i print first time and triplling,if  i print 2nd time ...and so on...)
    ANy  more clues please.
    Thanks,
    Kiran D

  • Printing problem in alv

    I have developed an ALV report, in which I have used reuse_alv_list_display
    functional module to print the output. After pressing print button, when I
    view the output in spool request transaction, an additional list with *Number
    of records passed* and "Calculated total records" is displayed. How to
    remove this additional list.
    plz help me as soon as possible.
    Thanks,
    vijay karnatak

    Hi,
    try this
    data: ls_print type slis_print_alv.
    ls_print-no_print_listinfos = 'X'.        " pass this in your fm
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      IS_PRINT = ls_print
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Regarding Print Problem in Smartform O/P

    hi all,
          I am Printing one smartform O/P.  Print Preview is coming correctly in two pages. But When i am taking print First Page is Overlapping with some contents of Second Page ( in Stationary ).
    What will be the probelm. I am not getting any idea. Plz Suggest.
    Thanx & Regards
    Rami

    Hi,
    check ur printer settings.
    Also check form attributes -> output options -> page format and other setting?
    Is it dina4 and ur printer page size is A4 ?
    There may be some conflict in page size of form and actual page size.
    Regards

  • Regarding Printing problem in SMARTFORMS (BarCode)

    Dear All
    I am trying to print a barcode using SMART FORMS.
    In SPAD , some standard printers are there.   But I am trying to print the output in HP DeskJet  3050 , which is not in the list.  And one more , I am able to print the ABAP List from SAP , but not the SMARTFORMS only.
    Because when I see the SP01 , SMARTFORMS o/p are in the OTF format.
    Or any other setting missing
    Regards
    Visaka
    Moderator message: please choose more descriptive subject lines for your posts.
    Edited by: Thomas Zloch on Jun 22, 2011 10:24 AM
    Edited by: Visaka on Jun 22, 2011 10:25 AM

    Hi all
    I got the answer.
    In transaction SPAD,for the output device you are using check the values entered for fields "Host spool access method" & "Host Printer".
    If the method is "F-printing on frontend", then the expected value for the Host Printer is "__default"
    Thanks & Regards,
    Visaka

  • Goods Receipt Note - printing problems

    Hi there
    I have a couple of issues regarding printing problems for Goods Receipt Notes.
    The 1st problem
    Only the first line item is printed on the GRN, all the other line items are omitted from the GRN.
    The 2 nd problem
    When doing a Non-stock item GRN it does not print at all.
    The 3 rd problem
    Our stock count sheet only print 300 line items at a time and it is also not in sequence.
    Another printing problem is with our picking list
    Here what happens is that instead of the picking list skipping the "perforate section" at the end of each page, it just continious printing one stroke through without any intervals.
    Then the last issue but with printing of Reservations, is that even though we have zero stock on hand, the reservations are still being printed. This causes a problem not only waisting paper, but we have to go through those lists to identify the actual reservations that can be issued.
    Please can anybody help?
    Regards
    Sonja

    in NACE Tcode
    u can Find
    choose ur application and press output type...
    select ur output type and press processing routine...
    u will find the progran name and form name..
    if it is usefull plz reward
    Regards
    Anbu

  • PS cc 2014 printing problem

    Is there anyone has a solution regarding printing problem with Photoshop CC2014 ? Windows shuts the application as soon I choose print , ( any file, psd or jpeg ) ?

    It just closes? No crash or anything? First thing I'd look at is printer drivers and either uninstall/reinstall or update if possible.

  • ALV  Print  Problem

    Hi All,
        Problem regarding  Printing  the AVL  Grid.
         There are 15 column in the  grid , while printing it gives a pop up . 23 column are not printable. in  the page  format..
    How  to   get  all  the  column  printed..?.Full Points Ensured..
    Regards..
    Lakhan

    Hi Lakan,
      in ALV Grid (OR) Normal Reort we can print upto SOme limit only.You can n't print entire ALV grid.If you want to print whole content, down load file into some notepad (Excel Sheet) and try print.

  • ALV Grid and Icon : Printing Problem

    Hi, i develop some reports using ALV Grid and Icon and i'm facing printing problem, all report that using ALV grid with the option icon = 'X' cannot print properly, all the character field showing improper icon instead of the text. While all the ALV grid report with the option icon = ' ' can print normally.
    Thanks.

    Hi,
    Check the Demo Program <b>BCALV_DEMO_TOOLTIP</b>, Here i am able to see the Output Properly, and also able to Print them.
    Regards
    vijay

  • I want to reinstall CS4 as it has been doing some strange things regarding printing, etc. However, when I did this before, it created a major problem and I ended up buying a new computer because no one could figure out why it kept hanging up during the in

    I want to reinstall CS4 as it has been doing some strange things regarding printing, etc. However, when I did this before, it created a major problem and I ended up buying a new computer because no one could figure out why it kept hanging up during the installation. Hours on the phone, no results. I'm scared to do it on this computer. Should I try? Not even the Adobe support could get it resolved. I believe it was somehow reading a product number that could not be deleted or something, and nothing worked.
    Message was edited by: Doug Doug

    Hello, as an addition:
    In your case I would download a really new trial version of your program(s) in question and change it/them into a "real" version later, BUT because you said, that you "re-installed" already, so it will become a little bit more complicated. It would be necessary that you have to use "Adobe Creative Suite Cleaner Tool" as Keith wrote.
    Here an advice for that (The order varies depending on your individual needs. Please read all my proposals first, so you can better choose the first step:)
    1. Maybe you have to activate/deactivate, so please have a look there:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    2. Sometimes, we know in the meantime, the "opm.db file" is the culprit. In this case you should delete it.
    3. Be careful with (de)installing aso. by (de)installing by your own resources. As much as I regret it and as strange as it may seem I fear it's a challenge for Adobe's Creative Cloud Cleaner Tool. Sometimes - for whatever reasons - CC doesn't "want" to work. In this case you should CC completely delete and reinstall by help of Adobe Creative Cloud Cleaner Tool. (A try to uninstall by own resources is not enough!)
    I quote: Adobe Creative Suite Cleaner Tool helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3-CS6) applications. The tool removes installation records for prerelease installations of Creative Cloud or Creative Suite applications. It does not affect existing installations of previous versions of Creative Cloud or Creative Suite applications.
    Please use: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html   and follow the prescribed sequence of operations
    4. If necessary and for further questions click through http://helpx.adobe.com/contact.html and if "open" please use the chat, I for may part - as it seems unlike you - had the best experiences. I quote from Adobe's employee Preran: The chat button is activated as soon as there is an agent available to help.
    Hans-Günter

  • Problem in ALV report

    Hi Friends,
    I have the following 2 problems in ALV report
    1) Logo is not getting displayed in the report.
    2) When i click on the Purchase order number in the report  the interactive report is not working,i am not able to see report of First interactive level.
    can you help it out friends.
    Thanks and regards
    Dinesh
    REPORT  YSDBALV1
    tables: ekko , ekpo .
    type-pools: slis .
    Table for Display Header
    data:i_header type slis_t_listheader with header line.
    *Fieldcat Declaration
    data:fieldcatalog type slis_T_fieldcat_alv  WITH HEADER LINE.
    *Table of Events
    data:i_event type slis_t_event with header line .
    For Layout
    data:i_layout type slis_layout_alv .
    data: text(30) .
    *Internal Table Declaration
    data: begin of it_final occurs 0 ,
          ebeln like ekko-ebeln ,           "Purchasing Document No.
          bedat like ekko-bedat ,           "Purchasing Document Date
          matnr like ekpo-matnr ,           "Material No.
          netwr like ekpo-netwr ,         "Net Order Value in PO Currancy
          meins like ekpo-meins ,           "UOM
          chk(1) ,
          light(1) ,
          change like ekpo-menge ,
          end of it_final .
    **select option Declaration
    selection-screen begin of block block.
    select-options: s_ebeln for ekko-ebeln  .
    selection-screen end of block block .
    selection-screen begin of block block1 .
    parameters:grid radiobutton group r .
    parameters:list radiobutton group r .
    selection-screen end of block block1 .
    at selection screen
    at selection-screen .
    select single * from ekko where ebeln in s_ebeln .
    if sy-subrc <> 0 .
       message e000(8I) WITH 'No Data Exists' .
    endif .
    start-of-selection .
    if grid = 'X' .
    perform get_data .
    perform event using i_event[] .
    perform field using fieldcatalog[] .
    perform layout using i_layout .
    perform grid_display .
    endif .
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data .
    *DATA Retrieval from tables
    SELECT EKKO~EBELN
           EKKO~BEDAT
           EKPO~EBELP
           EKPO~MATNR
           EKPO~NETWR
           EKPO~MEINS
           EKPO~MENGE
           EKPO~BPRME
           INTO CORRESPONDING FIELDS OF  table IT_FINAL
           FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
           WHERE EKKO~EBELN IN S_EBELN.
           APPEND IT_FINAL.
    endform.                    " get_data
    *Getting the Event for Top of Page display.
    *&      Form  event
          text
         -->P_I_event[]  text
    form event  using    p_i_event type slis_t_event.
      clear p_i_event .
      refresh p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = p_i_event
    EXCEPTIONS
       LIST_TYPE_WRONG       = 1
       OTHERS                = 2
    read table p_i_event with key name = slis_ev_top_of_page into i_event.
          if sy-subrc = 0.
                 move 'TOP_OF_PAGE_PO' to i_event-form.
                 modify p_i_event from i_event index sy-tabix transporting form.
          endif.
          clear i_event.
    endform.                    " event
    *Display Top-of –Page Details and Logo
    form top_of_page_po .
           clear i_header .
           refresh i_header .
           write sy-datum to text.
           i_header-typ = 'H'.
           i_header-info = 'PURCHASE OREDER DETAILS'.
           append i_header.
          *Logo Display
          CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
                 EXPORTING
                     it_list_commentary       = i_header[]
                     I_LOGO                   = 'ENJOYSAPLOGO'.
    endform .
    *Field Catalog Append
    *&      Form  field
          text
         -->P_fieldCATALOG[]  text
    form field using  p_fieldcatalog type slis_t_fieldcat_alv.
         clear fieldcatalog.
          fieldcatalog-fieldname   = 'EBELN'.
          fieldcatalog-seltext_m   = 'Purchase Order No'.
          fieldcatalog-col_pos     = 1.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'BEDAT'.
          fieldcatalog-seltext_m   = 'PO Date'.
          fieldcatalog-col_pos     = 2.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'MATNR'.
          fieldcatalog-seltext_m   = 'Material No'.
          fieldcatalog-col_pos     = 4.
          fieldcatalog-outputlen   = 20.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'NETWR'.
          fieldcatalog-seltext_m   = 'Net Value '.
          fieldcatalog-col_pos     = 5.
          fieldcatalog-outputlen   = 20.
          fieldcatalog-do_sum = 'X'.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'MEINS'.
          fieldcatalog-seltext_m   = 'Units'.
          fieldcatalog-col_pos     = 6.
          fieldcatalog-outputlen   = 4.
          append fieldcatalog .
          clear fieldcatalog.
    endform.                    " field
    *&      Form  layout
          text
    form layout  using    p_i_layout TYPE SLIS_LAYOUT_ALV .
    i_layout-zebra  = 'X'.
        i_layout-lights_fieldname = 'LIGHT'.
        i_layout-lights_tabname = 'IT_FINAL'.
        i_layout-box_fieldname = 'CHK'.
        i_layout-box_tabname  = 'IT_FINAL'.
        i_layout-edit = ' '.
    endform.
    *To display Buttons in the MENU BAR if needed
    FORM SET_PO_PF_STATUS USING  P_I_EXTAB TYPE
                     SLIS_T_EXTAB.
                     SET PF-STATUS 'MENUPO'.
      ENDFORM.
    *Event for Interactive display of ALV report
    form USER_COMMAND  using r_ucomm like sy-ucomm
                             rs_selfield type slis_selfield .
      if r_ucomm = '&IC1'.
      READ TABLE IT_FINAL  index   rs_selfield-tabindex.
      write:/ IT_FINAL-ebeln.
      endif.
    endform .
    *Parameters of FM  REUSE_ALV_GRID_DISPLAY
    *&      Form  grid_display
          text
    -->  p1        text
    <--  p2        text
    form grid_display .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM                = SY-REPID
       I_CALLBACK_PF_STATUS_SET          = 'SET_PO_PF_STATUS'
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
        IS_LAYOUT                         = I_LAYOUT
        IT_FIELDCAT                       = FIELDCATALOG[]
        IT_EVENTS                         = I_EVENT[]
      TABLES
        t_outtab                          = IT_FINAL.
    endform.                    " grid_display

    *& Report  YSDBALV1
    REPORT  YSDBALV1.
    tables: ekko , ekpo .
    type-pools: slis .
    Table for Display Header
    data:i_header type slis_t_listheader with header line.
    *Fieldcat Declaration
    data:fieldcatalog type slis_T_fieldcat_alv WITH HEADER LINE.
    *Table of Events
    data:i_event type slis_t_event with header line ,
         wa_event type line of slis_t_event.
    For Layout
    data:i_layout type slis_layout_alv .
    data: text(30) .
    *Internal Table Declaration
    data: begin of it_final occurs 0 ,
    ebeln like ekko-ebeln , "Purchasing Document No.
    bedat like ekko-bedat , "Purchasing Document Date
    matnr like ekpo-matnr , "Material No.
    netwr like ekpo-netwr , "Net Order Value in PO Currancy
    meins like ekpo-meins , "UOM
    chk(1) ,
    light(1) ,
    change like ekpo-menge ,
    end of it_final .
    **select option Declaration
    selection-screen begin of block block.
    select-options: s_ebeln for ekko-ebeln .
    selection-screen end of block block .
    selection-screen begin of block block1 .
    parameters:grid radiobutton group r .
    parameters:list radiobutton group r .
    selection-screen end of block block1 .
    at selection screen
    at selection-screen .
    select single * from ekko where ebeln in s_ebeln .
    if sy-subrc <> 0 .
    message e000(8I) WITH 'No Data Exists' .
    endif .
    start-of-selection .
    if grid = 'X' .
    perform get_data .
    perform event using i_event[] .
    perform field using fieldcatalog[] .
    perform layout using i_layout .
    perform grid_display .
    endif .
    *& Form get_data
    text
    --> p1 text
    <-- p2 text
    form get_data .
    *DATA Retrieval from tables
    SELECT EKKO~EBELN
    EKKO~BEDAT
    EKPO~EBELP
    EKPO~MATNR
    EKPO~NETWR
    EKPO~MEINS
    EKPO~MENGE
    EKPO~BPRME
    INTO CORRESPONDING FIELDS OF table IT_FINAL
    FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
    WHERE EKKO~EBELN IN S_EBELN.
    APPEND IT_FINAL.
    endform. " get_data
    *Getting the Event for Top of Page display.
    *& Form event
    text
    -->P_I_event[] text
    form event using p_i_event type slis_t_event.
    clear p_i_event .
    refresh p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    ET_EVENTS = p_i_event.
    EXCEPTIONS
    LIST_TYPE_WRONG = 1
    OTHERS = 2.
    read table p_i_event with key name = slis_ev_top_of_page into wa_event.
    if sy-subrc = 0.
    move 'TOP_OF_PAGE_PO' to i_event-form.
    modify p_i_event from i_event index sy-tabix transporting form.
    endif.
    clear i_event.
    endform. " event
    *Display Top-of –Page Details and Logo
    form top_of_page_po .
    clear i_header .
    refresh i_header .
    write sy-datum to text.
    i_header-typ = 'H'.
    i_header-info = 'PURCHASE OREDER DETAILS'.
    append i_header.
    *Logo Display
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_header[]
    I_LOGO = 'ENJOYSAP_LOGO'.
    endform .
    *Field Catalog Append
    *& Form field
    text
    -->P_fieldCATALOG[] text
    form field using p_fieldcatalog type slis_t_fieldcat_alv.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order No'.
    fieldcatalog-col_pos = 1.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'BEDAT'.
    fieldcatalog-seltext_m = 'PO Date'.
    fieldcatalog-col_pos = 2.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material No'.
    fieldcatalog-col_pos = 4.
    fieldcatalog-outputlen = 20.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'NETWR'.
    fieldcatalog-seltext_m = 'Net Value '.
    fieldcatalog-col_pos = 5.
    fieldcatalog-outputlen = 20.
    fieldcatalog-do_sum = 'X'.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Units'.
    fieldcatalog-col_pos = 6.
    fieldcatalog-outputlen = 4.
    append fieldcatalog .
    clear fieldcatalog.
    endform. " field
    *& Form layout
    text
    form layout using p_i_layout TYPE SLIS_LAYOUT_ALV .
    i_layout-zebra = 'X'.
    i_layout-lights_fieldname = 'LIGHT'.
    i_layout-lights_tabname = 'IT_FINAL'.
    i_layout-box_fieldname = 'CHK'.
    i_layout-box_tabname = 'IT_FINAL'.
    i_layout-edit = ' '.
    endform.
    *To display Buttons in the MENU BAR if needed
    FORM SET_PO_PF_STATUS USING P_I_EXTAB TYPE
    SLIS_T_EXTAB.
    SET PF-STATUS 'MENUPO'.
    ENDFORM.
    *Event for Interactive display of ALV report
    form USER_COMMAND using r_ucomm like sy-ucomm
    rs_selfield type slis_selfield .
    if r_ucomm = '&IC1'.
    READ TABLE IT_FINAL index rs_selfield-tabindex.
    set parameter id 'VL1' field it_final-ebeln.
    call transaction 'ME23N'.
    endif.
    endform .
    *Parameters of FM REUSE_ALV_GRID_DISPLAY
    *& Form grid_display
    text
    --> p1 text
    <-- p2 text
    form grid_display .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = 'SET_PO_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    IS_LAYOUT = I_LAYOUT
    IT_FIELDCAT = FIELDCATALOG[]
    IT_EVENTS = I_EVENT[]
    TABLES
    t_outtab = IT_FINAL.
    endform. " grid_display
    Regards,
    Rusidar S.

  • How many lines we can print using Non-alv report list ?

    Hi Experts,
    How many lines we can print using Non-alv report list ?
    regards
    vishnu

    Hi,
    It depends on the page size according to the page size we can set the no. of lines as follows,
    REPORT  program_name   NO STANDARD PAGE HEADING
    LINE-SIZE 290
    LINE-COUNT 65.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • Printing problem with JFame

    Hi
    We have an interesting problem regarding printing the JFrame. Our JFrame view is similar to some thing like this:
    |cutimg |copyimg |Printimg |Info | //Tool Bar panel
    |-------------------------------------------- |
    | Label Text Field     | // Field panel
    |---------------------------------------------|          
    | JTable Header      |               
    |..Line1...............................................|
    |..Line2...............................................| // JTable panel          
    |..Line3...............................................|
    |...........................................................|
    |...........................................................|
    |--------------------------------------------|
    | Button1 Button2 Buoon3 | //Button Panel
    Once i click the "Printimg" button in the tool bar panel, i am executing this code:
         PrinterJob job = PrinterJob.getPrinterJob();
         job.setPrintable( frameObj , job.defaultPage() );           
         if( job.printDialog()) {
              try {
                   job.print();
              catch (Exception exp) {}
    And here is the print method:
    public int print(Graphics g, PageFormat pf, int pageIndex) {
         if (pageIndex != 0) return NO_SUCH_PAGE;
         Graphics2D g2 = (Graphics2D)g;
         g2.translate(pf.getImageableX(), pf.getImageableY());
         g2.scale(0.7,0.7);
         // this.paintAll(g2);
         this.paint(g2);
         return PAGE_EXISTS;
    This works OK and prints the JFrame fine ( on JVM 1.4.2_08 ) in most cases.
    But Interesting problem is, one of our stff is using same JVM , same options from the print Prompt dialog, and same black and white Printer, but the print result is different. (I am talikng about the Print result only. the Frame it self is ok on his PC)
         1. He gets the grey pale reverselike unreadable print. For example The buttons's fore-ground colour is Black. But he gets it as White. Not only that, all black text prints as White.
         2. Looks like he gets Inverse coloured print which really light , hence data can't be read.
         3. All tool bar image icons (cutimg , copyimg , Printimg) are also printing very light.
         4. Though all components are printing in Light colours , the JTable does not. JTable's data is not at all printing except the first row data. the First rows data is pring in light colour. And rest of the rows data is missing.
    We are not sure what is causing this.
    Any help would be great.
    thanks in Advance.
    vally.

    After many hours of research - the problem is in WinNT, 2000 and XP the Display Properties/Settings/Color Quality setting cannot be 16-bit.
    This is easy to reproduce and according to Sun has been reported about 6 times in different ways - see bug id: 4941225
    Sun has stated it's fixed in J2SE (1.5) 5.0
    The work around is to make the color quality 32-bit

Maybe you are looking for