How to hide PDF toolsbar

I want the pdf always startup with defaulted hide the toolsbar(e.g hand tool, zoom tool, select tool...).
Can any expert guide me?
Below is my existing souce code.
i using the "cl_gui_html_viewer" to call the pdf application
cause i need to convert the OFT(smartform) to pdf and load the data using URL.
  DATA: l_url(2048) TYPE c.
  DATA: html_alignment TYPE I.
  DATA: BEGIN OF html_control,                              " PEOPLE CARD CONTAINER
         container    TYPE REF TO cl_gui_custom_container,
         control      TYPE REF TO cl_gui_html_viewer,
        END OF html_control.
  CONSTANTS : BEGIN OF c,
               align_at_left           TYPE i VALUE 1,
               align_at_right          TYPE i VALUE 2,
               align_at_top            TYPE i VALUE 4,
               align_at_bottom         TYPE i VALUE 8,
             END OF c.
  IF html_control-container IS INITIAL.
    CREATE OBJECT html_control-container              " CREATE CONTAINER
        EXPORTING
            container_name = 'PDF_CONTAINER'
        EXCEPTIONS
            others = 0.
  ENDIF.
  IF html_control-control IS INITIAL.
    CREATE OBJECT html_control-control                 " ASSIGN CONTAINER TO CONTROLER
         EXPORTING
              parent = html_control-container.
    IF sy-subrc = 0.
      html_alignment = c-align_at_left + c-align_at_right
                       + c-align_at_top + c-align_at_bottom.
      CALL METHOD html_control-control->set_alignment  " SET ALIGNMENT
        EXPORTING
          alignment = html_alignment.
    ENDIF.
  ENDIF.
  CALL METHOD html_control-control->load_data           " GET PDF URL
    EXPORTING
      type         = 'APPLICATOIN'
      subtype      = 'PDF'
    IMPORTING
      assigned_url = l_url
    CHANGING
      data_table   = t_lines_pdf
    EXCEPTIONS
      OTHERS       = 1.
  CALL METHOD html_control-control->show_data           " SHOW PDF
    EXPORTING
      url = l_url.
  IF SY-SUBRC = 0.
    MOVE 'X' TO w_flag-load_pdf.
  ENDIF.

hi
good
go through these link,this ll give you brief idea about cl_gui_html_viewer,check them and do the changes in your program accordingly.
http://www.sap-basis-abap.com/abap/example-of-sap-html-viewer-to-browse-the-internet.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/147a36c70d2354e10000009b38f839/frameset.htm
thanks
mrutyun^

