Printing a text area?

anyone know how to do this?

Basically i have a text area contianing some data which is retrieved from an access database. Those data are display inside the text area. Now, what I want to do is print the text area contianing those data. Anyone has any suggestion.

Similar Messages

  • How can i make the results of dos command print to text area in a gui????

    I need to get the results from a command line application to print in a text area located in a gui... i have the following code written, which should run the command... if run from a dos window, the command prints the list of what's in a jar file to the screen.... i want that info that is printed to go in a text area which i have named textBox which is global to the program.. i know textBox.appends() is what i should use but how do i retrieve the info from the dos window to put in the appends method?
    The code is below for the method..
    Thanks,
    DH
         /*     Runs the DOS Command for listing a JAR File     */
         public void jarList ( ) // Needs To Be Fixed!!
              listFieldText = listField.getText();
              String command;      
              command = "jar tf " + listFieldText;
              System.out.println(command);
              Runtime rt = Runtime.getRuntime();
              try
                   Process child = rt.exec(command);
                   child.waitFor();
                   System.out.println("Process exit code is: " + child.exitValue());
              catch(IOException e)
                   System.err.println("IOException starting process!");
              catch(InterruptedException e)
                   System.err.println("Interrupted waiting for process!");
    }

    Replace child.waitFor()with:          BufferedReader br=new BufferedReader(new InputStreamReader(child.getInputStream()));
              String s="";
                    while((s=br.readLine())!=null) {
                        textbox.append(s);
                    }Mark

  • How to Print the text in a Text Area Component

    It is really amazing how much information is out there for
    Flex but you can never find what you are looking for :-(
    I am trying to print the contents of a text area component.
    If I just do addPage(Component Name) it works but it prints the
    whole conponent including the scrollbars, on the page. I just want
    the text. If I try to put the component name.text in addPage(), I
    get a "1067: Implicit coercion of a value of type String to an
    unrelated type flash.display:Sprite." error. Does anyone know how
    to do this?
    Any help would be greatly appreciated.
    Dave

    Is there anyone who can help with this? I really need a way
    to print the results.
    Thanks.
    Dave

  • I need to print the contents of a text area

    i am trying to create an editor and one of the options is print, so i want to print the contents of the text area. can someone help

    See Printing the Contents of a Component in http://java.sun.com/docs/books/tutorial/2d/printing/index.html

  • Printing text in text area in so10(standard text)

    Dear all,
    I need to print a text in text area.i mean i need a box in which i can fill text in standard text (tcode-so10).Using box command we will be doing in script.
    But is there any possibility that i can solve the issue in so10 itself as i am generating offer letter in pb60 it takes my standard text there itself.So is there any solution for this issue?
    This issue is very urgent.
    Thank you,
    bhavani.

    Hi
    KEEP a BREAK-POINT and debug the internal table lines how it is coming
    some overlap must be happening ..check.
    Also check the code where you are getting this text into internal table.
    1) One way to debug smartform is to debug the Function Module of that smartforms.
    If you want to debug particular smartform node that the solution would be,
    insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
    So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    2) SFTRACE can be used for debugging SMARTFORMS.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Reward points for useful Answers
    Regards
    Anji

  • Print problems only pictures are print not text

    Macbook air  with caonon mx870.
    fonts (text)  are not printing anymore only pictures ?

    Hello there, marcvdw.
    The following Knowledge Base article offers up some great steps for troubleshooting printer issues:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    USB printers and Bonjour-enabled network printers
    Follow these steps until the issue is addressed:
    Make sure that the printer is powered on, has ink / toner, and that there are no alerts on the printer’s control panel. Note: If you cannot clear an alert on the printer's control panel, stop here and check the printer's documentation or contact the manufacturer for support.
    Ensure the printer is properly connected to a USB port on the Mac or AirPort base station / Time Capsule. If the printer is a network-capable printer, make sure that it is properly connected to your home network.
    Use Software Update to find and install the latest available updates. If an update is installed, see if the issue persists.
    Open the Print & Scan pane or Print & Fax (Snow Leopard) pane in System Preferences.
    Delete the affected printer, then add the printer again.
    If the issue persists, try these additional steps:
    Reset the printing system, then add the printer again.
    If the issue still persists, reset the printing system again.  Download and install your printer's drivers. Then, add the printer again.
    Contact the printer vendor or visit their website for further assistance.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Print Preview for Text Area in Web UI

    Hi,
    The notes section has text area in WEB UI. After typing in the text with more than 10 lines, and directly going to browser's print preview is not showing all the text entered. Instead it shows only 5 lines of text. But my client's requirement is to see all the text and take print out. I tried chaning the CSS of THTMLB_STYLES ( thtmlb_stand.css) with the below statement, but it didnt work.
    <style>
       @media print {
          content {
             overflow: visible;
    </style>
    Please suggest a solution.
    Thanks
    Manassha

    Hi ,
    Can you please elaborate on this.
    I have tried doing what you said but didnt face any issue....
    Regards,
    Ravikanth

  • Print table and text area

    Hi,
    I use JFrame to get table at the top and text area at the bottom. How can I code a program to print them? (I use Jtable for data and Jtext for notes.
    Any one can help me please?
    Thank first.

    http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-print.html

  • Printing problem; pages are junk text on paper seems to be all sites

    Content displays normally but when printed the text appears on paper as junk text and mixed characters. This has occurred with Earthlink home page, Bank of America and Wells Fargo online banking and even the Firefox 4 Beta 12 feedback page. I only have one printer so I can't say that it pertains to all printers or drivers.

    Possibly:
    :Top of Firefox window non-responsive, toolbars non responsive -- also see [http://kb.mozillazine.org/Problematic_extensions Problematic extensions]
    *caused by Yahoo Toolbar -- https://support.mozilla.com/questions/890908
    *caused by Babylon Toolbar -- https://support.mozilla.com/questions/890670
    You might also run into recent problems with Adblock Plus filters involving at least GMail inbox and the need to update filters. [/questions/896267]

  • Print Change Text in PO

    Hi All,
             I have replaced standard script(MEDRUCK) with Zsmart form for PO printing. when user change in any line of PO, like he have changed quantity. for this change a text message as **PO quantity changed** print in standard script. Now I want print this text message in my smart form . I know this is the message field T166T-CHTXT but i cant find any relation between this text messege and PO line item. So plz tell me how can i print it my smart form. I am sending u the programe where i have put my smart form.
      INCLUDE FM06PE02                                                   *
    form entry_neu using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
    ***to get the data not given by the above function module
    ***as, on some std conditions some data may be deleted by the same.
      SELECT * FROM EKPO INTO TABLE l_doc-XEKPO
               WHERE EBELN EQ l_doc-XEKKO-EBELN AND
                     LOEKZ NE 'L'.
      IF l_doc-XTKOMV IS INITIAL.
        SELECT * FROM KONV INTO TABLE l_doc-XTKOMV
                 WHERE KNUMV EQ l_doc-XEKKO-KNUMV.
      ENDIF.
       call function 'ME_PRINT_PO'
          exporting
               ix_nast        = l_nast
               ix_druvo       = l_druvo
               doc            = l_doc
               ix_screen      = ent_screen
               ix_from_memory = l_from_memory
               ix_toa_dara    = toa_dara
               ix_arc_params  = arc_params
               ix_fonam       = tnapr-fonam          "HW 214570
          importing
               ex_retco       = ent_retco.
      data: l_komk type komk occurs 0 with header line.
      DATA: lf_fm_name            TYPE rs38l_fnam.
      TYPES: BEGIN OF TP_RECORD,
              EBELP TYPE EKPO-EBELP,
              KNUMH TYPE KONP-KNUMH,
              END OF TP_RECORD.
      data: CD_record type TP_RECORD OCCURS 0 WITH HEADER LINE.
      TYPES: BEGIN OF TP_TAX,
             EBELP TYPE EKPO-EBELP,
             KSCHL TYPE KONP-KSCHL,
             KBETR TYPE KONP-KBETR,
             KONWA TYPE KONP-KONWA,
             VTEXT type T685T-VTEXT,
             END OF TP_TAX.
      DATA: TAB_TAX TYPE TP_TAX OCCURS 0 WITH HEADER LINE.
      data: wa_ekpo  type ekpo,
            wa_komv  type komv,
            wa_pekpo type pekpo.
      DATA: T_ITEM TYPE STANDARD TABLE OF ZMM_PO_ITEM WITH HEADER LINE.
      data: l_VAKEY type KONH-VAKEY,
            l_KNUMH type KONH-KNUMH.
      DATA: ls_control_param      TYPE ssfctrlop.
      DATA: ls_composer_param     TYPE ssfcompop.
      DATA: ls_recipient          TYPE swotobjid.
      DATA: ls_sender             TYPE swotobjid.
      DATA: lf_formname           TYPE tdsfname.
      DATA: ls_addr_key           LIKE addr_key.
      DATA: ls_job_info           TYPE ssfcrescl.
      DATA: ls_arc_params         TYPE ARC_PARAMS.
      DATA: ls_MAIL_APPL_OBJ      TYPE swotobjid.
      DATA: INPUT                 TYPE SSFCOMPIN.
      DATA: RESULT                TYPE SSFCRESOP.
      DATA: SECESS                TYPE KONP-KBETR .
      loop at l_doc-XEKPO into wa_ekpo.
        refresh CD_RECORD.
    *****GET TAXES FOR MATERIAL *************************
        if wa_ekpo-matnr is not initial.
          select knumh from A363 into corresponding fields of CD_RECORD
                 WHERE KAPPL = 'TX' AND
                       WERKS = WA_EKPO-WERKS     AND
                       LIFNR = l_doc-XEKKO-LIFNR AND
                       MATNR = WA_EKPO-MATNR     AND
                       DATBI GE l_doc-XEKKO-BEDAT.
            CD_RECORD-EBELP = wa_ekpo-EBELP.
            append CD_RECORD.
          endselect.
          if CD_RECORD[] is not initial.
            SELECT KSCHL KBETR KONWA FROM KONP INTO CORRESPONDING FIELDS OF TAB_TAX
                   FOR ALL ENTRIES IN CD_RECORD
                   WHERE KNUMH    =  CD_RECORD-KNUMH AND
                         LOEVM_KO NE 'X'.
              TAB_TAX-EBELP = wa_ekpo-EBELP.
              if TAB_TAX-KONWA = '%'.
                TAB_TAX-KBETR = TAB_TAX-KBETR / 10.
              endif.
              SELECT SINGLE VTEXT FROM T685T INTO TAB_TAX-VTEXT
                     WHERE SPRAS = 'EN' AND
                           KAPPL = 'TX' AND
                           KSCHL = TAB_TAX-KSCHL.
              APPEND TAB_TAX.
            ENDSELECT.
          endif.
        endif.
    ****GET TAXES FOR MATERIAL GROUP************************
        refresh CD_RECORD.
        if wa_ekpo-matkl is not initial.
          if wa_ekpo-knttp eq 'K' .
          select knumh from A700 into corresponding fields of CD_RECORD
                 WHERE KAPPL = 'TX' AND
                       WERKS = WA_EKPO-WERKS AND
                       MATKL = WA_EKPO-MATKL AND
                       DATBI GE l_doc-XEKKO-BEDAT AND
                       LIFNR EQ L_DOC-XEKKO-LIFNR .
            CD_RECORD-EBELP = wa_ekpo-EBELP.
            append CD_RECORD.
          endselect.
          if CD_RECORD[] is not initial.
            SELECT KSCHL KBETR KONWA FROM KONP INTO CORRESPONDING FIELDS OF TAB_TAX
                   FOR ALL ENTRIES IN CD_RECORD
                   WHERE KNUMH = CD_RECORD-KNUMH AND
                         LOEVM_KO NE 'X'.
              TAB_TAX-EBELP = wa_ekpo-EBELP.
              if TAB_TAX-KONWA = '%'.
                TAB_TAX-KBETR = TAB_TAX-KBETR / 10.
              endif.
              SELECT SINGLE VTEXT FROM T685T INTO TAB_TAX-VTEXT
                     WHERE SPRAS = 'EN' AND
                           KAPPL = 'TX' AND
                           KSCHL = TAB_TAX-KSCHL.
              APPEND TAB_TAX.
            ENDSELECT.
          endif.
        endif.
        endif.
      endloop.
    ******Fill T_ITEM***************
      loop at l_doc-XEKPO into wa_ekpo.
        CLEAR T_ITEM.
        MOVE-CORRESPONDING wa_ekpo TO T_ITEM.
        MOVE WA_EKPO-EMATN TO T_ITEM-MATNR.
    ********Field NETPR (net price) used for Gross price per piece**
       SELECT SINGLE KBETR FROM KONV
              INTO   T_ITEM-NETPR
                     WHERE KNUMV EQ l_doc-XEKKO-KNUMV AND
                           KPOSN EQ wa_ekpo-EBELP     AND
                           KSCHL EQ 'P000'.
        LOOP AT l_doc-xtkomv INTO WA_KOMV
                where KPOSN = T_ITEM-EBELP AND
                      ( ( KSCHL = 'P000' AND KBETR IS NOT INITIAL ) OR
                        ( KSCHL = 'P001' AND KBETR IS NOT INITIAL ) OR
                        ( KSCHL = 'PB00' AND KBETR IS NOT INITIAL ) OR
                        ( KSCHL = 'PBXX' AND KBETR IS NOT INITIAL ) ).
          MOVE WA_KOMV-KBETR TO T_ITEM-NETPR.
        ENDLOOP.
    *******Get Discount************************
        LOOP AT l_doc-xtkomv INTO WA_KOMV
                where KPOSN = T_ITEM-EBELP AND
                      ( ( KSCHL = 'R000' AND KBETR IS NOT INITIAL ) OR
                        ( KSCHL = 'R001' AND KBETR IS NOT INITIAL ) OR
                        ( KSCHL = 'R002' AND KBETR IS NOT INITIAL ) ).
          T_ITEM-C_DSCNT = WA_KOMV-WAERS.
          T_ITEM-DSCNT   = WA_KOMV-KBETR.
          IF T_ITEM-C_DSCNT NE 'INR'.
            T_ITEM-DSCNT   = T_ITEM-DSCNT / 10.
          ENDIF.
        ENDLOOP.
    *******Get Taxes**************************
        LOOP AT TAB_TAX
                WHERE EBELP = T_ITEM-EBELP.
          CASE TAB_TAX-KSCHL.
            WHEN 'JMOP' OR 'JMOQ' OR 'JSRT'.
              IF TAB_TAX-KBETR IS NOT INITIAL.
                T_ITEM-EXCSE   = TAB_TAX-KBETR.
                T_ITEM-C_EXCSE = TAB_TAX-KONWA.
                T_ITEM-KSCHL   = TAB_TAX-KSCHL .
              ENDIF.
            WHEN 'JEC1' OR 'JEC3'.
              IF TAB_TAX-KBETR IS NOT INITIAL.
                T_ITEM-CESS   = TAB_TAX-KBETR.
                T_ITEM-C_CESS = TAB_TAX-KONWA.
                T_ITEM-KSCHL   = TAB_TAX-KSCHL .
              ENDIF.
            WHEN 'JVRD' OR 'JIPC'.
              IF TAB_TAX-KBETR IS NOT INITIAL.
                T_ITEM-VAT_CST   = TAB_TAX-KBETR.
                T_ITEM-C_VAT_CST = TAB_TAX-KONWA.
                T_ITEM-KSCHL   = TAB_TAX-KSCHL .
              ENDIF.
            WHEN 'JES1' .
              IF TAB_TAX-KBETR IS NOT INITIAL.
                SECESS          = TAB_TAX-KBETR.
                T_ITEM-C_SECESS = TAB_TAX-KONWA.
                T_ITEM-KSCHL    = TAB_TAX-KSCHL .
              ENDIF.
          ENDCASE.
        ENDLOOP.
    ********Get Delivery Date*****************
        read table l_doc-XPEKPO into wa_pekpo with key ebelp = WA_EKPO-EBELP.
        T_ITEM-EINDT = WA_PEKPO-EINDT.
        if l_doc-XEKKO-BSTYP = 'L'.
    Get Price Per Unit For Scheduling agreement********
          concatenate T_ITEM-EBELN T_ITEM-EBELP INTO l_VAKEY.
          SELECT SINGLE KNUMH FROM KONH INTO L_KNUMH
                 WHERE  VAKEY = l_VAKEY.
          SELECT SINGLE KBETR FROM KONP INTO T_ITEM-NETPR
                 WHERE  KNUMH = L_KNUMH AND
                        KSCHL = 'P000'.
    Get Discount For Scheduling agreement  ********
          SELECT SINGLE KBETR KONWA FROM KONP INTO (T_ITEM-DSCNT,T_ITEM-C_DSCNT)
                 WHERE  KNUMH = L_KNUMH AND
                        KSCHL = 'R000'.
          if sy-subrc <> 0.
            SELECT SINGLE KBETR KONWA FROM KONP INTO (T_ITEM-DSCNT,T_ITEM-C_DSCNT)
                   WHERE  KNUMH = L_KNUMH AND
                          KSCHL = 'R001'.
            if sy-subrc <> 0.
              SELECT SINGLE KBETR KONWA FROM KONP INTO (T_ITEM-DSCNT,T_ITEM-C_DSCNT)
                     WHERE  KNUMH = L_KNUMH AND
                            KSCHL = 'R002'.
            endif.
          endif.
          if T_ITEM-DSCNT is not initial.
            T_ITEM-DSCNT = T_ITEM-DSCNT / 10.
          endif.
        endif.
        APPEND T_ITEM.
      endloop.
      IF TNAPR-SFORM IS NOT INITIAL.
    SmartForm from customizing table TNAPR
        lf_formname = tnapr-sform.
    determine smartform function module for PO
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
             EXPORTING  formname           = lf_formname
                    variant            = ' '
                    direct_call        = ' '
             IMPORTING  fm_name            = lf_fm_name
             EXCEPTIONS no_form            = 1
                        no_function_module = 2
                        OTHERS             = 3.
       IF sy-subrc <> 0.
      error handling
         cf_retcode = sy-subrc.
         PERFORM protocol_update.
       ENDIF.
    ENDIF.
        CALL FUNCTION 'SSF_CREATE_COMPOSER_INPUT'
          EXPORTING
            ARCHIVE_PARAMETERS = ls_arc_params
            USER_SETTINGS      = 'X'
            MAIL_SENDER        = ls_sender
            MAIL_RECIPIENT     = ls_recipient
            MAIL_APPL_OBJ      = ls_MAIL_APPL_OBJ
            OUTPUT_OPTIONS     = ls_composer_param
            CONTROL_PARAMETERS = ls_control_param
          IMPORTING
            INPUT              = input.
        CALL FUNCTION 'SSFCOMP_OPEN'
          EXPORTING
            INPUT  = input
          IMPORTING
            RESULT = RESULT
          EXCEPTIONS
            ERROR  = 1
            OTHERS = 2.
        IF SY-SUBRC EQ 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
          ls_control_param-no_open  = 'X'.
          ls_control_param-no_close = 'X'.
          CALL FUNCTION lf_fm_name
            EXPORTING
           ARCHIVE_INDEX              =
           ARCHIVE_INDEX_TAB          =
              ARCHIVE_PARAMETERS         = ls_arc_params
              CONTROL_PARAMETERS         = ls_control_param
              MAIL_APPL_OBJ              = ls_MAIL_APPL_OBJ
              MAIL_RECIPIENT             = ls_recipient
              MAIL_SENDER                = ls_sender
              OUTPUT_OPTIONS             = ls_composer_param
              USER_SETTINGS              = 'X'
              ZXEKKO                     = l_doc-XEKKO
              ZXPEKKO                    = l_doc-XPEKKO
              SECESS                     = SECESS
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
            TABLES
              L_XEKPO                    = l_doc-XEKPO
              L_XEKPA                    = l_doc-XEKPA
              L_XPEKPO                   = l_doc-XPEKPO
              L_XEKET                    = l_doc-XEKET
              L_XTKOMV                   = l_doc-xtkomv
              L_XEKKN                    = l_doc-Xekkn
              L_XEKEK                    = l_doc-Xekek
              L_XKOMK                    = l_komk
              T_ITEM                     = T_ITEM
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
          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 'SSFCOMP_CLOSE'
            IMPORTING
              RESULT        =
            EXCEPTIONS
              ERROR         = 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.
        ENDIF.
      ELSE.
        call function 'ME_PRINT_PO'
          EXPORTING
            ix_nast        = l_nast
            ix_druvo       = l_druvo
            doc            = l_doc
            ix_screen      = ent_screen
            ix_from_memory = l_from_memory
            ix_toa_dara    = toa_dara
            ix_arc_params  = arc_params
            ix_fonam       = tnapr-fonam                        "HW 214570
          IMPORTING
            ex_retco       = ent_retco.
      ENDIF.
    endform.                    "entry_neu
    *eject
    Umlagerungsbestellung,  Hinweis 670912                               *
    form entry_neu_sto using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print,
            F_STO.                                              "670912
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      F_STO = 'X'.                                              "670912
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
        EXPORTING
          ix_nast        = l_nast
          ix_druvo       = l_druvo
          doc            = l_doc
          ix_screen      = ent_screen
          ix_from_memory = l_from_memory
          ix_toa_dara    = toa_dara
          ix_arc_params  = arc_params
          ix_fonam       = tnapr-fonam                          "HW 214570
          ix_sto         = F_STO                                "670912
        IMPORTING
          ex_retco       = ent_retco.
    endform.                    "entry_neu_sto
    *eject
    Mahnung
    form entry_mahn using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      l_druvo = '3'.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
        EXPORTING
          ix_nast        = l_nast
          ix_druvo       = l_druvo
          doc            = l_doc
          ix_screen      = ent_screen
          ix_from_memory = l_from_memory
          ix_toa_dara    = toa_dara
          ix_arc_params  = arc_params
          ix_fonam       = tnapr-fonam                          "HW 214570
        IMPORTING
          ex_retco       = ent_retco.
    endform.                    "entry_mahn
    *eject
    Auftragsbestätigungsmahnung
    form entry_aufb using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      l_druvo = '7'.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
        EXPORTING
          ix_nast        = l_nast
          ix_druvo       = l_druvo
          doc            = l_doc
          ix_screen      = ent_screen
          ix_from_memory = l_from_memory
          ix_toa_dara    = toa_dara
          ix_arc_params  = arc_params
          ix_fonam       = tnapr-fonam                          "HW 214570
        IMPORTING
          ex_retco       = ent_retco.
    endform.                    "entry_aufb
    *eject
    Lieferabrufdruck für Formular MEDRUCK mit Fortschrittszahlen
    form entry_lphe using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_xfz,
            l_doc   type meein_purchase_doc_print.
      data: l_komk type komk occurs 0 with header line.
      DATA: lf_fm_name            TYPE rs38l_fnam.
      DATA: T_EKET      TYPE TABLE OF EKET WITH HEADER LINE,
            T_EKET_NEW  TYPE TABLE OF EKET WITH HEADER LINE.
      DATA: WA_EKET     TYPE EKET,
            WA_EKET_NEW TYPE EKET.
      DATA: L_DATE    TYPE RM06B-EEIND,
            MAX_ABRUF TYPE EKEK-ABRUF.
      DATA: T_DEL_SCH TYPE TABLE OF ZSTR_DEL_SCH WITH HEADER LINE.
      DATA: WA_EKPO   TYPE EKPO,
            WA_EKEK   TYPE EKEK.
      DATA: TEMP_DATE       LIKE SY-DATUM,
            TEMP_MONTH      TYPE SPMON,
            THIS_MONTH      TYPE SPMON,
            NEXT_MONTH      TYPE SPMON,
            NEXT_NEXT_MONTH TYPE SPMON,
            L_DAY(2)        TYPE N.
      DATA: QTY_TEMP TYPE I.
      DATA: MDPAX TYPE MDPA,
            MDPMX TYPE TABLE OF MDPM WITH HEADER LINE,
            MDSBX TYPE TABLE OF MDSB WITH HEADER LINE.
      DATA: lf_formname           TYPE tdsfname.
      clear ent_retco.
      l_druvo = '9'.
      l_xfz = 'X'.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
    call function 'ME_PRINT_PO'
          exporting
               ix_nast        = l_nast
               ix_druvo       = l_druvo
               doc            = l_doc
               ix_xfz         = l_xfz
               ix_screen      = ent_screen
               ix_from_memory = l_from_memory
               ix_toa_dara    = toa_dara
               ix_arc_params  = arc_params
               ix_fonam       = tnapr-fonam          "HW 214570
          importing
               ex_retco       = ent_retco.
    *T_EKET[] = l_doc-XEKET[].
      LOOP AT l_doc-XEKET INTO WA_EKET.
        CLEAR: WA_EKET_NEW,
               T_EKET_NEW.
        CASE WA_EKET-LPEIN.
          WHEN '2'.
            T_EKET_NEW = WA_EKET.
            WA_EKET_NEW = WA_EKET.
            T_EKET_NEW-MENGE = WA_EKET-MENGE DIV 2.
           QTY_TEMP = WA_EKET-MENGE DIV 2.
           T_EKET_NEW-MENGE =  QTY_TEMP.
            CALL FUNCTION 'COS6_QUANTITY_ROUND'
              EXPORTING
                I_QUANTITY             = T_EKET_NEW-MENGE
                I_UNIT                 = 'EA'
              IMPORTING
                E_QUANTITY             = T_EKET_NEW-MENGE
            EXCEPTIONS
              UNIT_NOT_DEFINED       = 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.
            APPEND T_EKET_NEW.
            WRITE WA_EKET-EINDT TO L_DATE USING EDIT MASK '__.__.____'.
            CALL FUNCTION 'DATE_IN_FUTURE'
              EXPORTING
                ANZAHL_TAGE                   = '6'
                IMPORT_DATUM                  = L_DATE
              IMPORTING
              EXPORT_DATUM_EXT_FORMAT       = WA_EKET_NEW-EINDT
                EXPORT_DATUM_INT_FORMAT       = WA_EKET_NEW-EINDT
            WA_EKET_NEW-MENGE = WA_EKET-MENGE - T_EKET_NEW-MENGE.
            APPEND WA_EKET_NEW TO T_EKET_NEW.
          WHEN '3'.
            T_EKET_NEW = WA_EKET.
            WA_EKET_NEW = WA_EKET.
            T_EKET_NEW-MENGE = WA_EKET-MENGE DIV 2.
            APPEND T_EKET_NEW.
            CALL FUNCTION 'MM_ARRANG_GET_END_OF_MONTH'
              EXPORTING
                I_DATUM = WA_EKET-EINDT
              IMPORTING
                E_DATUM = WA_EKET_NEW-EINDT.
            WA_EKET_NEW-MENGE = WA_EKET-MENGE - T_EKET_NEW-MENGE.
            APPEND WA_EKET_NEW TO T_EKET_NEW.
          WHEN OTHERS.
            APPEND WA_EKET TO T_EKET_NEW.
        ENDCASE.
      ENDLOOP.
      THIS_MONTH = SY-DATUM+(6).
      CALL FUNCTION 'HR_BR_ADD_MONTH_TO_DATE'
        EXPORTING
          DMM_DATIN       = SY-DATUM
          DMM_COUNT       = '1'
          DMM_OPER        = '+'
          DMM_POS         = '1'
        IMPORTING
          DMM_DAOUT       = TEMP_DATE
    EXCEPTIONS
      UNKNOWN         = 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.
      NEXT_MONTH = TEMP_DATE+(6).
      CLEAR TEMP_DATE.
      CALL FUNCTION 'HR_BR_ADD_MONTH_TO_DATE'
        EXPORTING
          DMM_DATIN       = SY-DATUM
          DMM_COUNT       = '2'
          DMM_OPER        = '+'
          DMM_POS         = '1'
        IMPORTING
          DMM_DAOUT       = TEMP_DATE
    EXCEPTIONS
      UNKNOWN         = 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.
      NEXT_NEXT_MONTH = TEMP_DATE+(6).
      LOOP AT l_doc-XEKPO INTO WA_EKPO.
        CLEAR: T_DEL_SCH,
               WA_EKEK.
        MOVE-CORRESPONDING WA_EKPO TO T_DEL_SCH.
        CLEAR MAX_ABRUF.
        LOOP AT l_doc-Xekek INTO WA_EKEK.
          IF WA_EKEK-ABRUF GT MAX_ABRUF.
            MAX_ABRUF = WA_EKEK-ABRUF.
          ENDIF.
        ENDLOOP.
        CLEAR WA_EKEK.
        READ TABLE l_doc-Xekek INTO WA_EKEK
             WITH KEY EBELN = WA_EKPO-EBELN
                      EBELP = WA_EKPO-EBELP
                      ABRUF = MAX_ABRUF.
        T_DEL_SCH-LFNKD = WA_EKEK-LFNKD.
        LOOP AT T_EKET_NEW
             WHERE EBELN = WA_EKPO-EBELN AND
                   EBELP = WA_EKPO-EBELP.
    ****GET COMPONENTS***********************
          REFRESH: mdpmx, mdsbx.
          CLEAR: mdpmx, mdsbx.
          on change of t_eket_new-rsnum.
            mdpax-rsnum = t_eket_new-rsnum.
            mdpax-matnr = wa_ekpo-matnr.
            mdpax-pwwrk = wa_ekpo-werks.
            CALL FUNCTION 'MD_LESEN_KOMPONENTEN'
              EXPORTING
                emdpa = mdpax
              IMPORTING
                imdpa = mdpax
              TABLES
                mdpmx = mdpmx
                mdsbx = mdsbx.
          endon.
          TEMP_MONTH = T_EKET_NEW-EINDT+(6).
          CASE TEMP_MONTH.
            WHEN THIS_MONTH.
              L_DAY = T_EKET_NEW-EINDT+6(2).
              IF L_DAY BETWEEN '01' AND '07'.
                T_DEL_SCH-QTYW1 = T_DEL_SCH-QTYW1 + T_EKET_NEW-MENGE.
              ELSEIF L_DAY BETWEEN '08' AND '14'.
                T_DEL_SCH-QTYW2 = T_DEL_SCH-QTYW2 + T_EKET_NEW-MENGE.
              ELSEIF L_DAY BETWEEN '15' AND '22'.
                T_DEL_SCH-QTYW3 = T_DEL_SCH-QTYW3 + T_EKET_NEW-MENGE.
              ELSE.
                T_DEL_SCH-QTYW4 = T_DEL_SCH-QTYW4 + T_EKET_NEW-MENGE.
              ENDIF.
              T_DEL_SCH-C_QTYM1 = T_DEL_SCH-C_QTYM1 + mdpmx-erfmg.
            WHEN NEXT_MONTH.
              T_DEL_SCH-QTYM2 = T_DEL_SCH-QTYM2 + T_EKET_NEW-MENGE.
              T_DEL_SCH-C_QTYM2 = T_DEL_SCH-C_QTYM2 + mdpmx-erfmg.
            WHEN NEXT_NEXT_MONTH.
              T_DEL_SCH-QTYM3 = T_DEL_SCH-QTYM3 + T_EKET_NEW-MENGE.
              T_DEL_SCH-C_QTYM3 = T_DEL_SCH-C_QTYM3 + mdpmx-erfmg.
          ENDCASE.
          if mdpmx-matnr is not initial.
            T_DEL_SCH-C_MATNR = mdpmx-matnr.
            T_DEL_SCH-C_TXZ01 = mdpmx-maktx.
            T_DEL_SCH-PSTYP = WA_EKPO-PSTYP.
          endif.
        ENDLOOP.
        T_DEL_SCH-QTYTO = T_DEL_SCH-QTYW1 + T_DEL_SCH-QTYW2 + T_DEL_SCH-QTYW3 + T_DEL_SCH-QTYW4.
        APPEND T_DEL_SCH.
        CLEAR T_DEL_SCH.
      ENDLOOP.
    SmartForm from customizing table TNAPR
      lf_formname = tnapr-sform.
    determine smartform function module for PO
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
           EXPORTING  formname           = lf_formname
                    variant            = ' '
                    direct_call        = ' '
           IMPORTING  fm_name            = lf_fm_name
           EXCEPTIONS no_form            = 1
                      no_function_module = 2
                      OTHERS             = 3.
       IF sy-subrc <> 0.
      error handling
         cf_retcode = sy-subrc.
         PERFORM protocol_update.
       ENDIF.
    ENDIF.
      CALL FUNCTION lf_fm_name
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
         USER_SETTINGS              = space
          ZXEKKO                     = l_doc-XEKKO
          ZXPEKKO                    = l_doc-XPEKKO
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          L_XEKPO                    = l_doc-XEKPO
          L_XEKPA                    = l_doc-XEKPA
          L_XPEKPO                   = l_doc-XPEKPO
          L_XEKET                    = T_EKET_NEW
          L_XTKOMV                   = l_doc-xtkomv
          L_XEKKN                    = l_doc-Xekkn
          L_XEKEK                    = l_doc-Xekek
          T_DEL_SCH                  = T_DEL_SCH
       EXCEPTIONS
         FORMATTING_ERROR           = 1
         INTERNAL_ERROR             = 2
         SEND_ERROR                 = 3
         USER_CANCELED              = 4
         OTHERS                     = 5
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
    *- nast-sndex wird als Kennzeichen für Probedruck verwendet
        IF l_nast-kappl  EQ 'EL'    AND ent_screen  IS INITIAL AND
           l_from_memory IS INITIAL AND l_nast-sndex IS INITIAL.
    missing environment for limiting update print dependend data
          IF sy-ucomm NE '9ANZ' AND sy-ucomm NE '9DPR'.
            PERFORM update_release TABLES l_doc-xekpo l_doc-xekek l_doc-xekeh
                                                USING  l_druvo l_nast-kschl.
          ENDIF.
        ENDIF.
      ENDIF.
    endform.                    "entry_lphe
    *eject
    ****SUBROUTINE COPIED FROM INCLUDE LMEDRUCKF1K BY jithendra 28.12.2006***
    *****to change release status of delivery schedule
          FORM update_release                                           *
    -->  t_xekpo                                                       *
    -->  t_xekek                                                       *
    -->  t_xekeh                                                       *
    -->  p_druvo                                                       *
    -->  p_kschl                                                       *
    FORM update_release TABLES t_xekpo STRUCTURE ekpo
                               t_xekek STRUCTURE ekek
                               t_xekeh STRUCTURE ekeh
                        USING  p_druvo
                               p_kschl.
      TABLES: t161m.
      CLEAR t161m.
      SELECT SINGLE druab INTO t161m-druab FROM t161m
                             WHERE kvewe = 'B'
                             AND   kappl = 'EL'
                             AND   druvo = p_druvo
                             AND   kschl = p_kschl.
      IF NOT sy-subrc = 0 OR NOT t161m-druab = 'X'.
        EXIT.
      ENDIF.
      DELETE t_xekek WHERE webrl EQ '1' OR webrl EQ '2'.
      CALL FUNCTION 'ME_UPDATE_FROM_PRINTING'
        TABLES
          i_ekek = t_xekek
          i_ekeh = t_xekeh
          i_ekpo = t_xekpo
        EXCEPTIONS
          OTHERS = 1.
    ENDFORM.                    "update_release
    Lieferabrufdruck für Formular MEDRUCK ohne Fortschrittszahlen
    form entry_lphe_cd using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      l_druvo = '9'.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
        EXPORTING
          ix_nast        = l_nast
          ix_druvo       = l_druvo
          doc            = l_doc
          ix_screen      = ent_screen
          ix_from_memory = l_from_memory
          ix_toa_dara    = toa_dara
          ix_arc_params  = arc_params
          ix_fonam       = tnapr-fonam                          "HW 214570
        IMPORTING
          ex_retco       = ent_retco.
    endform.                    "entry_lphe_cd
    *eject
    Feinabrufdruck für Formular MEDRUCK mit Fortschrittszahlen
    form entry_lpje using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_xfz,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      l_druvo = 'A'.
      l_xfz = 'X'.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
        EXPORTING
          ix_nast        = l_nast
          ix_druvo       = l_druvo
          doc            = l_doc
          ix_xfz         = l_xfz
          ix_screen      = ent_screen
          ix_from_memory = l_from_memory
          ix_toa_dara    = toa_dara
          ix_arc_params  = arc_params
          ix_fonam       = tnapr-fonam                          "HW 214570
        IMPORTING
          ex_retco       = ent_retco.
    endform.                    "entry_lpje
    *eject
    Feinabrufdruck für Formular MEDRUCK ohne Fortschrittszahlen
    form entry_lpje_cd using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      l_druvo = 'A'.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
        EXPORTING
          ix_nast        = l_nast
          ix_druvo       = l_druvo
          doc            = l_doc
          ix_screen      = ent_screen
          ix_from_memory = l_from_memory
          ix_toa_dara    = toa_dara
          ix_arc_params  = arc_params
          ix_fonam       = tnapr-fonam                          "HW 214570
        IMPORTING
          ex_retco       = ent_retco.
    endform.                    "entry_lpje_cd
    *eject
      INCLUDE FM06PE02                                                   *
    form entry_neu_matrix using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
        EXPORTING
          ix_nast        = l_nast
          ix_druvo       = l_druvo
          doc            = l_doc
          ix_screen      = ent_screen
          ix_from_memory = l_from_memory
          ix_mflag       = 'X'
          ix_toa_dara    = toa_dara
          ix_arc_params  = arc_params
          ix_fonam       = tnapr-fonam                          "HW 214570
        IMPORTING
          ex_retco       = ent_retco.
      data: l_komk type komk occurs 0 with header line.
      DATA: lf_fm_name            TYPE rs38l_fnam.
    endform.                    "entry_neu_matrix
    *eject
    Angebotsabsage
    form entry_absa using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      l_druvo = '4'.
      clear ent_retco.
      call function 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_dru

    Hi,
    Depending on whether you have a Sales order or Purchase order.
    If sales order -> then go to NACE -> Sales -> check your Zsmartform
    If Purchase order -> go to NACE -> under PO output -> find your Zsmartform.
    In both cases, after u find your smartform name, thru change log.
    At runtime read what are the header text changes  and pass it to the smartform.
    You can use FM read_txt for this.
    Hope this helps.

  • Print in text mode to detect escape sequences

    Hello,
    We have got an issu, on our .NET print program using Crystal 12 SP3. The issue has concequences on :
    - Barcode print on matrix printer
    - Barcode print on thermal printer
    - Other commands send to a FAX printer driver
    Using the SDK, the print driver receives print data in graphical print mode, but it has to be text mode for the printer driver to detect the correct escape sequences. The escapes sequences are used by the driver to switch the font or receive a command.
    Is there a way to force the print in text mode ?
    The same report printed from Crystal Reports 2008 SP 3 "works", but not from the .NET sdk.
    Here is a little example. We made a simple Report, containing 2 simple Text Objects :
    Code Barres $ [ /
    +$$;111;6;1;1;0;2 z +
    $$?0h0123456789$$?0/
    We redirected the print driver spool in a file. Here are the outputs :
    Printed from Crystal Report 2008 :
    [0;4 r+<[3;031w[3;032w[7s2CH
    x[1;2xF5-
    JÃ$Code Barres $ [ /
    J-$$$;111;6;1;1;0;2 z
    J$$$?0h0123456789$$?0/@[0;4 r
    Printed from .Net application using Crystal Report 2008 SDK :
    [0;4 r+<[3;031w[3;032w[7s2CH
    x
    JÅ$*'úø u20AC u20AC u20AC u20AC u20AC<|u201Au20ACu20ACu20ACu20ACu20ACu20ACu201A||u201Au20ACu20ACu20ACu20ACu20ACA@u201Aÿu20ACu20ACu20AC|u2019u20ACu20ACu20ACu20ACu20ACu20ACu2018r u20AC u20AC?ÿu20AC @u20AC @u20AC @u20AC @u20AC @u20AC @u20AC u20AC!u20AC u20AC u20AC u20AC u20AC!"ÿu20ACu20ACu20ACu20ACu20ACu20ACÿu20ACu20ACu20ACu20ACu20ACu20ACu20ACu20ACu20ACu20ACÿu20ACu20ACu20ACu20ACu20ACu20ACu20AC|u2019u20ACu20ACu20ACu20ACu20ACu20ACu2018ru20ACÁ! u20AC u20AC u20AC u20AC u20ACŽu201A u201A u0192ààu201A BBD8ÿð@@@`u20AC`u20AC0À
    J-*'7u201A u201A u0192ààu201A BBD8u201A u201A u0192ààu201A BBD8`àu2021u20ACu2021u201Eu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20AC`àu2021u20ACu2021u201Eu20ACø>A u20ACu20AC!u20ACAu20ACAu20ACA@Ã@<`àu2021u20ACu2021u201Eu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20AC`àu2021u20ACu2021u201Eu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20AC`àu2021u20ACu2021u201Eu20ACü @u20AC@u20AC@u20AC ø`àu2021u20ACu2021u201Eu20ACu20ACu20AC u20AC@u20AC@u20AC@ u20AC@@u20AC@u20ACu20AC!u20ACu20ACu20ACu20ACu20ACu20ACu20AC u20AC@u20ACu20ACu20ACu20ACu20AC
    J*'Tu201A u201A u0192ààu201A BBD8u201A u201A u0192ààu201A BBD8  u20AC 1u20AC Au20AC Au20ACu20ACü @u20AC@u20AC@u20AC ø@u20AC@u20ACÿu20ACu20ACu20ACu20ACu20ACu20ACÿu20ACu20ACu20ACü @u20AC@u20AC@u20AC øu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20ACu20ACu20AC u20AC@u20AC@u20AC@ u20AC@@u20AC@u20ACu20AC!u20ACu20AC u20AC@u20AC@u20ACu20AC@u20ACu20AC@u20ACu20AC!A#xu02C6<u20AC@u20AC@u20ACÿu20ACu20ACu20AC@Au20ACAu20ACAu20ACAu20ACAu0192|ø>A u20ACu20AC!u20ACAu20ACAu20ACA@Ã@<p@@@@@u20AC@8AÀNp>!A@u20ACu20AC@u20ACu20AC@u20ACu20AC@u20ACu20AC@u20ACu20AC!A>u20ACu20AC @u20AC@ u20AC@ u20AC@ u20AC@! Bu0152ðu201A u201A u0192ààu201A BBD8u201A u201A u0192ààu201A BBD8  u20AC 1u20AC Au20AC Au20ACu20ACü @u20AC@u20AC@u20AC ø`u20AC`u20AC0À@[0;4 r
    As you can see above, the characters contained in the report are sent "as this" in the print driver from Crystal Reports 2008. But the pixels represention of the characters are sent from the .Net SDK.

    Hello,
    thank you for your answer.
    I forgot to add the 2008 com+ API output, that is exactly the same as Crystal Report 2008.
    - From Crystal Reports 2008 : WORKS
    - From a program using the 2008 com+ Runtime API : WORKS
    - From a program using the 2008 .Net Runtime API : DON'T WORK
    You wrote that all the runtime print engine sends to the printer is essentially a picture. But It do send text using the com+ API.
    Should I understand : The .Net runtime print engine can't send text ?

  • Report Title and Text Area issue when exported to pdf using Viewer

    Hi there,
    We are using OracleBI Discoverer Version 10.1.2.55.26
    We have reports that displays Report title containing the following
    - Report Title
    - Runt Date and Time
    - Page No
    And text area which displays 'Last Page'
    Following properties are set at the worksheet level using page setup
    Report Title --> 'Print on every Page'
    Text Area --> 'Print on last page'
    The report when exported to PDF using Discoverer plus works fine and displays report title and text area as defeined.
    But when we try to export the same report to pdf from Discoverer viewer, it displays
    - Report title on first page only.
    - text area on all pages
    All our users accesses report using discoverer viewer so we cannot open discoverer plus to them.
    Is there a solution which will enable us to export the report in pdf using discoverer viewer and displays the same output as discoverer plus.
    Please let me know... If you have any questions then please feel free to ask.
    Thanks in advance for your help...
    Manish

    but when opened on other os x machines some text is colored differently than it should be
    Well, if typographic objects are colour managed, the colour appearance is dependent on the source ICC profile that describes the colourants in the typographic objects and the destination ICC profile that describes the colours the display is able to form and the RBC colourant combinations that will form those colours.
    In general, typographic objects should have special treatment, since the expectation is not that typographic objects should be colour managed, but that typographic objects should simple be set to the maximum density of dark. On a display, that is R=0 G=0 B=0 and on a seperations device (a lithographic press) that is C=0 M=0 Y=0 K=100.
    If for some reason typographic objects are colour managed, and if the ICC profiles for the displays are off by half a mile or more in relation to the actual state of the display system, then the colours will not be the same. On the other hand, if those displays are calibrated and characterized, then the colourants will be converted to form the same colours on the displays.
    /hh

  • How can I change a PDF document to have an enlarged text area and smaller margins?

    I've just been reading a long discussion initiated by a guy who wanted to recompose a PDF file to print in fewer pages. I'm not asking about that. I'm aware that Acrobat Pro 9 will not recompose the pages of a pdf for you; as someone said, it's not a word processing program. I want to copy a PDF to a new file with an enlarged text area and smaller margins, so I can read it more easily. My eyesight isn't so great.
    I'm trying to print a decision of the US Supreme Court, for my study. The problem is that these PDF files of such decisions are composed in 10-point type with generous margins, in folio-size pages smaller than 8 1/2 x 11". When you open PDF files of these decisions, you get extremely wide margins and relatively small type. Essentially, I'd like to re-rasterize the document so it prints on my 8 1/2 x 11" paper in a larger apparent type size, but in the same high resolution as the original. By the way, the decision I'm working on is almost 200 pages long, so I don't want to do this, obviously, in a page by page manner.  
    I guess I could do this in Photoshop, by blowing pages up and cropping them. Photoshop does a good job of eliminating the jaggies when you do this. But it would seem better to re-rasterize the pages from the PDF source file. So would any reader be kind enough to explain this process to me? (I'm fairly savvy in Photoshop, Illustrator, and computer printer concepts, but a complete newb in Acrobat.)

    If you just want this for printing, one thing you can easily do is crop all of the pages to remove the margins. For example, you can rop 2" off the left and right sides, and 1.5" off the top and bottom. Then print using a Page Scaling of "Fit to Printable Area".
    To crop in Acrobat 9, select: Document > Crop Pages
    be sure to select All for the Page Range.

  • How to print a text file with long lines?

    I am trying to print a text file which contains many long lines. I find that the long lines are truncated on the printouts. How do I wrap up these long lines? Could you give me some examples?
    Thank you very much!

    Here's an example. The "\n" makes anything after it go to the next line. I hope this helps. Look at the Private void getTable() section.
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class LabNine extends Frame implements ActionListener, WindowListener {
         private TextField txtInfo;
         private List lstInfo;
         private Button btnAddInfo;
         private BorderLayout borderlayout;
         private Connection databaseConnection;
         Statement statement;
         ResultSet resultSet;
    public LabNine( ) {
         super("Lab Nine");
         // addWindowListener to close application
         addWindowListener(this);
         // create layout
         borderlayout = new BorderLayout();
         setLayout(borderlayout);
         // create text field so the file input that is selected will be seen in here
         txtInfo = new TextField();
         txtInfo.setEnabled(false);
         Color color = new Color(255, 136, 183);
         txtInfo.setBackground(color);
         add(txtInfo, BorderLayout.NORTH);
         // create list so the file input can be populated in here
         lstInfo = new List();
         add(lstInfo, BorderLayout.CENTER);
         // create button to add selected input file in the text field
         btnAddInfo = new Button("Add Info");
         btnAddInfo.setBackground(Color.cyan);
         btnAddInfo.setFont(new Font("TimesRoman", Font.BOLD, 16));
         btnAddInfo.addActionListener( this );          
         add(btnAddInfo, BorderLayout.SOUTH);
         // set frame attributes
         setSize(450, 250);
         setResizable( false );
         show();
         // get the table/ get the query
         loadConnection();
         getTable();
    public void actionPerformed(java.awt.event.ActionEvent e) {
         // if add button is pushed then it will check to see if an item was selected.
         // if not, then an error message will be displayed else the selected item will be in the text box
         if ( e.getSource() == btnAddInfo ) {
              if ( lstInfo.getSelectedIndex() == -1 ) {
                   System.out.print( "You have not selected an item" );
              else {
                   txtInfo.setText(( lstInfo.getSelectedItem() ));
    private void getTable() {
         try {
              String query = "SELECT FIRST, LAST, EMAIL FROM Names";
              statement = databaseConnection.createStatement();
              resultSet = statement.executeQuery( query );
              while ( resultSet.next() ) {
                   lstInfo.add( resultSet.getString( "FIRST" ) + " " + resultSet.getString( "LAST") + " " +
                        resultSet.getString( "EMAIL" ) + "\n" );
              statement.close();     
         catch ( Exception e ) {
              System.err.println( e );
    private void loadConnection() {
         // define the data source for the driver
         String sourceURL = "jdbc:odbc:people";
         String username = "";
         String password = "";
         // load the driver
         try {
              // load the drive class
              Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
              // create a connection through the drivermanager
              databaseConnection = DriverManager.getConnection( sourceURL , username, password );     
         catch( ClassNotFoundException cnfe ) {
              System.err.println( cnfe );
         catch( SQLException sqle ) {
              System.err.println( sqle );
    public static void main(java.lang.String[] args) {
         LabNine aLabNine = new LabNine( );
    public void windowActivated(java.awt.event.WindowEvent e) {
    public void windowClosed(java.awt.event.WindowEvent e) {
         // closes the application
         System.exit( 0 );
    public void windowClosing(java.awt.event.WindowEvent e) {
         // closes the application
         System.exit( 0 );

  • How to print hardcode text in alv

    hi folks,
    i am working on a report to display data using ALV.
    i want to print some text and its correspodning value. (corresponding value is calculated value).
    i am able to print calculated value using fieldcatalog but unable to understand how can i print the text(which is a hardcoded text).
    ex:
    statement      value
    select*                   0
    using macros         1
    in my example select* and using macros are hard coded texts so can anyone tell me how can i print do this.
    thanks in advance.

    hi
    thanks for the reply.
    my report has got 14 stmnts and has 14 error message types.
    earlier it text was hardcoded and displayed correspondingly but now we want to remove write statements.
    so i am not able to understand how can i send the hardcoded text as the output is not in the desired way.
    i want to know how can i add into fieldcatalog record by record i.e. stmnt1, value-1 record
    stmnt2,value-2nd record and so on. as this would definitely solve my problem

Maybe you are looking for