Printing content in SpryTabbedPanels

Does anyone have any idea how to disable the Spry script
functions so that the content will linearize when using a print
style sheet if one uses the SpryTabbedPanels widget? I need the
tabs and panels to show on the screen, but the tabs to disappear on
the panel content to linearize. This was easy to do with stacked
divs (and no script), but that method had other issues.
The tabbed interface lives within a Dreamweaver nested
template.
Any suggestions?
Thanks.
Skip Keats

Hi Skip,
Do you mean something like this?
<style type="text/css" media="print">
.TabbedPanelsTabGroup {
display: none !important;
.TabbedPanelsContent {
display: block !important;
overflow: visible !important;
height: auto !important;
</style>
--== Kin ==--

Similar Messages

  • Reg:printing contents to log file

    Hello all iam creating a debug log file for my program.. debug will be based on the level set which will be taken as a input from the user ..when i try to print the contents to a file gen.out i could not print anything ..file is empty..can some one pls help me ..there is no error thrown by the program
    // my main propram
    public class ff {
      public static void main(String[] args) {
        PrintStream out = System.out;
        int dbgLevel = Integer.parseInt(args[1]);
        String path ="gen.out";
        debug.setLevel(dbgLevel);
        try {
            debug.setLogFile(path);
        catch(Exception e1) {
          e1.printStackTrace();
    debug.msg(0, "Printing contents to a file  ");
    if (Debug.allowed(0)) {
                    Debug.msg(0, "1.printing th econtents );
    //debug class
    public class debug {
      private static int ourLevel = 0;
      private static FileWriter c_writer;
      private static final String k_nl = System.getProperty("line.separator");
        public static void msg(int reqLevel, String debugMessage) {
        if (reqLevel <= ourLevel) {
          String s = "DBG(" + reqLevel + ") " + getTS() + " " + debugMessage + k_nl;
          if (c_writer == null) {
            System.out.println("writer is null "+c_writer.toString());
            System.err.println(s);
            System.err.flush();
          else {
              System.out.println("writer is not null "+c_writer.toString());
              try {
                         c_writer.write(s);
            catch (IOException e) {
                e.printStackTrace();
          } // if (c_writer...) else ...
        } // if (reqLevel...
      } // msg()
    public static void setLogFile(String path) throws IOException {
        c_writer = new FileWriter(path);
    public static void setLevel(int l) {
        ourLevel = l;
        public static boolean allowed(int reqLevel) {
        return reqLevel <= ourLevel;
    file is getting created but its empty ..wat am i doing wrong here .?

    thanks mkoryak got it i was flushing a wrong stream
    thanks for the help

  • How to print contents in an object?

    I would like to print content of object as it is printing like AccountSearchReqBOD@726d23. AccountSearchReeqBOD is generated by ant task clientgen which is not overriding toString method. how can i print contents in an object. Plz help me..
    Thanks in advance.

    i tried with reflection as below
    public String toString1(Object obj)
         StringBuffer buff = new StringBuffer();
         Field[] fields = obj.getClass().getDeclaredFields();
         for (int i = 0; i < fields.length; i++)
         try
         fields.setAccessible(true);
         buff.append(fields[i].getName())
         .append("\t=>\t")
         .append(fields[i].get(obj))
         .append("\n");
         //System.out.println(fields[i].getName() + " : values: " +
         // fields[i].get(this));
         catch (IllegalAccessException ex)
         ex.printStackTrace(System.out);
         catch (IllegalArgumentException ex)
         ex.printStackTrace(System.out);
         return buff.toString();
         * Method logRequest<p/>
         * Logs a SOAP request.
         * @param request
         private void logRequest(Object request) {
              if (mLog.isDebugEnabled()) {
                   if (request != null) {
                        mLog.debug("request:");
                        mLog.debug(toString1(request));
                   } else {
                        mLog.debug("request is null");
    But the above also doesn't log the object with in object. it gives log as
    2011-02-08 12:31:44,170 - DEBUG (WSClient:1168) - request:
    2011-02-08 12:31:45,405 - DEBUG (WSClient:1169) - hostInput     =>     HostInput
    2011-02-08 12:32:08,935 - DEBUG (WSClient:1186) - response:
    2011-02-08 12:32:10,060 - DEBUG (WSClient:1187) - processService     =>     com.tfs.tfs.sharedcomponents.serviceschemas.hostavailable.hostavailableressync.ProcessService@1d43cab
    Request is in correct format but response object got another object as processService which is not outputting correctly. Please help me..
    Edited by: user8660327 on Feb 8, 2011 2:25 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Print content of Adobe Bridge directory, how to?

    Is there a way of printing the content, picture thumbnails and descriptions, of a directory accessed and displayed on screen in Adobe Bridge?

    Chris, thanx for your answer...
    But...
    I read this manual (and another manuals as simple as it)...
    I need to print another window (second) - not a main window...
    I'm generate a HTML code for print and put it into new window - I need to print this new window...
    Yours code printing content of main window...
    I think that need replace "window.htmlLoader" for anything else... But for what?

  • What's the best way to print content of javax Object (JTable for example)?

    Hi there,
    1) I would like to know the best way to print content of jtable (for example)
    2) I would like to know how can I Print content of SQL statment (for example "SELECT ID, NAME FROM COMPANY")?
    Best Regard,
    Eyal
    [email protected]

    Depends on what you want printed. You can do something like System.out.println(myTable);but you may not like what you see. If you want to print anything else, extend JTable and create a new toString() method that prints out what you want.
    As for printing a SQL statement - assuming it is in a String, you can just do System.out.println(mySQLStatement);

  • I cannot print content off the usta web pages

    i cannot print content off the usta web pages; printer is hp officejet pro 8600+; operating system is windows 7-64bit

    hi there,
    could you provide the community with a little more information to help narrow troubleshooting? What browser are you using and are you getting any errors?
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • How to print content of attachments in PDF when clicked on print.

    Hi @,
    I have a requirement where when i click on print the content of attachment present in PDF should be printed instead of attachment symbol. Please let me know whether this is acheivable by any means.This should be done using .NET 2005.
    Thanks in advance.
    Regards
    Meenakshi.

    if you have have a bunch of questions, you can have a div tag set up with nothing in it after each question where you can display the answer. then when you click on the answers in the child window, you can do this:
    window.opener.document.getElementById('divName').innerHTML = 'the html/text to show';

  • Print contents in the last page.

    Dear all,
    I am writing an ABAP program for a report. I have to print some text contents at the end of the page.
    How do i do that?
    TIA,
    sinthu

    Hi amit,
    I have added some codes.... here is the code ..
    SELECTION-SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_AKONT FOR KNB1-AKONT OBLIGATORY.
    PARAMETERS     : P_BUKRS LIKE T001-BUKRS OBLIGATORY.
    " COMPANY CODE
    SELECT-OPTIONS : S_GSBER FOR TGSBT-GSBER OBLIGATORY, " BUSINESS AREA
                     S_BUDAT FOR BSID-BUDAT  OBLIGATORY, " POSTING DATE
                     S_KUNNR FOR KNB1-KUNNR OBLIGATORY, " CUSTOMER NUMBER
                     S_UMSKZ FOR T074U-UMSKZ.            " Special GL
    "indicators
    SELECTION-SCREEN END OF BLOCK B1.
    Begin Of Authorization**********************
    AT SELECTION-SCREEN.
      AUTHORITY-CHECK OBJECT 'Z_FI_REP_N'
         ID 'BUKRS' FIELD P_BUKRS
         ID 'ACTVT' FIELD '03'.
      IF SY-SUBRC <> 0.
        MESSAGE E001(ZAUT) WITH P_BUKRS.
      ENDIF.
      LOOP AT S_AKONT.
        AUTHORITY-CHECK OBJECT 'Z_FI_REP_N'
           ID 'BEGRU' FIELD S_AKONT-LOW
           ID 'ACTVT' FIELD '03'.
        IF SY-SUBRC <> 0.
          MESSAGE E001(ZAUT) WITH S_AKONT-LOW .
        ENDIF.
        IF  S_AKONT-HIGH <> SPACE.
          AUTHORITY-CHECK OBJECT 'Z_FI_REP_N'
             ID 'BEGRU' FIELD S_AKONT-HIGH
             ID 'ACTVT' FIELD '03'.
          IF SY-SUBRC <> 0.
            MESSAGE E001(ZAUT) WITH S_AKONT-HIGH  .
          ENDIF.
        ENDIF.
      ENDLOOP.
      LOOP AT S_GSBER.
        AUTHORITY-CHECK OBJECT 'Z_FI_REP_N'
           ID 'GSBER' FIELD S_GSBER-LOW
           ID 'ACTVT' FIELD '03'.
        IF SY-SUBRC <> 0.
          MESSAGE E001(ZAUT) WITH S_GSBER-LOW .
        ENDIF.
        IF  S_GSBER-HIGH <> SPACE.
          AUTHORITY-CHECK OBJECT 'Z_FI_REP_N'
             ID 'GSBER' FIELD S_GSBER-HIGH
             ID 'ACTVT' FIELD '03'.
          IF SY-SUBRC <> 0.
            MESSAGE E001(ZAUT) WITH S_GSBER-HIGH  .
          ENDIF.
        ENDIF.
      ENDLOOP.
    End of Authorization*********************
    SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON S_AKONT.
           IF NOT S_AKONT-LOW IS INITIAL.
                SELECT SINGLE SAKNR FROM SKAT INTO SKAT-SAKNR          
                      WHERE SAKNR = S_AKONT-LOW.
                IF SY-SUBRC <> 0.
                   MESSAGE E999 WITH 'Reconciliation Account' S_AKONT-LOW
                                                 'does not exist'.
    ENDIF.
         ENDIF.
    IF NOT S_AKONT-HIGH IS INITIAL.
                SELECT SINGLE SAKNR FROM SKAT INTO SKAT-SAKNR          
                      WHERE SAKNR = S_AKONT-HIGH.
                IF SY-SUBRC <> 0.
                   MESSAGE E999 WITH 'Reconciliation Account' S_AKONT-HIGH
                                                  'does not exist'.
    ENDIF.
         ENDIF.
    AT SELECTION-SCREEN ON S_KUNNR.
           IF NOT S_KUNNR-LOW IS INITIAL.
                SELECT SINGLE KUNNR FROM KNB1 INTO KNB1-KUNNR
                          WHERE AKONT IN S_AKONT
                                  AND  KUNNR = S_KUNNR-LOW.
                IF SY-SUBRC <> 0.
                   MESSAGE E317 WITH S_KUNNR-LOW.
    ENDIF.
         ENDIF.
    IF NOT S_KUNNR-HIGH IS INITIAL.
                IF S_KUNNR-HIGH < S_KUNNR-LOW.
                   MESSAGE E381.
    ENDIF.
         SELECT SINGLE KUNNR FROM KNB1 INTO KNB1-KUNNR
                        WHERE AKONT IN S_AKONT
                               AND  KUNNR = S_KUNNR-HIGH.
              IF SY-SUBRC <> 0.
                 MESSAGE E317 WITH S_KUNNR-HIGH.
    ENDIF.
    ENDIF.
    START OF SELECTION
    START-OF-SELECTION.
      P_KOART = 'D'.
      LOOP AT S_UMSKZ.
        IF S_UMSKZ-SIGN = 'E'.
          S_UMSKZ-LOW = ' '.
          S_UMSKZ-HIGH = ' '.
          MODIFY S_UMSKZ INDEX SY-TABIX.
        ENDIF.
      ENDLOOP.
      PERFORM GET_BKPF_BSEG_DATA.
      PERFORM PROCESS_DISPLAY_DATA.
    END-OF-SELECTION.
    TOT OF PAGE
    TOP-OF-PAGE.
      FORMAT COLOR OFF INTENSIFIED OFF.
      SELECT SINGLE BUTXT
                 FROM T001
                     INTO WA_BUTXT
                 WHERE BUKRS = P_BUKRS.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      WRITE : / WA_BUTXT .
      SELECT SINGLE VWERK
             FROM KNVV
               INTO WA_VWERK
             WHERE KUNNR IN S_KUNNR.
      SELECT SINGLE NAME1
             FROM T001W
             INTO WA_PNAME
             WHERE WERKS EQ WA_VWERK.
    PERFORM GET_SUP_PLANT.
    WRITE: / WA_PNAME,
    / WA_NAME, / WA_NAME2 , / WA_NAME3,/ WA_NAME4, /
    WA_CITY,/ WA_PSTLZ, /1(152) SY-ULINE.
    *SKIP 1.
    *ULINE AT (152).
      WRITE : / 'Statement of Accounts', 100 'Page No : ', SY-PAGNO.
               100 'Page No : ', SY-PAGNO.
      IF S_BUDAT-HIGH = '00000000'.
        S_BUDAT-HIGH = S_BUDAT-LOW.
      ENDIF.
      FORMAT COLOR OFF INTENSIFIED OFF.
         FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      WRITE : / 'From :', S_BUDAT-LOW, 'TO', S_BUDAT-HIGH ,100 'Date   : ',
    SY-DATUM, /1(152) SY-ULINE .
                100 'Date   : ', SY-DATUM.
      FORMAT COLOR OFF INTENSIFIED OFF.
    END OF PAGE
    END-OF-PAGE.
    WRITE:'Dear Sir,'.
    WRITE:/15 'Confirmation of Balance'.
    *INCLUDE ZFIGRIDISP.
    FORM GET_BKPF_BSEG_DATA
    FORM GET_BKPF_BSEG_DATA.
    *INCLUDE ZFIGENDOCS.
    DATA : I_FYV1 LIKE T009-PERIV.
    *Commented by Sinthu
    CALL FUNCTION 'CCODE_GET_FISCAL_YEAR_VARIANT'
       EXPORTING
         COMPANY_CODE           = P_BUKRS
       IMPORTING
         FISCAL_YEAR_VARIANT    = I_FYV1
       EXCEPTIONS
         COMPANY_CODE_NOT_FOUND = 1
         OTHERS                 = 2.
    IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *CALL FUNCTION 'GM_GET_FISCAL_YEAR'
    EXPORTING
      I_DATE                           = S_BUDAT-LOW
       I_FYV                           = I_FYV1
    IMPORTING
      E_FY                             = DATE1
    EXCEPTIONS
      FISCAL_YEAR_DOES_NOT_EXIST       = 1
      NOT_DEFINED_FOR_DATE             = 2
      OTHERS                           = 3
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    CLEAR DATE1.
    CALL FUNCTION 'ME_DETERMINE_GJAHR'
       EXPORTING
      I_BSTYP         =
         I_BEDAT         = S_BUDAT-LOW
         I_PERIV         = I_FYV1
      IMPORTING
      E_H_MONAT       =
        E_H_GJAHR       = DATE1
      E_H_DATUM       =
    End comment - sinthu
    CUSTOMER CALCULATION
      SELECT BUKRS BELNR GJAHR BLART
             BLDAT BUDAT XBLNR BKTXT
             WAERS KURSF XREVERSAL
         INTO TABLE IT_BKPF
         FROM BKPF
               WHERE BUKRS = P_BUKRS
               AND   BUDAT IN S_BUDAT
               AND   BLART <> 'ZC' AND BLART <> 'ZV' AND BLART <> 'DA' AND
    BLART <> 'AB'
               AND   BSTAT = ' '.
      SELECT VBELN VBTYP
          INTO TABLE IT_VBRK
           FROM VBRK
           FOR ALL ENTRIES IN IT_BKPF
             WHERE VBELN = IT_BKPF-BELNR.
      SORT IT_BKPF BY BUDAT.
      IF P_KOART = 'D'.
        IF S_UMSKZ <> ' '.
          SELECT BUKRS BELNR GJAHR AUGBL
                 KOART UMSKZ SHKZG GSBER
                 DMBTR WRBTR ZUONR SGTXT
                 KOSTL VBELN SAKNR HKONT
                 KUNNR LIFNR REBZG
                 INTO TABLE IT_BSEG
                 FROM BSEG
                       WHERE BUKRS = P_BUKRS
                       AND   GSBER IN S_GSBER
                    AND   UMSKZ IN S_UMSKZ
                       AND   ( UMSKZ = ''  OR UMSKZ IN S_UMSKZ )
                       AND   KUNNR IN S_KUNNR
                       AND   KOART = P_KOART.
                      AND   GJAHR = DATE1.
        ELSE.
          SELECT BUKRS BELNR GJAHR AUGBL
                KOART UMSKZ SHKZG GSBER
                DMBTR WRBTR ZUONR SGTXT
                KOSTL VBELN SAKNR HKONT
                KUNNR LIFNR REBZG
                INTO TABLE IT_BSEG
                FROM BSEG
                      WHERE BUKRS = P_BUKRS
                      AND   GSBER IN S_GSBER
                      AND   ( UMSKZ = ' ' )
                    OR UMSKZ IN S_UMSKZ )
                      AND   KUNNR IN S_KUNNR
                      AND   KOART = P_KOART.
                     AND   GJAHR = DATE1.
        ENDIF.
        SORT IT_BKPF BY BELNR.
        SORT IT_BSEG BY BELNR.
        LOOP AT IT_BSEG.
          CNT = SY-TABIX.
          READ TABLE IT_BKPF
          WITH KEY BELNR = IT_BSEG-BELNR
          BINARY SEARCH.
          IF SY-SUBRC NE 0.
            DELETE IT_BSEG INDEX CNT.
            CLEAR IT_BSEG.
          ENDIF.
        ENDLOOP.   " END OF IT_BSIK
      ENDIF.
    OPENING BALANCE CALCULATION************
      SELECT BELNR
            FROM BKPF
            INTO TABLE IT_BKPF_OPEN_BAL
              WHERE BUKRS = P_BUKRS
                 AND   BUDAT < S_BUDAT-LOW
                AND   GJAHR = DATE1
                 AND   BLART <> 'ZC' AND BLART <> 'ZV' AND BLART <> 'DA' AND
    BLART <> 'AB'
                 AND   BSTAT = ' '.
    ****************end of ZFIGENDOCS***************************
    ENDFORM.                    "GET_BKPF_BSEG_DATA
    FORM PROCESS_DISPLAY_DATA.
    FORM PROCESS_DISPLAY_DATA.
      SELECT GSBER INTO TABLE IT_TGSBT
                  FROM TGSBT
                      WHERE GSBER IN S_GSBER.
      SELECT KUNNR INTO TABLE IT_KNB1
            FROM KNB1
                WHERE KUNNR IN S_KUNNR
                 AND  AKONT IN S_AKONT.
      LOOP AT IT_TGSBT.
        LOOP AT IT_KNB1.
          IT_BA_CUST_COMB-GSBER = IT_TGSBT-GSBER.
          IT_BA_CUST_COMB-KUNNR = IT_KNB1-KUNNR.
          APPEND IT_BA_CUST_COMB.
        ENDLOOP.     " END OF IT_KNB1
      ENDLOOP.         " END OF IT_TGSBT
      DELETE ADJACENT DUPLICATES FROM IT_BA_CUST_COMB.
      SORT IT_BA_CUST_COMB BY KUNNR.
      IF NOT IT_BA_CUST_COMB[] IS INITIAL.
        LOOP AT IT_BA_CUST_COMB.
          COUNTR1 = COUNTR1 + 1.
          IF S_UMSKZ <> ''.
            SELECT BELNR SHKZG DMBTR
                   INTO TABLE IT_BSEG_OPEN_BAL
                   FROM BSEG
                         WHERE BUKRS = P_BUKRS
                         AND   GSBER = IT_BA_CUST_COMB-GSBER
                        AND   UMSKZ IN S_UMSKZ
                         AND   ( UMSKZ = ' '  OR UMSKZ IN S_UMSKZ )
                         AND   KUNNR = IT_BA_CUST_COMB-KUNNR
                         AND   KOART = P_KOART.
                        AND   GJAHR = DATE1.
          ELSE.
            SELECT BELNR SHKZG DMBTR
                INTO TABLE IT_BSEG_OPEN_BAL
                FROM BSEG
                      WHERE BUKRS = P_BUKRS
                      AND   GSBER = IT_BA_CUST_COMB-GSBER
                      AND   ( UMSKZ = ' ' )
                      OR UMSKZ IN S_UMSKZ )
                      AND   KUNNR = IT_BA_CUST_COMB-KUNNR
                      AND   KOART = P_KOART.
                     AND   GJAHR = DATE1.
          ENDIF.
          SORT IT_BKPF_OPEN_BAL BY BELNR.
          SORT IT_BSEG_OPEN_BAL BY BELNR.
          LOOP AT IT_BSEG_OPEN_BAL.
            CNT = SY-TABIX.
            READ TABLE IT_BKPF_OPEN_BAL
            WITH KEY BELNR = IT_BSEG_OPEN_BAL-BELNR
             BINARY SEARCH.
            IF SY-SUBRC <>  0.
              DELETE IT_BSEG_OPEN_BAL INDEX CNT.
              CLEAR IT_BSEG_OPEN_BAL.
            ENDIF.
          ENDLOOP.        " END IT_BSEG_OPEN_BAL
          PREV_YR_BAL = 0.               " TO BE ADDED LATER ......
          OPEN_BAL = PREV_YR_BAL.
          LOOP AT IT_BSEG_OPEN_BAL.
            IF IT_BSEG_OPEN_BAL-SHKZG = 'S'.
              OPEN_BAL = OPEN_BAL + IT_BSEG_OPEN_BAL-DMBTR.
            ELSE.
              OPEN_BAL = OPEN_BAL - IT_BSEG_OPEN_BAL-DMBTR.
            ENDIF.
          ENDLOOP.            " END OF IT_BSEG_OPEN_BAL
    IF OPEN_BAL <> 0.                 " LATER CHECK CLOSING BAL = 0...
          SELECT SINGLE NAME1 INTO WA_NAME1 FROM KNA1
          WHERE KUNNR = IT_BA_CUST_COMB-KUNNR.
          SELECT SINGLE GTEXT INTO WA_GTEXT FROM TGSBT
          WHERE  GSBER = IT_BA_CUST_COMB-GSBER.
          LOOP AT IT_BSEG WHERE GSBER = IT_BA_CUST_COMB-GSBER
                           AND  KUNNR = IT_BA_CUST_COMB-KUNNR.
            IT_LINE_ITEMS-BELNR = IT_BSEG-BELNR.
            IT_LINE_ITEMS-UMSKZ = IT_BSEG-UMSKZ.
            IT_LINE_ITEMS-SHKZG = IT_BSEG-SHKZG.
            IT_LINE_ITEMS-DMBTR = IT_BSEG-DMBTR.
            IT_LINE_ITEMS-SGTXT = IT_BSEG-SGTXT.
            IT_LINE_ITEMS-XBLNR = IT_BSEG-ZUONR.
            IT_LINE_ITEMS-ZUONR = IT_BSEG-ZUONR.
            APPEND IT_LINE_ITEMS.
          ENDLOOP.   " END OF IT_BSEG
          SORT IT_BKPF BY BELNR.
          CLOSE_BAL = OPEN_BAL.
          LOOP AT IT_LINE_ITEMS.
            CNT1 = SY-TABIX.
            MONCR = 0. MONDR = 0.
            READ TABLE IT_BKPF
                 WITH KEY BELNR = IT_LINE_ITEMS-BELNR
                                BINARY SEARCH.
            IT_LINE_ITEMS-BUKRS = IT_BKPF-BUKRS.
            IT_LINE_ITEMS-BUDAT = IT_BKPF-BUDAT.
            IT_LINE_ITEMS-BLDAT = IT_BKPF-BLDAT.
            IT_LINE_ITEMS-BLART = IT_BKPF-BLART.
            IF IT_BKPF-BLART = 'ZS' AND IT_BKPF-BLART = 'ZT'.
              SELECT SINGLE * FROM ZFIH0004
                      WHERE KUNNR = IT_BA_CUST_COMB-KUNNR
                                   AND ZGROUP = IT_BKPF-XBLNR
                                   AND SCH10_PRSC = IT_LINE_ITEMS-ZUONR
                                   AND BUKRS = IT_BKPF-BUKRS.
              IF SY-SUBRC = 0.
                IT_LINE_ITEMS-BLDAT = ZFIH0004-BLDAT.
              ENDIF.
            ENDIF.
            IF IT_LINE_ITEMS-BLART <> 'ZS' AND IT_LINE_ITEMS-BLART <> 'DZ'
                  AND IT_LINE_ITEMS-BLART <> 'ZT'.
              IT_LINE_ITEMS-XBLNR = IT_BKPF-XBLNR.
            ENDIF.
            SELECT SINGLE LTEXT FROM T003T
            INTO  IT_LINE_ITEMS-LTEXT
            WHERE BLART = IT_LINE_ITEMS-BLART
             AND  SPRAS = 'E'.
            READ TABLE IT_VBRK
                  WITH KEY VBELN = IT_LINE_ITEMS-BELNR.
            IF SY-SUBRC = 0.
              IF IT_LINE_ITEMS-BLART = 'RV'.
                IF IT_VBRK-VBTYP = 'M'.
                  IT_LINE_ITEMS-LTEXT = 'Invoice'.
                ELSEIF IT_VBRK-VBTYP = 'N'.
                  IT_LINE_ITEMS-LTEXT = 'Invoice Cancellation'.
                ELSEIF IT_VBRK-VBTYP = 'O'.
                  IT_LINE_ITEMS-LTEXT = 'Credit Note'.
                ELSEIF IT_VBRK-VBTYP = 'P'.
                  IT_LINE_ITEMS-LTEXT = 'Debit Note'.
                ENDIF.
              ENDIF.
            ENDIF.
            SELECT SINGLE LTEXT FROM T074T
            INTO  IT_LINE_ITEMS-SGLTX
            WHERE SHBKZ = IT_LINE_ITEMS-UMSKZ
            AND   SPRAS = 'E'
            AND KOART = P_KOART.
            IT_LINE_ITEMS-DAMNT = 0.
            IT_LINE_ITEMS-CAMNT = 0.
            IF IT_LINE_ITEMS-SHKZG = 'S'.
             AND IT_LINE_ITEMS-BLART <> 'ZC'
             AND IT_LINE_ITEMS-BLART <> 'DA'
             AND IT_LINE_ITEMS-BLART <> 'ZV'.
              IT_LINE_ITEMS-DAMNT = IT_LINE_ITEMS-DMBTR.
              CLOSE_BAL = CLOSE_BAL + IT_LINE_ITEMS-DMBTR.
            ELSE.
            IF IT_LINE_ITEMS-BLART <> 'ZC' AND IT_LINE_ITEMS-BLART <> 'DA'
               AND IT_LINE_ITEMS-BLART <> 'ZV'.
              IT_LINE_ITEMS-CAMNT = IT_LINE_ITEMS-DMBTR.
              CLOSE_BAL = CLOSE_BAL - IT_LINE_ITEMS-DMBTR.
            ENDIF.
             ENDIF.
            MODIFY IT_LINE_ITEMS INDEX CNT1.
          ENDLOOP.
          SORT IT_LINE_ITEMS BY BELNR DMBTR.
    *******************MODIFICATION**********
    *LOOP AT IT_LINE_ITEMS.
    *IF IT_LINE_ITEMS-BELNR = CLRDOC AND IT_LINE_ITEMS-DMBTR = CLRAMT.
       DELETE IT_LINE_ITEMS WHERE BELNR = CLRDOC AND DMBTR = CLRAMT.
    *ENDIF.
    *CLRDOC = IT_LINE_ITEMS-BELNR.
    *CLRAMT = IT_LINE_ITEMS-DMBTR.
    *ENDLOOP.
          CLRDOC = 0. CLRAMT = 0.
          CNT = 0.
          LOOP AT IT_LINE_ITEMS.
            IT_LINEITEMS_DUP-CBELNR = IT_LINE_ITEMS-BELNR.
            IT_LINEITEMS_DUP-CDMBTR = IT_LINE_ITEMS-DMBTR.
            IT_LINEITEMS_DUP-CSHKZG = IT_LINE_ITEMS-SHKZG.
            APPEND IT_LINEITEMS_DUP.
          ENDLOOP.
          LOOP AT IT_LINE_ITEMS.
    *CNT = SY-TABIX.
            LOOP AT IT_LINEITEMS_DUP WHERE CBELNR = IT_LINE_ITEMS-BELNR.
              IF IT_LINEITEMS_DUP-CSHKZG = 'S'.
                CLRAMT = CLRAMT + IT_LINEITEMS_DUP-CDMBTR.
              ELSEIF IT_LINEITEMS_DUP-CSHKZG = 'H'.
                CLRAMT = CLRAMT - IT_LINEITEMS_DUP-CDMBTR.
              ENDIF.
            ENDLOOP.
            IF CLRAMT = 0.
              DELETE IT_LINE_ITEMS WHERE BELNR = IT_LINEITEMS_DUP-CBELNR.
            ENDIF.
            CLRAMT = 0.
          ENDLOOP.
    ****************MODIFICATION***********
          SORT IT_LINE_ITEMS BY BUDAT BELNR.
          IF OPEN_BAL = 0 AND CLOSE_BAL = 0 AND IT_LINE_ITEMS[] IS INITIAL.
            COUNTR2 = COUNTR2 + 1.
           CONTINUE.
          ELSE.
            AT NEW KUNNR.
              NEW-PAGE.
            ENDAT.
            CLEAR G_FL.
           SKIP 1.
            CLEAR: WA_NAME,WA_NAME2,WA_NAME3,WA_NAME4,WA_CITY,WA_PSTLZ.
            SELECT SINGLE NAME1 NAME2 ORT01 PSTLZ
                   FROM KNA1
                   INTO (WA_NAME01,WA_NAME21,WA_CITY1,WA_PSTLZ1)
                   WHERE KUNNR IN S_KUNNR.
            WRITE : / 'Customer Account    : ', IT_BA_CUST_COMB-KUNNR,
                      100 'Business Code : ', IT_BA_CUST_COMB-GSBER,
                    /  WA_NAME01, 100 'Business Area : ', WA_GTEXT,
                    /  WA_NAME21,/ WA_CITY1,/ WA_PSTLZ1.
    SKIP 1.
            G_FL = 'X'.
    SKIP 1.
            ULINE AT (152).
            FORMAT COLOR COL_HEADING INTENSIFIED.
            WRITE :/    SY-VLINE NO-GAP, 'Doc.Date',
                     12 SY-VLINE NO-GAP, 'Doc.No.',
                     23 SY-VLINE NO-GAP, 'Ref.Doc.No.',
                     37 SY-VLINE NO-GAP, 'Ref.Doc.Date',
                     49 SY-VLINE NO-GAP, 'Ref.Doc.Name',
                    70 SY-VLINE NO-GAP, 'Advances/Deposits',
                     70 SY-VLINE NO-GAP, 'Description',
                     95 SY-VLINE NO-GAP, '          Debit' RIGHT-JUSTIFIED,
                    120  SY-VLINE NO-GAP, '         Credit' RIGHT-JUSTIFIED,
                    136  SY-VLINE NO-GAP, '        Balance' RIGHT-JUSTIFIED,
                    152 SY-VLINE NO-GAP.
            ULINE AT (152).
            FORMAT COLOR OFF INTENSIFIED OFF.
            FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
            IF OPEN_BAL >= 0.
              WRITE : / SY-VLINE NO-GAP,
                        70 SY-VLINE NO-GAP, 'OPENING BALANCE',
                        95  SY-VLINE NO-GAP,  OPEN_BAL NO-GAP,
                        120 SY-VLINE NO-GAP,
                       136 SY-VLINE NO-GAP,
                       152 SY-VLINE NO-GAP.
            ELSE.
              WRITE : / SY-VLINE NO-GAP,
                        70  SY-VLINE NO-GAP, 'OPENING BALANCE',
                        95 SY-VLINE NO-GAP,
                       120 SY-VLINE NO-GAP,  OPEN_BAL NO-GAP,
                       136 SY-VLINE NO-GAP,
                       152 SY-VLINE NO-GAP.
            ENDIF.
            FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
            ULINE AT (152).
            LOOP AT IT_LINE_ITEMS.
         WHERE BLART NE 'ZC'
          AND BLART NE 'DA'
          AND BLART NE 'ZV'.
    **************MODIFICATIONS**************
              IF MON = 0.
                MON = IT_LINE_ITEMS-BUDAT+4.
                MONTOT = OPEN_BAL.
              ENDIF.
              IF MON <> IT_LINE_ITEMS-BUDAT+4(2).
                MONTOT = MONTOT + MONDR - MONCR.
                ULINE AT (152).
                FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
                WRITE :/ SY-VLINE NO-GAP,
                        70 SY-VLINE NO-GAP, 'MONTH TOTAL',
                        95 SY-VLINE NO-GAP, MONDR,
                        120 SY-VLINE NO-GAP, MONCR,
                       136 SY-VLINE NO-GAP,
                       152 SY-VLINE NO-GAP.
             ULINE AT (152).
                IF MONTOT >= 0.
                  WRITE :/ SY-VLINE NO-GAP,
                          70 SY-VLINE NO-GAP, 'MONTH CLOSING BALANCE',
                          95 SY-VLINE NO-GAP, MONTOT,
                          120 SY-VLINE NO-GAP,
                          136 SY-VLINE NO-GAP,
                         152 SY-VLINE NO-GAP.
                ELSE.
                  WRITE :/ SY-VLINE NO-GAP,
                           70 SY-VLINE NO-GAP, 'MONTH CLOSING BALANCE',
                           95 SY-VLINE NO-GAP,
                          120  SY-VLINE NO-GAP, MONTOT,
                          136 SY-VLINE NO-GAP,
                          152 SY-VLINE NO-GAP.
                ENDIF.
                FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
           ULINE AT (152).
                MON = IT_LINE_ITEMS-BUDAT+4.
                MONDR = 0. MONCR = 0.
              ENDIF.
              IF IT_LINE_ITEMS-SHKZG = 'S'.
                MONDR = MONDR + IT_LINE_ITEMS-DMBTR.
              ELSE.
                MONCR = MONCR + IT_LINE_ITEMS-DMBTR.
              ENDIF.
              IF IT_LINE_ITEMS-SGTXT = ' '.
                PERFORM SUB_GET_TEXT.
              ENDIF.
         ULINE AT (152).
              FORMAT COLOR COL_NORMAL INTENSIFIED.
              FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
              IF IT_LINE_ITEMS-DAMNT = 0.
                WRITE :/      SY-VLINE NO-GAP, IT_LINE_ITEMS-BUDAT NO-GAP,
                         12  SY-VLINE NO-GAP, IT_LINE_ITEMS-BELNR NO-GAP,
                         23  SY-VLINE NO-GAP, IT_LINE_ITEMS-XBLNR NO-GAP,
                         37  SY-VLINE NO-GAP, IT_LINE_ITEMS-BLDAT NO-GAP,
                         49  SY-VLINE NO-GAP, IT_LINE_ITEMS-LTEXT NO-GAP,
                         70  SY-VLINE NO-GAP, 71(23) IT_LINE_ITEMS-SGTXT
    NO-GAP,
                         95  SY-VLINE NO-GAP,
                        120  SY-VLINE NO-GAP, IT_LINE_ITEMS-CAMNT NO-GAP,
                        136  SY-VLINE NO-GAP,
                        152  SY-VLINE NO-GAP.
              ELSEIF IT_LINE_ITEMS-CAMNT = 0.
                WRITE :/      SY-VLINE NO-GAP, IT_LINE_ITEMS-BUDAT NO-GAP,
                   12  SY-VLINE NO-GAP, IT_LINE_ITEMS-BELNR NO-GAP,
                   23  SY-VLINE NO-GAP, IT_LINE_ITEMS-XBLNR NO-GAP,
                   37  SY-VLINE NO-GAP, IT_LINE_ITEMS-BLDAT NO-GAP,
                   49  SY-VLINE NO-GAP, IT_LINE_ITEMS-LTEXT NO-GAP,
                   70  SY-VLINE NO-GAP, 71(23) IT_LINE_ITEMS-SGTXT NO-GAP,
                   95  SY-VLINE NO-GAP, IT_LINE_ITEMS-DAMNT NO-GAP,
                   120  SY-VLINE NO-GAP,
                   136  SY-VLINE NO-GAP,
                  152  SY-VLINE NO-GAP.
              ELSE.
                WRITE :/      SY-VLINE NO-GAP, IT_LINE_ITEMS-BUDAT NO-GAP,
                   12  SY-VLINE NO-GAP, IT_LINE_ITEMS-BELNR NO-GAP,
                   23  SY-VLINE NO-GAP, IT_LINE_ITEMS-XBLNR NO-GAP,
                   37  SY-VLINE NO-GAP, IT_LINE_ITEMS-BLDAT NO-GAP,
                   49  SY-VLINE NO-GAP, IT_LINE_ITEMS-LTEXT NO-GAP,
                   70  SY-VLINE NO-GAP, 71(23) IT_LINE_ITEMS-SGTXT NO-GAP,
                   95  SY-VLINE NO-GAP, IT_LINE_ITEMS-DAMNT NO-GAP,
                  120  SY-VLINE NO-GAP, IT_LINE_ITEMS-CAMNT NO-GAP,
                  136  SY-VLINE NO-GAP,
                  152  SY-VLINE NO-GAP.
              ENDIF.
              IT_LINE_ITEMS-SGLTX = ''.
            ENDLOOP.
            MONTOT = MONTOT + MONDR - MONCR.
            ULINE AT (152).
            FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
            WRITE :/ SY-VLINE NO-GAP,
                   70 SY-VLINE NO-GAP, 'MONTH TOTAL',
                   95 SY-VLINE NO-GAP, MONDR,
                  120 SY-VLINE NO-GAP, MONCR,
                  136 SY-VLINE NO-GAP,
                  152 SY-VLINE NO-GAP.
               ULINE AT (152).
            IF MONTOT >= 0.
              WRITE :/ SY-VLINE NO-GAP,
                       70 SY-VLINE NO-GAP, 'MONTH CLOSING BALANCE',
                       95 SY-VLINE NO-GAP, MONTOT,
                      120 SY-VLINE NO-GAP,
                      136 SY-VLINE NO-GAP,
                      152 SY-VLINE NO-GAP.
            ELSE.
              WRITE :/ SY-VLINE NO-GAP,
                       70 SY-VLINE NO-GAP, 'MONTH CLOSING BALANCE',
                       95 SY-VLINE NO-GAP,
                      120 SY-VLINE NO-GAP, MONTOT,
                      136 SY-VLINE NO-GAP,
                      152 SY-VLINE NO-GAP.
            ENDIF.
            FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
            ULINE AT (152).
            MONCR = 0. MONDR = 0.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            FORMAT COLOR COL_TOTAL INTENSIFIED.
            IF CLOSE_BAL >= 0.
              WRITE : / SY-VLINE NO-GAP,
                        70  SY-VLINE NO-GAP, 'CLOSING BALANCE',
                        95 SY-VLINE NO-GAP, CLOSE_BAL NO-GAP,
                       120 SY-VLINE NO-GAP,
                       136 SY-VLINE NO-GAP,
                       152 SY-VLINE NO-GAP.
            ELSE.
              WRITE : / SY-VLINE NO-GAP,
                        70 SY-VLINE NO-GAP, 'CLOSING BALANCE',
                        95 SY-VLINE NO-GAP,
                       120 SY-VLINE NO-GAP, CLOSE_BAL NO-GAP,
                       136 SY-VLINE NO-GAP,
                       152 SY-VLINE NO-GAP.
            ENDIF.
            ULINE AT (152).
            MON = 0. MONTOT = 0.
            MONDR = 0. MONCR = 0.
          ENDIF.
          FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
          FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
    *****MODIFICATION ON 13.08.2005***
          CLEAR IT_LINE_ITEMS.
          REFRESH IT_LINE_ITEMS.
          CLEAR OPEN_BAL.
          CLEAR CLOSE_BAL.
    ******END OF MODIFICATION****
          FREE OPEN_BAL.
          FREE CLOSE_BAL.
          FREE IT_LINE_ITEMS.
         IF G_FL = 'X'.
           AT END OF KUNNR.
             NEW-PAGE.
           ENDAT.
           CLEAR G_FL.
           SKIP 1.
         ENDIF.
        ENDLOOP.
      ENDIF.                     " ENDIF OF NOT INITIAL IT_BA_CUST_COMB.
    ***********MODIFICATION**********
      IF  COUNTR1 = COUNTR2.
        WRITE : /20 '********** NO DATA SELECTED **********'.
      ENDIF.
    ********END OF MODIFICATION********
      IF IT_BA_CUST_COMB[] IS INITIAL.
        WRITE : /20 '********** NO DATA SELECTED **********'.
      ENDIF.
    ENDFORM.                    "PROCESS_DISPLAY_DATA
    *&      Form  sub_get_text
          text
    FORM SUB_GET_TEXT .
    *select single * from vbak where vbeln = it_vbrk-aubel.
      DATA: L_VBELN LIKE THEAD-TDNAME.
      SELECT SINGLE AUBEL FROM VBRP INTO VBRP-AUBEL WHERE VBELN =
    IT_LINE_ITEMS-BELNR.
      L_VBELN = VBRP-AUBEL..
    l_vbeln = it_vbrk-aubel.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
         CLIENT                        = SY-MANDT
          ID                            = '0001'
          LANGUAGE                      = SY-LANGU
          NAME                          = L_VBELN
          OBJECT                        = 'VBBK'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
        TABLES
          LINES                         = IT_TEXT
       EXCEPTIONS
         ID                            = 1
         LANGUAGE                      = 2
         NAME                          = 3
         NOT_FOUND                     = 4
         OBJECT                        = 5
         REFERENCE_CHECK               = 6
         WRONG_ACCESS_TO_ARCHIVE       = 7
         OTHERS                        = 8
      IF SY-SUBRC <> 0.
        REFRESH: IT_TEXT.
        CLEAR: IT_TEXT.
      ENDIF.
      LOOP AT IT_TEXT.
        IT_LINE_ITEMS-SGTXT = IT_TEXT-TDLINE.
      ENDLOOP.
    ENDFORM.                    "sub_get_text
    *&      Form  GET_SUP_PLANT
          text
    -->  p1        text
    <--  p2        text
    FORM GET_SUP_PLANT  .
      CALL FUNCTION 'PIA_CSO_PLANT_ADDRESS_READ'
        EXPORTING
          PI_PLANT         = WA_VWERK
       IMPORTING
         PE_PLADDR        = IT_PLANT
        PE_RETURN1       =
    APPEND IT_PLANT.
    LOOP AT IT_PLANT.
    WA_NAME = IT_PLANT-NAME.
    WA_NAME2 = IT_PLANT-NAME_2.
    WA_NAME3 = IT_PLANT-NAME_3.
    WA_NAME4 = IT_PLANT-NAME_4.
    WA_CITY = IT_PLANT-CITY.
    WA_PSTLZ = IT_PLANT-POSTL_COD1.
    ENDLOOP.
    ENDFORM.                    " GET_SUP_PLANT

  • URGENT ! Help to printing contents of a panel (Plz Help me)

    hi guys,
    i developed a application which consists of lot of information on a panel, i am using print utilities and printing the panel but its printing only the visible part of the panel and its printing a single page. is there any way i can print the whole contents of the panel
    i really appreciate if anyone can help me out.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    public class PrintUtilities implements Printable
    private Component componentToBePrinted;
    public static void printComponent(Component c)
    new PrintUtilities(c).print();
    public PrintUtilities(Component componentToBePrinted)
    this.componentToBePrinted = componentToBePrinted;
    public void print() {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this);
    if (printJob.printDialog())
    try
    printJob.print();
    } catch(PrinterException pe) {
    System.out.println("Error printing: " + pe);
    public int print(Graphics g, PageFormat pageFormat, int pageIndex)
    if (pageIndex > 0)
    return(NO_SUCH_PAGE);
    else
    Graphics2D g2d = (Graphics2D)g;
    g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    disableDoubleBuffering(componentToBePrinted);
    componentToBePrinted.paint(g2d);
    enableDoubleBuffering(componentToBePrinted);
    return(PAGE_EXISTS);
    /** The speed and quality of printing suffers dramatically if
    * any of the containers have double buffering turned on.
    * So this turns if off globally.
    * @see enableDoubleBuffering
    public static void disableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(false);
    /** Re-enables double buffering globally. */
    public static void enableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(true);

    not exactly so...
    implementing Pageable means imlpementing methods that return the number of pages, PageFormat object, and Printable object for each page... look in the API for this interface. It's actually quite a lot of work to do, as you have to divide your panel programmatically on "good" - suitable for your purposes rectangles of the page size, then cretae printale object for each ... but that can be done.
    I'm not that familiar with java printing, perhaps there is a much easier way to do it. Anyway, when I had to print one component on several pages, that's what I did - so it works.

  • Printing Content Hidden in Windows

    I desire to print out my whole PDF file in Adobe Reader 9. In it there are windows which open upon being clicked and otherwise their content is hidden. How do I print the entire PDF file together with the content in those windows? Thank You. I know part of this function is not avaliable in version 9 however I'd like to know if I can in any way print out those pop-ups?

    I don't know. They're embedded as an additional layer. There's a link or button on the document in several places to view suggested answers to my school work. A window opens in front of the page with content. With regards to my other post at the bottom of it, it says <continued> and only in version 9 (not 10) it continues as a window on top on the next page. If I click on it it disappears and the page is left there.

  • How to print content of the swing components?Example:JTextArea.

    I have a application,it include a JTextArea,and when user click newfile menu,
    it will load a txt file.but how can I print the txt file content? now ,I can only
    print the panel of the application!
    Thank you!

    Next is the code of the PrintManager I have written. It uses the new Printing technique.
    package jippa.jshell.gui;
    import javax.print.Doc;
    import javax.print.DocFlavor;
    import javax.print.DocPrintJob;
    import javax.print.PrintException;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.SimpleDoc;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.print.attribute.standard.MediaSizeName;
    * @author postma
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class PrintManager {
         * Constructs a new PrintManager.
         public PrintManager() {
              super();          
         * Print the given text.
         * @param text The text to be printed.
         public void print(String text) {
              DocFlavor df = DocFlavor.STRING.TEXT_PLAIN;
              Doc myDoc = new SimpleDoc(text, df, null);
              PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
              aset.add(MediaSizeName.ISO_A4);
              PrintService[] services =
                   PrintServiceLookup.lookupPrintServices(df, aset);
              if (services.length > 0) {
                   DocPrintJob job = services[0].createPrintJob();
                   try {
                        job.print(myDoc, aset);
                   } catch (PrintException pe) {
                        pe.printStackTrace();
    In your code you must add:
    PrintManager pm = new PrintManager();
    pm.print(text);

  • How to print content inside a scroller in Adobe Air

    Hi experts,
    I am currently working on an Adobe AIR application that shows the  user some graphical data. As this data is more in height to fit the  screen height, I've placed it inside a scroller.
    Now I want to take a print of this visual data, mostly some charts  and lists but I only see a single page containing only the part of the  screen that is currently visible to the user. I want to have the entire  content inside the scroller to appear on the page.
    I tried using both PrintJob and FlexPrintJob but couldn't find a way  around. Can anyone please help me by providing an insight, some source  code will be greatly appreciated.
    Looking forward to your replies,
    Thanks

    Alex,
    From http://www.darronschall.com/weblog/2005/11/the-secret-to-printing-in-flex.cfm,
    I adjusted my code to
            if (printJob.start())
                FlexGlobals.application.contentGroup.clipAndEnableScrolling = false;
                results.scroller.viewport.clipAndEnableScrolling = false;
                setTimeout(continuePrinting, 250)
            function continuePrinting():void
                printJob.addPage(results.scroller.viewport as Sprite);
                printJob.send();
                results.scroller.viewport.clipAndEnableScrolling = true;
                FlexGlobals.application.contentGroup.clipAndEnableScrolling = true;
    Now it does print a small portion of invisible portion, but the view of limited to a single page. I observed the contentHeight property of the viewport and it is 6097. But the printout is limited to a single page. I also tried giving a rectangle as the second parameter for the addPage method of printJob giving the height of viewPort.contentHeight but of no use.
    How are you suggesting to create a new view of viewport outside the scroller ? Can you please paste some code for reference for better understanding of your suggestion?
    Thanks

  • Want to print content of textfield.

    I want to print the content of text field using a button. I know how to print a movie clip. If I transform the text field into a movie clip, I cannot type anything in it, and then I will be printing an empty textfield.. Help, hint ? thank you.

    there should be no problem converting your textfield to a movieclip and then typing into it.  you're not really changing it to a movieclip, you'll just be adding it to the movieclip's timeline.
    but your textfield already must be in a displayobjectcontainer and so can be added to your printjob.  for example, if your textfield (eg, tf) is on the in-scope timeline, you can use:
    var pj:PrintJob = new PrintJob();
    b.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void {
        if (pj.start()) {
            try {
                pj.addPage(this,new Rectangle(tf.x,tf.y,tf.width,tf.height));
            } catch (e:Error) {
                // handle error
            pj.send();

  • How to print content of JSP

    hi ,
    i have a JSP with content beyond the limit of offset( with scroll bar, i have data after width of screen)
    with window.print i can not print the whole document
    any way to do that?
    please help me with some way........

    with .CSS also we can not make it out, right?
    any way?

  • Firefox does not paginate when printing content inside a Fieldset tag!

    When the content inside of a fieldset tag spans more than one page, Firefox prints only the first page of content and no more. Changing the fieldset to a div tag resolves the issue (proving that it is only the fieldset tag that is the problem). Please fix so pagination in printing works when content is in a fieldset tag.

    Yes, this has been logged into the bug system. Over 4 years ago:
    [https://bugzilla.mozilla.org/show_bug.cgi?id=471015 471015 – Fieldsets are truncated to one page when printed / print-previewed]
    If you can contribute to the development, please feel free to pitch in. Otherwise, it's generally not helpful to add comments to bugs, but you can register on the site and "vote" for them to be fixed. See:
    * [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html Bugzilla Etiquette]
    * [https://bugzilla.mozilla.org/page.cgi?id=voting.html Voting]
    The fieldset tag with a legend makes for a nice visual presentation, but I wonder whether it has any other practical benefit? If it's semantically important, perhaps that would increase the priority for fixing it.

Maybe you are looking for

  • Excise invoice and Pricing

    Hi Friends I have one Senerio i have given 100 delivery 10days back price got increased today but i would like to send the material on old rate only how i can proceed.All Commercial invoice and excise invoice would be old rate only Please guide me re

  • Problems getting previews in Bridge to reflect changes made in Camera Raw

    I have updated both my photoshop and camera raw to the most recent. I have purged cache and still when I make changes to an image in camera raw it is not reflected in the previews in Bridge. Anyone else having this issue? or perhaps know how to fix i

  • Regarding SLA reports

    I have a SLA report and i want to have SLA report based on certain time limits. Consider the situation Report is showing user to prompt the time limit say 10-07-2010 to 12-07-2010.so that user can get the sla report within the time.In the data object

  • How do I get wifi to work after updating to ios 8.2?

    I have a iphone 5:  A 1429. wifi was working great with ios 8.1.3. I updated to ios 8.2.... and it says wifi is connected, but internet doesn't work for more than 2 minutes. I can turn it on and off airplane, and I can have up to 2 more minutes of in

  • Multiple line printing in SAPscript

    Hello Friends, I have problem in printing multiple lines on sap script. I have created a window. and i have creted a text eliment 'MULTIPLE it. Under this Text eliment i have code as below. /E    MULTIPLE AS  & internalTABLE-FIELD& I have fetched dat