How to print text bigger in size on whole screen on container?

Hi Friends,
My requirement is print text as big as possible on custom container.
Can any one guide me how to do this i am getting display but not big as i want
i am using class 'CL_DD_DOCUMENT' and method add_text to do this.
following code i have written for doing this only i want big display?
DATA: gv_message TYPE REF TO cl_dd_document.   "bin display
CREATE OBJECT gv_message.
CALL METHOD gv_message->add_text
      EXPORTING
        text          = gv_msg2                             "text-s01
        sap_style     = co_style
       sap_fontstyle = co_serif
        sap_fontsize  = cl_dd_area=>large   "co_font
        sap_emphasis  = cl_dd_area=>strong.  "co_emphasis
       fix_lines    = 'X'.
merge document
    CALL METHOD gv_message->merge_document.
display document
    CALL METHOD gv_message->display_document
      EXPORTING
        reuse_control      = 'X'
        container          = 'T_MSG'
      EXCEPTIONS
        html_display_error = 1.

Hi Paresh,
       1.      Go to the Layout and Create One custom container box and give name it.
        2. Custom Container is the one type of tool and its used for Displaying the Reports 
            with the use of ABAP Objects.
        3. Go to se38 and Write The Following Code.
tables ZTEAM_GD.
DATA : OBJ TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
       OBJ1 TYPE REF TO CL_GUI_ALV_GRID.
DATA IT_TEAM LIKE TABLE OF ZPLAYER_BAT_DET       .
SELECT * FROM ZPLAYER_BAT_DET INTO TABLE IT_TEAM.
CREATE OBJECT OBJ
  EXPORTING
    CONTAINER_NAME              = 'ALV'.          -
> Give ur Container Name
CREATE OBJECT OBJ1
  EXPORTING
    I_PARENT          = OBJ.
CALL METHOD OBJ1->SET_TABLE_FOR_FIRST_DISPLAY
  EXPORTING
    I_STRUCTURE_NAME              = 'ZPLAYER_BAT_DET'
  CHANGING
    IT_OUTTAB                     = IT_TEAM.
*CALL METHOD OBJ1->SET_DROP_DOWN_TABLE
EXPORTING
   I_STRUCTURE_NAME = 'ZTEAM_GD'
CHANGING
   IT_OUTTAB        = IT_TEAM.
CALL SCREEN 9000.
*&      Module  USER_COMMAND_9000  INPUT
      text
MODULE USER_COMMAND_9000 INPUT.
CASE SY-UCOMM.
WHEN 'EXT'.
  LEAVE PROGRAM.
ENDCASE.
ENDMODULE.                 " USER_COMMAND_9000  INPU     
Thanks.
Reward If Helpful.