Similar Messages

  • ReportViewer 2010:how to hide pdf in export option in reportviewer

    please help me out 
    how shoul i hide pdf in export option in reportviewer
    susana w

    Hi,
    This is the code which is used for ReportViewer 2008 and i need code for ReportViewer 2010. I don't want to change in the reportserver's RSReportSErver.Config
    file because same report server we are using for different projects where in some projects we require pdf and some we do not. Below is the code for reportviwer 2008 where the export button is rendered as a dropdown and in reportviwer 2010, Export button is
    redered as div element and all the export options like pdf,word,etc elements are rendered as div elements . So in code behind how can i access these export button options?
       private void CustomizeReportViewer(System.Web.UI.Control reportControl)
                foreach (System.Web.UI.Control childControl in reportControl.Controls)
                    if (childControl.GetType() == typeof(System.Web.UI.WebControls.DropDownList))
                        System.Web.UI.WebControls.DropDownList ddList = (System.Web.UI.WebControls.DropDownList)childControl;
                        if (ddList.ToolTip.Contains("Export"))
                            ddList.PreRender += new EventHandler(ddList_PreRender);
                    if (childControl.GetType() == typeof(System.Web.UI.WebControls.Button))
                        System.Web.UI.WebControls.Button ddList = (System.Web.UI.WebControls.Button)childControl;
                        if (ddList.UniqueID.Contains("ctl00_ContentPlaceHolder1_rptviewerByBrandBySentimentAttribute_ctl06_ctl04_ctl00_Button"))
                            ddList.PreRender += new EventHandler(ddList_PreRender);
                    if (childControl.Controls.Count > 0)
                        CustomizeReportViewer(childControl);
            // This is the event handler added from CustomizeRV 
            // We just check the object type to get what we needed. 
            // Once the dropdownlist is found, we check if it is for the ExportGroup. 
            // Meaning, the "Excel" text should exists. 
            // Then, just traverse the list and disable the "Excel". 
            // When the report is shown, "Excel" will no longer be on the list. 
            // You can also do this to "PDF" or if you want to change the text. 
            void ddList_PreRender(object sender, EventArgs e)
                if (sender.GetType() == typeof(System.Web.UI.WebControls.DropDownList))
                    System.Web.UI.WebControls.DropDownList ddList = (System.Web.UI.WebControls.DropDownList)sender;
                    System.Web.UI.WebControls.ListItemCollection listItems = ddList.Items;
                    if ((listItems != null) && (listItems.Count > 0) && (listItems.FindByText("Excel") != null))
                        foreach (System.Web.UI.WebControls.ListItem list in listItems)
                            if (list.Text.Equals("XML file with report data") || list.Text.Equals("CSV (comma delimited)") || list.Text.Equals("TIFF file") || list.Text.Equals("Word") || list.Text.Contains("PPS"))
                                list.Enabled = false;

  • ReportViewer 2010:how to hide pdf in export option in subreports in reportviewer

    Hi,
    I am using ReportViewer 2010 and using code (posted below) to hide certain options from export, its working fine for parent report,  but when i am clicking on parent report to view child report, then export option in child report is showing all the
    items in export option which all are hided in parent report. So please help me out.
    private void DisableUnwantedExportFormats()
                FieldInfo info;
                foreach (RenderingExtension extension in rptviewerByBrandBySentimentAttribute.ServerReport.ListRenderingExtensions())
                    if (extension.Name != "PDF" && extension.Name != "ASPPT" && extension.Name != "ASPPTX" && extension.Name != "EXCEL" && extension.Name != "MHTML") // only PDF and Excel
    - remove the other options
                        info = extension.GetType().GetField("m_isVisible", BindingFlags.Instance | BindingFlags.NonPublic);
                        info.SetValue(extension, false);
                    if (extension.Name == "ASPPT") // change "Excel" name on the list to "Excel 97-2003 Workbook"
                        info = extension.GetType().GetField("m_localizedName", BindingFlags.Instance | BindingFlags.NonPublic);
                        if (info != null) info.SetValue(extension, "PowerPoint 2003");
                    if (extension.Name == "ASPPTX") // change "Excel" name on the list to "Excel 97-2003 Workbook"
                        info = extension.GetType().GetField("m_localizedName", BindingFlags.Instance | BindingFlags.NonPublic);
                        if (info != null) info.SetValue(extension, "PowerPoint 2007");
    neha

    Hi,
    Thank you for this article.
    I am using the localreport ReportViewer 2010 and other code examples weren't working.
    Apparently, the m_isVisible field was not available in earlier version of ReportViewer
                        info = extension.GetType().GetField("m_isVisible", BindingFlags.Instance | BindingFlags.NonPublic);                    info.SetValue(extension, false);
    Code that wasn't working:
                FieldInfo info = extension.GetType().GetField("m_serverExtension",            BindingFlags.NonPublic | BindingFlags.Instance);            if (info != null)            {                object actualExtension = info.GetValue(extension);                if (actualExtension != null)                {                    PropertyInfo propInfo = actualExtension.GetType().GetProperty("Visible");                    if (propInfo != null && propInfo.CanWrite)                    {                        propInfo.SetValue(actualExtension, false, null);                    }                }            }
    Thanks again, chupaul :)

  • How to hide pdf in export option in ssrs ReportViewer

    Hi,
    This is the code which is used for ReportViewer 2008 and i need code for ReportViewer 2010.
    so please help me out asap.
       private void CustomizeReportViewer(System.Web.UI.Control reportControl)
                foreach (System.Web.UI.Control childControl in reportControl.Controls)
                    if (childControl.GetType() == typeof(System.Web.UI.WebControls.DropDownList))
                        System.Web.UI.WebControls.DropDownList ddList = (System.Web.UI.WebControls.DropDownList)childControl;
                        if (ddList.ToolTip.Contains("Export"))
                            ddList.PreRender += new EventHandler(ddList_PreRender);
                    if (childControl.GetType() == typeof(System.Web.UI.WebControls.Button))
                        System.Web.UI.WebControls.Button ddList = (System.Web.UI.WebControls.Button)childControl;
                        if (ddList.UniqueID.Contains("ctl00_ContentPlaceHolder1_rptviewerByBrandBySentimentAttribute_ctl06_ctl04_ctl00_Button"))
                            ddList.PreRender += new EventHandler(ddList_PreRender);
                    if (childControl.Controls.Count > 0)
                        CustomizeReportViewer(childControl);
            // This is the event handler added from CustomizeRV 
            // We just check the object type to get what we needed. 
            // Once the dropdownlist is found, we check if it is for the ExportGroup. 
            // Meaning, the "Excel" text should exists. 
            // Then, just traverse the list and disable the "Excel". 
            // When the report is shown, "Excel" will no longer be on the list. 
            // You can also do this to "PDF" or if you want to change the text. 
            void ddList_PreRender(object sender, EventArgs e)
                if (sender.GetType() == typeof(System.Web.UI.WebControls.DropDownList))
                    System.Web.UI.WebControls.DropDownList ddList = (System.Web.UI.WebControls.DropDownList)sender;
                    System.Web.UI.WebControls.ListItemCollection listItems = ddList.Items;
                    if ((listItems != null) && (listItems.Count > 0) && (listItems.FindByText("Excel") != null))
                        foreach (System.Web.UI.WebControls.ListItem list in listItems)
                            if (list.Text.Equals("XML file with report data") || list.Text.Equals("CSV (comma delimited)") || list.Text.Equals("TIFF file") || list.Text.Equals("Word") || list.Text.Contains("PPS"))
                                list.Enabled = false;
    susana w

    Hi God’s Favorite,
    Thanks for your post.
    According to your description, you would like to disable the SSRS rendering format PDF in VS 2010 ReportViewer control, please
    refer to the steps below I demonstrate for you:
    1. Add the method below to your .aspx.cs file as back-end code.
    /// <summary>
    /// Hidden the special SSRS rendering format in ReportViewer control
    /// </summary>
    /// <param name="ReportViewerID">The ID of the relevant ReportViewer control</param>
    /// <param name="strFormatName">Format Name</param>
    public void DisableUnwantedExportFormat(ReportViewer ReportViewerID,
    string strFormatName)
    FieldInfo info;
    foreach (RenderingExtension extension
    in ReportViewerID.ServerReport.ListRenderingExtensions())
    if (extension.Name == strFormatName)
    info = extension.GetType().GetField("m_isVisible",
    BindingFlags.Instance |
    BindingFlags.NonPublic);
    info.SetValue(extension, false);
    2. Choose the relevant Reportviewer control and press F4.
    3.  In the Properties window, click the Events icon, then double click the PreRender item to generate the
    ReportViewer1_PreRender method, I assume your reportViewer control ID is ReportViewer1,
    edit your method like below:
    protected void ReportViewer1_PreRender(object sender,
    EventArgs e)
    DisableUnwantedExportFormat((ReportViewer)sender,"PDF");
    After you complete the steps above, run your project and it works just as you expected.
    Thanks,
    Bill Lu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How to hide a table row in pdf  using javascript?

    How to hide a table row in pdf  using javascript?

    This is only possible with LiveCycle Designer forms, not PDF forms created
    in Acrobat.

  • How to hide attachment icon in pdf

    Hi Experts,
    I developed a Adobe interactive application , but at the  bottom  left of pdf form  ihave an attachment icon that attachment icon need to be hided,can any one tell me how to hide that  icon.
    Thanks
    Rahul.

    Hi Rahul,
    Please Check the following link
    In Adobe Forms, Is it Possible to remove File Attachment Link of Navigation
    Regards,
    Mathan

  • How to hide dynamic parameters values in the URL with Reports 6i

    Hi,
    I want to know a way of hiding the parameters values when asking for a report through the web.
    Now I'm using the Reports 3.0.5.8 with a Cartridge defined in the Oracle Web Application Server 3.0.1.0.1. When you ask for a report with the parameters DESTYPE = cache and DESFORMAT = pdf, it is fully generated and in the Address or Location box of the browser, you can see http://webserver/cache/report.pdf (where cache is the virtual directory defined in the OWAS in which the .pdfs are cached). So, users cant see the Url used to generate the report.
    Im trying to upgrade this configuration to Reports 6i with Cgi in a web server. I generate reports with no problems. The problem I have is I cant find how to hide the parameters values as before. I mean, when I ask for a report, once its generated I can see http://webserver/cgi-bin/rwcgi60.exe?server=ServerName&report=report.rdf&userid=user/pass@connection&destype=cache&desformat=pdf&P1=value1&P2=value2 in the Location box. It allows user to ask for another report changing the values of the parameters. I use these parameters to execute some query written in the Data Model. For example, imagine that the P1 represents the company id, the user (that is supposed to see only data of its company) can change this id, ask for a new report and see data of another company.
    Ive already tried to use the key mapping option, but its not useful to me because the parameters values are dynamic and its impossible to define different entries in the cgicmd.dat for each possible value. The option of loading the parameter form before running a report is not useful to me either, because there exists specific screens for this purpose.
    Is there any solution?
    Thank you.
    Marma Bonfiglio.

    Hi Rakesh,
      I am using BI  7.0
    The last option I have is 'Hide' for 'Calculate single values as' .
    I have the below options  for 'Calculate single values as'
    1. Normalise  according to Next group  level  Resul.
    2. Normalize according to  Overall Result
    3. Rank number
    4.Olympic Rank Number
    5.Maximum
    6. Minimum
    7.Counter for all detailed values
    8.Counter for all detailed values that are non zero
    9.Moving average
    10.Moving average  That is  Not zero ,null or Error
    11. Hide.
    So could you please tell me where i can find 'suppress result' option for the keyfigure .
    Many thanks

  • How to hide read mode navigation in acrobat xi permanantly

    How to hide "Read mode navigation" . In my application i am opening pdf file in light box window where i disable right click to protect download and print pdf file( only View ). but This Read mode navigation is appearing automatically when we put curson on file even if we protect the document. I have purchased Acrobat professional xi to created protected acrobat file by disabling menu tool bar but there is no option to hide readmode navigation. Please let us know how to hide this.
    Thanks,
    Nagendra

    If you want the form "flattened", that is all form fields converted to PDF context, you need to use some JavaScript to flatten the form fields. This will remove all form functionality. It will not prevent editing by Acrobat's text touchup or object tools.
    The "submit" button is used by other users to sent the PDF form data to a central collection site or email address where the sender or provider of the form can collect the submitted data.
    You could also use a digital certificate to sign the form and lock the fields. The signature will also verify that no changes have been made to the PDF since it was signed and one could also see what was changed.

  • How to hide watermark when viewing in acrobat 8 standard

    Hi,
    2 of my colleagues (also having same versions of acrobat) manage to open a pdf file without the watermark showing.
    I have been googling around and found that there is an option to set.
    To specify when the watermark appears, select or deselect Show When Printing and Show When Displaying On Screen.
    But i couldn't find the option on my PC(windows xp). I would like to know how to hide the watermark when viewing in acrobat 8.?
    Thanks,

    Thank you, i understand now.
    so in that case, why does my 2 colleagues can view the pdf file with the watermarks hidden. While for me, i can see the watermark when i view the same file?
    appreciate your clarification.

  • How to hide some functions in the menu bar of flash paper

    Do anyone know how to hide some functions in the menu bar of
    flash paper? As I want to show a swf file(converted from pdf) on
    the website without printing function. How can I do it?
    Also, if possible, can anyone know how to hide all functions
    on the menu bar except the logo of flash paper?
    Thank you very much, it is very urgent.

    Here is an article about how to integrate flashPaper into
    Director. It has most of the functions that can be executed on
    flashPaper. Maybe it will help?
    http://www.adobe.com/devnet/director/articles/flashpaper_in_director.html
    and here is all his code
    http://www.mediamacros.com/item/item-1006687373/
    Note: it is for 1.01, but works with 2.0

  • HOW TO HIDE THE SLIN ERRORS

    how to hide the slin errors

    Hi Shilpa.
    I would like to suggest my opinion,
    Refered from,
    [SAP HELP Library - Standard Reference for Errors and Warnings|http://help.sap.com/saphelp_nw04s/helpdata/en/43/00c5b7daf15166e10000000a1553f6/content.htm]
    SLIN Infos point to possible (semantic) program errors. According to the situation, the program should be changed or the messages should be switched off.+
    +Only the SLIN messages of this category can be switched off by means of special comments
    Reference,
    Use u201C#EC * to hide warnings from places that cannot be removed by proper typing.
    [SDN Library - Standard Reference - PDF - Make ABAP code unicode enabled - Hide SLIN Error Messages|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c031aa90-0201-0010-b69d-88a278e158c8]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • How to hide "Help" icon in "Tech Support and Training" channel in CLM

    How to hide "Help" icon in "Tech Support and Training" channel in CLM.
    Is there a way to link the Help icon to custom training pdf's rather than standard training pdf "buyer_online_help"
    Regards,
    Gurmeet

    Hi Gurmeet
    In order to display custom training PDF, an alternative approach could be to make use of workbench channel "Links". You can store the custom PDF on intranet and display the link under links channel.
    Regards
    Mudit Saini

  • How to hide navigation panel buttons of interactive form

    Hi Gurs,
    Can any one expalin how to hide the navigation panel buttons of interactivge form through coding in WD.
    Thanks
    Rao.
    Edited by: rahul raao on Apr 30, 2009 9:57 AM

    Hi,
    You can access the document Adobe XML Form Object Model Reference 
    http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf
    and search for "presence" our "relevant".
    I think this is what you are looking for.
    Best regards,
    Ana Carolina.

  • How to hide the pricing conditions specified in pricing procedure of sd.

    dear friends,
    my situation is to hide the conditions specified in the pricing procedure. so that it is not viewed by the some users.can you please tell me how to hide the conditions. so some of the persons, who are having authorization to see the conditions , will be able to see the pricing conditions.
    can you please suggest me how to do this.
    regards,
    g.v.shivakkumar

    Authorisation  issues viz. Role Impementations
    Hide Condition Records Line Item & Header Wise from all the transactions QK / So /  P.I. / Enquiry / Invoice etc. for specific user grps. - in CRETATE / AMEND / DISPLAY / REPORTS all
    Only Display the fields
    regards,
    g.v.shivakkumar

  • How to hide some select-option of Logical Database in report?

    How to hide select-option of  Logical Database in report?eg . In Logical Database 'PNP' , my code is 'GET  PERNR' , excute the report , select-screen is displayed . I want to hide some select-options , such as PNPPERNR-LOW .
    Edited by: rongrong wang  on Mar 26, 2008 9:31 AM

    U need to write code in initialization as
    initialization.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW'.
    screen-active = '0'.
    modify screen.
    endif.
    if screen-name = 'PNPPERNR-HIGH'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.

Maybe you are looking for

  • Building Firefox on Linux

    duplicate of [/questions/1036945] I downloaded the mozilla source code bundle and followed the instructions from https://developer.mozilla.org/en-US/docs/Simple_Firefox_build#Building But i get an error "could not find mozilla runtime "I am new to th

  • Any reason why I should use Safari on my PC

    I use Mozilla now. I now have an Iphone. Is there any reason why I should download and use Safari on my PC? I expect the functions will be different from IE or Mozilla or maybe better, but is it a good idea to download and use since I have an Iphone?

  • Multiple NICs - UDP fails

    Hi, My computer has a wireless NIC and a standard ethernet NIC. I've written an application to send and receive UDP packets. This worked in an earlier application going over the wireless LAN. Now I am trying to use a similar application over the ethe

  • CRM ECC Mapping BP Account Groups

    Hello, I have searched the forum for an answer and I didn't find many answers about this (and what I find I think they are not proven procedures) Do you have a proven procedure to map 1 Grouping in CRM to 1:n Account groups in ECC. Thanx in advanced.

  • Is XIB not supported in static library (for creating Native Extension)?

    Hello, These day I'm trying to build a static library in XCode to build a Native Extension. The original project from which I'm creating a static library is runs well on device. But when I creates a static library project along with one XIB file with