CL_GUI_HTML_VIEWER

hi,
I'm using a container and class interface CL_GUI_HTML_VIEWER to display documents (Text, Word...)
I just want to display them and don't want the user to be able to change the document.
I try to do it with method set_enable form class CL_GUI_HTML_VIEWER, but then i can't use the scrool bar.....
any idea??
thanks,
joseph

In my system, I display a text file in the viewer.  It does not allow me to change the document at all. 
report zrich_0002.
data:  url(2048).
parameters: p_check type c.
start-of-selection.
at selection-screen output.
  data: dockingleft type ref to cl_gui_docking_container,
        html_control type ref to cl_gui_html_viewer,
        repid type syrepid.
  repid = sy-repid.
  check dockingleft is initial.
  create object dockingleft
              exporting repid     = repid
                        dynnr     = sy-dynnr
                        side      = dockingleft->dock_at_left
                        extension = 1000.
  create object html_control
     exporting
          parent    = dockingleft.
  url = '\serverfolderfile.txt'.
  call method html_control->show_url
        exporting
             url = url
        exceptions
             cnht_error_parameter = 1
             others = 2.
Regards,
Rich Heilman

Similar Messages

  • Unable to Create a CL_GUI_HTML_VIEWER

    Hi to all..
           I'm not able to create an CL_GUI_HTML_VIEWER ... after executing everything it just shows the button and textbox along..
    This is my code..
    TYPE-POOLS: icon.
    CLASS cls_event_handler DEFINITION DEFERRED.
    G L O B A L V A R I A B L E S
    DATA:
    ok_code LIKE sy-ucomm,
    Container for html vieaer
    go_html_container TYPE REF TO cl_gui_custom_container,
    HTML viewer
    go_htmlviewer TYPE REF TO cl_gui_html_viewer,
    Container for toolbar
    go_toolbar_container TYPE REF TO cl_gui_custom_container,
    SAP Toolbar
    go_toolbar TYPE REF TO cl_gui_toolbar,
    Event handler for toolbar
    go_event_handler TYPE REF TO cls_event_handler,
    Variable for URL text field on screen 100
    g_screen100_url_text(255) TYPE c,
    g_screen100_display_url(255) TYPE c.
    I N T E R N A L T A B L E S
    DATA:
    Table for button group
    gi_button_group TYPE ttb_button,
    Table for registration of events. Note that a TYPE REF
    to cls_event_handler must be created before you can
    reference types cntl_simple_events and cntl_simple_event.
    gi_events TYPE cntl_simple_events,
    Workspace for table gi_events
    g_event TYPE cntl_simple_event.
    START-OF-SELECTION.
    SET SCREEN '100'.
    CLASS cls_event_handler DEFINITION
    Handles events for the toolbar an the HTML viewer
    CLASS cls_event_handler DEFINITION.
    PUBLIC SECTION.
    METHODS:
    Handles method function_selected for the toolbar control
    on_function_selected
    FOR EVENT function_selected OF cl_gui_toolbar
    IMPORTING fcode,
    Handles method navigate_complete for the HTML viewer control
    on_navigate_complete
    FOR EVENT navigate_complete OF cl_gui_html_viewer
    IMPORTING url.
    ENDCLASS.
    CLASS cls_event_handler IMPLEMENTATION.
    Handles method function_selected for the toolbar control
    METHOD on_function_selected.
    CASE fcode.
    WHEN 'BACK'.
    CALL METHOD go_htmlviewer->go_back
    EXCEPTIONS cntl_error = 1.
    WHEN 'FORWARD'.
    CALL METHOD go_htmlviewer->go_forward
    EXCEPTIONS cntl_error = 1.
    WHEN 'STOP'.
    CALL METHOD go_htmlviewer->stop
    EXCEPTIONS cntl_error = 1.
    WHEN 'REFRESH'.
    CALL METHOD go_htmlviewer->do_refresh
    EXCEPTIONS cntl_error = 1.
    WHEN 'HOME'.
    CALL METHOD go_htmlviewer->go_home
    EXCEPTIONS cntl_error = 1.
    WHEN 'EXIT'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMETHOD.
    Handles method navigate_complete for the HTML viewer control
    METHOD on_navigate_complete.
    Display current URL in a textfield on the screen
    g_screen100_display_url = url.
    ENDMETHOD.
    ENDCLASS.
    *& Module STATUS_0100 OUTPUT
    MODULE status_0100 OUTPUT.
    IF go_html_container IS INITIAL.
    Create container for HTML viewer
    CREATE OBJECT go_html_container
    EXPORTING
    container_name = 'HTML_CONTAINER'.
    Create HTML viewer
    CREATE OBJECT go_htmlviewer
    EXPORTING parent = go_html_container.
    Create container for toolbar
    CREATE OBJECT go_toolbar_container
    EXPORTING
    container_name = 'TOOLBAR_CONTAINER'.
    Create toolbar
    CREATE OBJECT go_toolbar
    EXPORTING
    parent = go_toolbar_container.
    Add buttons to the toolbar
    PERFORM add_button_group.
    Create event table. The event ID must be found in the
    documentation of the specific control
    CLEAR g_event.
    REFRESH gi_events.
    g_event-eventid = go_toolbar->m_id_function_selected.
    g_event-appl_event = 'X'. "This is an application event
    APPEND g_event TO gi_events.
    g_event-eventid = go_htmlviewer->m_id_navigate_complete.
    APPEND g_event TO gi_events.
    Use the events table to register events for the control
    CALL METHOD go_toolbar->set_registered_events
    EXPORTING
    events = gi_events.
    CALL METHOD go_htmlviewer->set_registered_events
    EXPORTING
    events = gi_events.
    Create event handlers
    CREATE OBJECT go_event_handler.
    SET HANDLER go_event_handler->on_function_selected
    FOR go_toolbar.
    SET HANDLER go_event_handler->on_navigate_complete
    FOR go_htmlviewer.
    ENDIF.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0100 INPUT
    MODULE user_command_0100 INPUT.
    Handles the pushbutton for goto url
    CASE ok_code.
    WHEN 'GOTOURL'.
    PERFORM goto_url.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Form add_button_group
    Adds a button group to the toolbar
    FORM add_button_group.
    BACK botton
    CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
    EXPORTING
    fcode = 'BACK'
    icon = icon_arrow_left
    butn_type = cntb_btype_button
    text = ''
    quickinfo = 'Go back'
    CHANGING
    data_table = gi_button_group.
    FORWARD botton
    CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
    EXPORTING
    fcode = 'FORWARD'
    icon = icon_arrow_right
    butn_type = cntb_btype_button
    text = ''
    quickinfo = 'Go forward'
    CHANGING
    data_table = gi_button_group.
    STOP button
    CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
    EXPORTING
    fcode = 'STOP'
    icon = icon_breakpoint
    butn_type = cntb_btype_button
    text = ''
    quickinfo = 'Stop'
    CHANGING
    data_table = gi_button_group.
    REFRESH button
    CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
    EXPORTING
    fcode = 'REFRESH'
    icon = icon_refresh
    butn_type = cntb_btype_button
    text = ''
    quickinfo = 'Refresh'
    CHANGING
    data_table = gi_button_group.
    Home button
    CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
    EXPORTING
    fcode = 'HOME'
    icon = ''
    butn_type = cntb_btype_button
    text = 'Home'
    quickinfo = 'Home'
    CHANGING
    data_table = gi_button_group.
    Separator
    CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
    EXPORTING
    fcode = 'SEP1'
    icon = ' '
    butn_type = cntb_btype_sep
    CHANGING
    data_table = gi_button_group.
    EXIT button
    CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
    EXPORTING
    fcode = 'EXIT'
    icon = icon_close
    butn_type = cntb_btype_button
    text = ''
    quickinfo = 'Close porgram'
    CHANGING
    data_table = gi_button_group.
    Add button group to toolbar
    CALL METHOD go_toolbar->add_button_group
    EXPORTING data_table = gi_button_group.
    ENDFORM. " add_button_group
    *& Form goto_url
    Calls method SHOW_URL to navigate to an URL
    FORM goto_url.
    CALL METHOD go_htmlviewer->show_url
    EXPORTING url = g_screen100_url_text.
    ENDFORM. " goto_url
    please provide a solution
    With regards
    aahbha

    yes you can do that.
    place a button in the status bar and enter the following code if the button is pressed
    call method html_control->execwb
                      exporting cmd_id  = html_control->wb_cmdid_print
                      exceptions cntl_error = 1        .
        if sy-subrc <> 0.
          message e003(cnht) raising html_print_error.
        endif.
    Hope this helps.
    Regards
    Raja

  • CL_GUI_HTML_VIEWER in a customcontainer on a popup - not changable

    Hello,
    I have a little function that eventually call a small modal screen that containes very few valuea, an input field and a custom control.That custom control is linked to CL_GUI_HTML_VIEWER.
    It should just display a few lines of self created HTML coding. That is all done in the PBO and it works fine - the 1st time it is called.
    But it seems that in case the function is called a second time, the custom control just displays what was shown the very first time. Any changes to the HTML coding are disregarded - although the rest of the popup reflects the changes made.
    I might be missing some simple steps or things. Clearing down the reference variables and firing the cl->free method do not seem to make a difference.
    Does anyone have an idea?
    Is something wrong w/ the 'lietime management' - to what should I set the 'lifetime' parameter?
    I am a bit confused.
    Any help appreciated
    Thanks,
    C.N.

    Well I found the solution - as suspected I was looking to hard and not doing the obvious.
    When speaking of control I always thought of CL_GUI_HTML_VIEWER only - freeing it up did not help the cause.
    While working on the issue, I attempted various things including usinh two popup screens. Both worked fine - when called the 1st time w/ two different container of course.
    This led me to the obvious - not to 'free the instance of CL_GUI_HTML_VIEWER but to 'free' CL_GUI_CUSTOM_CONTAINER instance.
    *  In the PBO:
    If not container is initial.  " container is the 'created' custom container
       CALL METHOD container->free.
    endif.
    That's all that is needed to overcome this shortcoming!
    Thanks, Sandra!

  • CL_GUI_HTML_VIEWER need to open a different Browser session if one exists

    Hi All,
    I'm using the class  cl_gui_html_viewer for displaying a PDF in My program. However, if an Internet Explorer Session is already open, the HTLM_VIEWER created in my program is behaving more like a child of the already open browser (In other words, it works like pressing CTRL+N on the original window). But my requirement is to open a new Browser session altogether (Like Opening up another Internet Explorer Session).
    The reason i need to have this is because the PDF i display is based on an authenticated login. If a person is already logged in through the Stand alone IE browser, my program should not allow the same user to view it in the browser but authenticate again by prompting for a login. This is achieved by using different Browser sessions (not by CTRL+N).
    Please let me know if you have any thoughts on achieving this.
    Thanks in advance,
    Jr.

    where is this PDf coming from, is it from external source thru a url? can you pass uid/pwd to this PDF via url,
    if yes, pass a wrong uid/pwd thru the url , every time you load the pdf, in the html viewer control, this would always prompt for authntication box. other option is to delete the sso2 cookie,  you need to find a method to delete the cookie in your local machine created by calling this pdf from standalone browser.
    Raja

  • Set DOCTYPE for a self rendered HTML page using cl_gui_html_viewer

    G'Day!
    I'm dealing with HTML in ABAP and i' stuck with a nasty little problem. Perhaps somebody know's the answer and can help me out. Thanks in advance. (I'm sorry for my poor english)
    My problem is:
    I am rendering a html page in abap and display ist using a cl_gui_html_viewer.
    Works fine.
    But now in need to set the right DOCTYPE for the rendered html page.
    If i add the DOCTYPE definition, my html page is not displayed, instead i get a display of the html-code??
    To break it down to the root:
    How can i add the DOCTYPE definition to a self-rendered html page?
    If i add the DOCTYPE definition as first element of my html table, the html code won't be interpreted.
    If i do not add the DOCTYPE defintion everything works fine.
    I need the DOCTYPE definition so that the browser won't get into quirks mode and interpretes the html tag's right.
    What i've done so far:
    (Dynpro, container, html_viewer)
    Load my JScripts (with load_mime_object)
    Load my CSS (with load_mime_object)
    Load my HTML:
    -- lt_html       TYPE w3htmltab
    ((--  APPEND  '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">'  TO ct_html.)) this line cause my trouble
    -- filled the itab with my html tags <html>....</html> (set right url for Jscript and CSS)
    -- Load my html table and get an URL CALL METHOD gr_labform_html->load_data
    -- Load the url CALL METHOD gr_labform_html->show_url

    I've "solved" my issue with a little workaround.
    I created an empty html page with an existing DOCTYPE def and an tag like <!MYDATA!>
    After that i filled 'l_merge_table TYPE swww_t_merge_table' with my tag and my html_data.
    Loaded the whole thing with CALL METHOD gr_labform_html->load_html_document and now the DOCTYPE is set fully correct!
    But i'm still interessted why i can't set the DOCTYPE directly? Anybody knows?
    Got the idea from: Re: How can I read color from frond-end PC

  • Cl_gui_html_viewer  Browser status Progress bar details

    Hello All,
                I have a custom transaction that calls the Browser wildow(that is calling a webpage).             
    I am trying to display the browser progress status in the cl_gui_html_viewer by adding a  status bar to the cl_gui_custom_container .
    Similar to howAP has the FM "SAPGUI_PROGRESS_INDICATOR" to show the SAP GUI status.
    Is there anyway we can able to capture the browser status and disply the status??
    If anyone came across this situation in your experience, please share your knowledge.
    Your suggestions will be helpfull.
    Please let me know if you have any questions.
    Thanks,
    Greetson

    Hi Ana,
    I'm working on an application which also seems to have the same problem as you mentioned. My application opens a url which contains a Interactive Adobe Form using CL_GUI_HTML_VIEWER also. And the Adobe Form contacts SAP using a custom BAPI.
    However, when another similar form (Not just using CL_GUI_HTML_VIEWER in SAP but even when opened in a standalone IE Browser) is opened and the BAPI is processed,  Both the Adobe forms are processed and and Both contain the same data once the forms are complete. This is more like a Session ID needs to be issued for each instance of the HTML_VIEWER.  Can this be specified using a Property? Please let me know if you have any thoughts on this.
    Thanks in advance,
    Jr.

  • Cl_gui_html_viewer browser vs window

    for my application I need to include a cl_gui_html_viewer in a respective custom container within a dynpro and then have a new explorer being opened for each modus instead of just a new window. Currently (default setting ) when I call my dynpro from two different sap modus on the same computer, then one opens the explorer and the other one just opens a new window to the same explorer.
    Does anybody know if this can be changed, may be via property setting?
    Thanks a lot!
    Ana

    Hi Ana,
    I'm working on an application which also seems to have the same problem as you mentioned. My application opens a url which contains a Interactive Adobe Form using CL_GUI_HTML_VIEWER also. And the Adobe Form contacts SAP using a custom BAPI.
    However, when another similar form (Not just using CL_GUI_HTML_VIEWER in SAP but even when opened in a standalone IE Browser) is opened and the BAPI is processed,  Both the Adobe forms are processed and and Both contain the same data once the forms are complete. This is more like a Session ID needs to be issued for each instance of the HTML_VIEWER.  Can this be specified using a Property? Please let me know if you have any thoughts on this.
    Thanks in advance,
    Jr.

  • CL_GUI_HTML_VIEWER and external javascripts

    Hi,
    is it possible to display HTML document what has a reference to the external file with javascripts (but it could be CSS styles as well ) what were generated by abap program as well.
    So I need to generate a file with javascripts. Download it to the workstation and later display a HTML page in HTML viewer what has a reference to generated external file.
    Thank you for any help.
    Marian

    Hi ,
    I dont really understood the problem what you have but can give as simple sample code. This code reads a .txt file containg a html code and shows the output on html viewer.
    *& Report  ZHTML_PROG                                                  *
    REPORT  ZHTML_PROG                              .
    data: custom_control    type ref to  cl_gui_custom_container,
          html_control      type ref to  cl_gui_html_viewer,
          html_handle       type ref to  html_events.
    data:it_W3HTML type standard table of W3HTML with header line.
      data:HTML type standard table of W3HTML with header line.
    DATA:  doc_url0(80),
           doc_url(80),
          alignment         type i,        " Ausrichtung tree_control
          okcode type sy-ucomm.
    CONSTANTS: ALIGN_AT_LEFT           TYPE I VALUE 1.
    CONSTANTS: ALIGN_AT_RIGHT          TYPE I VALUE 2.
    CONSTANTS: ALIGN_AT_TOP            TYPE I VALUE 4.
    CONSTANTS: ALIGN_AT_BOTTOM         TYPE I VALUE 8.
    CONSTANTS: ALIGN_CENTERED          TYPE I VALUE 16.
    start-of-selection.
    call screen 9006.
    end-of-selection.
    *&      Form  call_context_menu
          text
         -->P_ACTION  text
    FORM call_context_menu  USING    P_ACTION.
    ENDFORM.                    " call_context_menu
    *&      Module  display_html  OUTPUT
          text
    MODULE display_html OUTPUT.
    set pf-status '9006'.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'D:\281143\Sandy_signature\html.TXT'
      FILETYPE                      = 'ASC'
      HEADLEN                       = ' '
      LINE_EXIT                     = ' '
      TRUNCLEN                      = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      DAT_D_FORMAT                  = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        DATA_TAB                      = it_W3HTML[]
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      FILE_OPEN_ERROR               = 2
      FILE_READ_ERROR               = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT CUSTOM_CONTROL
      EXPORTING
        CONTAINER_NAME              = 'CONTAINER'
    CREATE OBJECT HTML_CONTROL
      EXPORTING
       SHELLSTYLE         =
        PARENT             =  CUSTOM_CONTROL
       LIFETIME           = LIFETIME_DEFAULT
       SAPHTMLP           =
       UIFLAG             =
       NAME               =
       SAPHTTP            =
       QUERY_TABLE_DISABLED =
    EXCEPTIONS
       CNTL_ERROR         = 1
       CNTL_INSTALL_ERROR = 2
       DP_INSTALL_ERROR   = 3
       DP_ERROR           = 4
       others             = 5
      alignment = align_at_left + align_at_right + align_at_top +
                  align_at_bottom.
      CALL METHOD html_control->set_alignment
        EXPORTING
          alignment = alignment.
    CALL METHOD HTML_CONTROL->LOAD_DATA
      EXPORTING
       URL                  =
        TYPE                 = 'text'
        SUBTYPE              = 'html'
       SIZE                 = 0
       ENCODING             =
       CHARSET              =
      IMPORTING
        ASSIGNED_URL         = doc_url0
      CHANGING
        DATA_TABLE           = it_W3HTML[]
    EXCEPTIONS
       DP_INVALID_PARAMETER = 1
       DP_ERROR_GENERAL     = 2
       CNTL_ERROR           = 3
       others               = 4
      APPEND:
      '<html><frameset>' TO html.
      CONCATENATE
      '<frame name=Frame0 src="'
      doc_url0
      '" scrolling=auto >'
      INTO html.
      APPEND html .
      APPEND:
    '</frameset></html>' TO html.
    create final link to welcome-screen;
      CALL METHOD html_control->load_data
        EXPORTING
          type                 = 'text'
          subtype              = 'html'
        IMPORTING
          assigned_url         = doc_url
        CHANGING
          data_table           = html[]
        EXCEPTIONS
          dp_invalid_parameter = 1
          dp_error_general     = 2
          OTHERS               = 3.
      IF sy-subrc = 0.
      ENDIF.
      CALL METHOD html_control->show_data
        EXPORTING
          url = doc_url0.
    ENDMODULE.                 " display_html  OUTPUT
    *&      Module  USER_COMMAND_9006  INPUT
          text
    MODULE USER_COMMAND_9006 INPUT.
    if okcode = 'BACK'.
    leave program.
    endif.
    ENDMODULE.                 " USER_COMMAND_9006  INPUT

  • Cl_gui_html_viewer and javascript

    hi,
    I wonder if I can add some javascript code with cl_gui_html_viewer.
    Let's says that if the user click on the container I would like to pop up a message.
    I try to do it with method set_script and event navigate_complete but I failled.
    Thank you

    quick and dirty:
    copy paste the following code in a noted pad
    <i><a href="#" onclick="alert('test');">test</a>
    <br>
    <a href="http://www.google.com" target="_blank">google</a></i>
    and save it as test.html in your desktop.
    run program SAPHTML_DEMO1 and enter the path for test.html in the input field and hit enter, you should now see the html page inside the container , click on the links to see how it works.
    hope this helps.
    Regards
    Raja

  • Method show_url of class cl_gui_html_viewer

    Hello,
    I use this method to show my html in a container.The problem is that I have sap icons in my html which are not shown in the container, what can be a solution to display the icons within the html?

    Hello Robert,
    sorry but I think I can't explain my problem.
    I have following coding:
      DATA: l_t_html_page LIKE STANDARD TABLE OF  htmlline,
                  html_viewer     TYPE REF TO cl_gui_html_viewer.
        CALL FUNCTION 'DOC_OBJECT_GET_HTML'
          EXPORTING
            docuid     = 'RE'
            docuobject = sy-repid
          TABLES
            html_page  = l_t_html_page.
        CREATE OBJECT html_viewer
          EXPORTING
            parent = container.
        CALL METHOD html_viewer->load_data
          IMPORTING
            assigned_url = l_f_url
          CHANGING
            data_table   = l_t_html_page.
        CALL METHOD html_viewer->show_url
          EXPORTING
            url = l_f_url.
    In table l_t_html_page I have the documentation of my report which include several icons like @01@. So I think I can't use your mentioned methods like LOAD_PICTURE_FROM_URL as the icons are in the documentation.
    So is there any possibiliy how I can replace those icons with html icons?

  • CL_GUI_HTML_VIEWER vs IE7

    Hello Everyone,
    I'm actually using the class CL_GUI_HTML_VIEWER to display some html. It was working nice until I tried to migrate to Internet Explorer 7. Does anyone know if there are some incompatibility with IE7, or what to do to make it work?
    Thx,
    Christophe

    Yes there is an incompatibility with the SAP GUI 6.40 for any patch level below 20. Go to PL 20 or higher and your problem will be solved. This is what I found anyhow.
    -Tim

  • How can we use cl_gui_html_viewer      in a background process.

    Hello,
    Refering to this thread: Pie chart using Class cl_igs_chart ??
    How can we use cl_gui_html_viewer     in a background process.
    I want to execute a html code in bakground process in abap program.
    but using cl_gui_html_viewer   I have an error with CNTL_ERROR in the method CONSTRUCTOR;
    Thanks

    Marie,
    I don't know about HTML viewer specifically, but whenever a GUI object is needed to be used in background, there is a standard method to avoid CNTL_ERROR.
    When a program runs in background, there is no "screen" and hence no GUI, and hence a custom control can not be displayed. That is why the program generates an error.
    The trick is to avoid creating the custom control in background.
      if sy-batch = 'X'. "background mode
    *   We don't want to create the custom control
      else. "dialog mode
        create object l_container exporting ...
      endif.
    * We really don't need a container for using CL_GUI_ objects
    * Proceed with the normal coding
      create object l_html_viewer
      exporting
        parent = l_container

  • Save graph shown by cl_gui_html_viewer into pdf file

    hello,
    i am creating graph through cl_igs_chart and display it by using cl_gui_html_viewver.
    now i have a requirment to save graph in pdf file format.
    when righ click on graph and click on save picture as than graph save as bmp file but i want to save graph in pdf file.
    so please tell me how to save a file in pdf format?
    if code for svaing file in pdf format is available than please mention it
    please reply soon...
    thanks in advance

    hello yoganad
    thanks for reply
    i have tried the same codes but fm /1BCDWB/SF00000034' have not any parameter name P_VBELN
    and also it has a compusary parameter  tables IT_AN66 so how i will convert type of internal table of my report into  type matching with table type IT_AN66????

  • ADDIGN TEST TO CL_GUI_HTML_VIEWER

    hi,
    I am using a html control on my screen......
    I want tio add different lines of Text to it at various positions having different fonts and sizes.
    any idea as to how it can be done.
    Regards,
    Tarun bahal

    You just need to build up a stream of valid HTML you want the view to display, so you can include fonts, colours, styles etc etc... Have a look at the Controls examples (accessible via the SE38 menu) as there are samples there you could learn from...plus the online help at:
    http://help.sap.com/saphelp_sm32/helpdata/en/c9/147a36c70d2354e10000009b38f839/frameset.htm
    Jonathan

  • Cl_gui_html_viewer method load_data

    Hi,
    I use use the mentioned method to load the documentation of the program into a container. Is it possible to change the background of this? I get only a white background, what I want is a different colour.
    Thanks.

    Hello Marcin,
    this is my html:
    <BODY BGCOLOR="WHITE" TEXT="BLACK" LINK="BLUE" VLINK="#3366CC" ALINK="RED">
    <TABLE BORDER="0" CELLPADDING="2" WIDTH="100%" BGCOLOR="#3366CC"><TR><TD><FONT COLOR="#FFFFFF" SIZE="5">
    </FONT></TD></TR></TABLE>
    <H2>Dokumentation</H2>
    <H2></H2>
    <P>Einleitung:</P>
    </FONT></BODY></HTML>
    now I have to make:
    loop at html into wa_html.
    if wa_html-TDLINE cs 'BODY'.
    endif.
    endloop.
    but how can I say that he only change the value of BGCOLOR?