Similar Messages

  • How to print text vertically in smart forms

    hi,
    Can any one tell how to print text vertically in smartforms
    ADVANCE THANKS
    GUHAPRIYAN

    HI,
    Chk out  this thread.Maybe it proves helpful.
    Re: vertical writing in smartforms
    Regards,
    Gayathri

  • How to print text on container using oop on alv list

    Hello Guru's,
             pl guide me how to print text on container using alv list-display which have interactive events  using     oop classes/methods ...
                    I want to print hard coded text on coantainer , on double clicking it will call another screen.
    Pl Help..
    Message was edited by:
            paresh sonavane

    Hi Paresh,
           1.      Go to the Layout and Create One custom container box and give name it.
            2. Custom Container is the one type of tool and its used for Displaying the Reports 
                with the use of ABAP Objects.
            3. Go to se38 and Write The Following Code.
    tables ZTEAM_GD.
    DATA : OBJ TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
           OBJ1 TYPE REF TO CL_GUI_ALV_GRID.
    DATA IT_TEAM LIKE TABLE OF ZPLAYER_BAT_DET       .
    SELECT * FROM ZPLAYER_BAT_DET INTO TABLE IT_TEAM.
    CREATE OBJECT OBJ
      EXPORTING
        CONTAINER_NAME              = 'ALV'.          -
    > Give ur Container Name
    CREATE OBJECT OBJ1
      EXPORTING
        I_PARENT          = OBJ.
    CALL METHOD OBJ1->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
        I_STRUCTURE_NAME              = 'ZPLAYER_BAT_DET'
      CHANGING
        IT_OUTTAB                     = IT_TEAM.
    *CALL METHOD OBJ1->SET_DROP_DOWN_TABLE
    EXPORTING
       I_STRUCTURE_NAME = 'ZTEAM_GD'
    CHANGING
       IT_OUTTAB        = IT_TEAM.
    CALL SCREEN 9000.
    *&      Module  USER_COMMAND_9000  INPUT
          text
    MODULE USER_COMMAND_9000 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXT'.
      LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPU     
    Thanks.
    Reward If Helpful.

  • How to print text on back and back of page in smartforms

    How to print text on back and back of page in smartforms.

    Prince,
    in page's output option you can set D for double-sided.
    Default: No change of print mode
    S     Begin new page in SIMPLEX mode (single-sided)
    D     Begin new page in DUPLEX mode (double-sided)
    T     Begin new page in TUMBLE DUPLEX mode (double-sided)
    Amit.

  • How to print "Text" in JAVA(TM)....

    Does anyone know how to print "text" using Java?
    - Here's an example output...
    NOTE: # == 'empty spaces'
    --------------------------- <- Paper
    |###################|
    |####Welcome#########|
    |###################|
    |########to##########|
    |###########JAVA(TM)##|
    |###################|
    |#######Programming####|
    |###################|
    Please post a complete << SAMPLE CODE >> for printing the "text" (Welcome to JAVA(TM) Programming. Including the indentions. So it will not be like this...
    -------------------- <- Paper
    |Welcome |
    |to |
    |JAVA(TM) |
    |Programming |
    | |
    | |
    | |
    | |
    Thanks.

    Please read How To Ask Questions The Smart Way

  • How to print text in paper format iin smartforms

    Hi all,
      I want a question that  how to print text in paper format like  paper divides into 2 parts and if the firstpart is full of text i.e., it exceeds the first page the text will be displyed in the second part of the first page.
    Usefull answers will be awarded.
    Thanks all...

    Hi,
    U create two windows in the page and same as like second page.
    but in first page first window select the condition print only on first page.
    in second window select conditin print only on second page.
    first try without creating a secondpage. if that doesn't workout create secondpage and try.
    Assign points if useful.
    Regards
    (YUGANDHAR.P)

  • How to print texts from iphone 4

    how to print text from iphone 4 without having to screenshot?

    An iOS cannot be downgraded or uninstalled...Apple has never supported doing this and removes the older iOS version files when a new iOS is released.

  • How can I take a picture of my whole screen on ipad2?

    How can I take a picture of my whole screen on my ipad2?

    Press the on/off and the home buttons at the same time for a sec. 

  • How to make text bigger?

    Once again when you want to do something simple it seams impossible. how can I make the event text bigger in all views? I see the adjustment fro printing the calendar but not for viewing. Thanks for your help
    G5 Quad 2.5 Ghz, MacBook Pro 17 Core Duo   Mac OS X (10.4.8)  

    I do not know why the black frame started appearing on my monitor either.
    The first time I noticed the problem was when I wanted to show a friend the iTunes Visualizer in full screen. The images appeared confined to the center of the screen with the black frame around them. Later I realized that changing to smaller resolutions than 2560 x1600 also caused the black frame to appear. At the time I was using 10.4.4. Tried all options in iTunes but nothing helped. Then I tried many things such as repairing permissions, ran onyx, reinstalled iTunes, archive and install Tiger, I even erased and zeroed my hard drive and reinstalled my original Panther disc, still no help.
    One thing I was fortunate to have done before I noticed this issue was to have made a clone of my OS which was 10.4.2, this OS worked perfectly when I booted from it. This confirmed it was a software issue and not the hardware. After many calls, Applecare wanted to send me a new hard drive, they had not encountered this problem before. The way I finally solved the problem was to use my 10.4.2 clone and copy this to the affected drive. This happened about two months ago and now everything still works as normal.
    If you could get the resolutions to work properly, this would probably be the best way to increase the image sizes. I noticed you have an iMac, is that computer working all right. Try resizing the resolutions on that, she may need to use that computer instead for this week.

  • How to Print text in two main windows

    For printing label have created two main windows on a page. calling function write_form In ABAP Program under do loop for two times. 
    but program prints only one window. why is it so? how can i print text on two windows.
    do 2 times.
      COUNT = COUNT + 1.
    loop at itab WHERE DEPTT LT 200.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT  = 'TEST'
            FUNCTION = 'SET'
            TYPE     = 'BODY'
          WINDOW   = 'MAIN'
          EXCEPTIONS
           ELEMENT   = 1
           FUNCTION  = 2
           TYPE      = 3
           UNOPENED  = 4
           UNSTARTED = 5
           WINDOW    = 6
           OTHERS    = 7.
      endloop.
    enddo.
    Please guide.

    Since the information is variable and coming out of the print program, I can assume you want to print many labels but two to a page. Also, any page numbering, etc will need to be updated. This is easily accomplished with SAPScript but a feature people rarely use I believe. Here are the simple steps:
    1) On the Windows Screen: Creat a main window for the size of the label, etc knowing that you will be putting multiple windows on a page. For example, if page size is 8.5 x 11, maybe your window size is 6 X 4 or something similar. You only need one main window defined.
    2) Now go to Page Windows Screen. Add a window MAIN and down at the bottom where it says Window Type put in MAIN. Next to this field is a little field about two characters long. In here put in '01'.
    3) Now Add another window MAIN and down at the bottom put in '02'.
    Hopefully this gives you the idea. I've done this with up to 30 small windows in order to print variable window for labels on label stock such as Avery 8167, etc. 
    Good Luck!
    Tim Stadler
    Menasha Corporation

  • How to print text/data in flex 3 using printer???Plz help...

       Hi,
              plz tell me the way to print text/data using printer in flex.  I tried the FlexPrintJob class. but it takes object of a container to be printed & prints the visible content of that container(along with scrollbars), bt i want to print all contents of the container(including invisible).
          I have tried to print bitmap image through FlexPrintJob but it takes lot of time for spooling... So plz help me out in printing(fast with all content) in flash
    I am using flex 3 (flex Builder 3 IDE).
      Thanks in advance!!!

    Hi Sagar,
    Don't worry You can use the below work around to print all the contents of the Container including the invisible contents under scrolll with out scroll bar..
    So what the idea here is we are seeting the container height to full size with out scrolls before sending the container object to printer and as soon as you print the object you are restoring it to the original height with scrolls...so that you can print the full contents without scrolls...
    You may have doubt that by chnaging and restoring the size the user may see momentary resize of the container but it is not so as it is a fraction of a second and user cannot notice this change... Give it a try ..I had already run into this problem recently and I have found a work around for this which is as below:
    // Here mainContainer is the container or box id the contents of which you want to print
       private function doPrintContainer():void
        var printJob:FlexPrintJob = new FlexPrintJob();
        if(printJob.start() != true) return;
        try
         var mainContainerHeight:int = mainContainer.height;
         //Increasing the height of the desired component to be printed.
         mainContainer.height = mainContainer.measuredMinHeight;
         mainContainer.verticalScrollPolicy = "off";
         //Adding the resized Component to our FlexPrintjob and then sending the print request
         printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);    
         printJob.send();
         //Resizing the component back to normal size
         mainContainer.height = mainContainerHeight;
         mainContainer.verticalScrollPolicy = "auto";    
        catch(error:Error)
                     trace("Error : " + error.message);
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • How to print text rertrived by using the READ_TEXT fun module in smartform

    Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
    I have coded all things in the program lines and in that i am retriveing the long texts.
    I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text module.
    its urgent. Points will be rewarded for any type of clue. whether it will work or not.

    loop the table into which u have retrieved the text .
    in the form interface of the smartform ... in importing parameter give the that table name .
    and in smartform whereever u want to print there insert the data into work area and pass to fields for dispaly .
    decalre ur work area in global defintions
    thnaks .

  • How to Print Text in WAD 7.0

    hi
    i have created a web template using WEB APPLICATION DESIGNER
    now i have added few custom texts in it like
    Report name,Cost centers ,Plant Names
    now if i use Export to command to create print , it is not printing this custom texts
    it is only printing Query Result.
    If i use File -> Print
    this print texts but cannot print WHOLE QUERY DATA
    it only prints what is visible (e.g. if the report is wide with 20 Columns, it cannot print 20 columns.)
    how to resolve this ??

    Hi kartikey,
    just select a text item and enter the text at the last parameter TEXT_CONTENT, that´s it. You may change the style and so on. It is also possible to bind the data provider and display the query title or other generic text.
    Look up the SAP help here:
    http://help.sap.com/saphelp_nw70/helpdata/en/8c/d9413a3ace7022e10000000a11402f/frameset.htm
    regards
    ARNE

  • How to Print Text in the PLD when we select Type : Text

    Hi All
    I designed a PLD for Purchase Order which is working well but
    whenever we select type: Text and we enter some text in the row level for each item. when we see the PLD priview
    Items are displaying but the text below the items are not displaying
    it displays an empty row after each item
    How should i print text in the PLD
    I required in this following Format
    ITEMCODE  DESCRIPTION      QTY
    001              XYZ                      20
    this is capital Good Item
    002             PQR                        30 
    this is Raw Material
    In this above format
    I didnt get the text below the Items
    Can any one suggest the correct answer

    Thanks for your reply
    I already select the linetext field from table POR10 and kept it  in the PLD
    but i didnt get my required format
    after giving that line text field  iam getting
    in this way
    S.No.        ITEMCODE   DESCRIPTION  QTY
       1               001               XYZ                 20
    this is Capital Goods
      2                                                                 
    this is Capital Goods
    the text is repeating twice
    I Put the ItemDescription field  in POR1 and Line Text Field in POR10 in the same repetitve area

  • How to print onto a legal size paper

    I'm trying to print a document sent to me as an original PDF 8.5 x 16 document onto a legal size page (8.5 x 14).  I don't have the advanced skills necessary to print in Adobe beyond the basics, and don't have the time to take a course or read the confusing help instructions (e.g., "tiling", "scaling").  I'm hoping someone on this board can simply tell me how to print this document step-by-step.  I have Windows XP with Acrobat Pro 9.0
    Your assistance is greatly appreciated!

    Using AA9, these are the steps I just used to create a 8.5X14 page from another PDF (Note: any bookmarks and links will be lost and would have to be replaced):
    1. Opened the PDF in Acrobat.
    2. Select FILE>Print
    3. Select the Adobe PDF printer.
    4. Select printer properties.
    5. On Adobe PDF Settings tab, you may select the press (Press Quality) or print (High Quality Print) job options.
    6. On either of the other tabs select the Advanced button.
    7. Under Paper/Output>Paper Size, select Legal.
    8. OK back to the print menu and select Page Scaling=>Fit to Printable Area.
    9. OK to print -- select the file name and location, hopefully with successful results. (I checked the PDF I created from a Letter size and it was 8.5X14)

Maybe you are looking for