Maybe you are looking for

  • In 10g read text files

    i am not able to read text file in 10g forms. using webutil.pll and webutil.lib here i posted the code . i am not getting message 2, client_text_io.fopen is not working what could be the reason. DECLARE in_file client_TEXT_IO.FILE_TYPE; V_LINE_COUNT

  • What's the best format to import in to iMovie?

    Okay, here is the situation, I have a lengthy Keynote presentation which I plan to export via QuickTime so it can be imported in to iMovie in order to do voice-overs. The question I have is what the best format is to use to export from Keynote in ord

  • BDC upload problem in hr master

    Hi, we are facing a problem in BDC upload for hr master tcode pa40. we want to stop bdc after 2 screens only and not process further screens. how to do this? please help Thanks.

  • Validate that one or more checkbox are ticked.

    Currently I'm checking if the user has ticked at least one of the checkboxes by using: if(CheckBox1.rawValue == 0 && CheckBox2.rawValue == 0){ app.alert("Please select one or more checkboxes."); Is there a way to count the number of checkboxes and do

  • Getting started with 8i Lite Trial

    I have a copy of 8i Lite that I downloaded from the Oracle site and I have a few questions that I have not been able to answer in the documentation. I want to use this in conjunction with Codewarrior on a Palm platformave a Symbol 1740 Palm-based sca