PDF generation in Web Dynpro

Hi,
I need to generate a PDF of the View by clicking the Print Button on the View.
The Backend uses smart form and sends a binfile to web dynpro.
I have used the below code to generate the pdf:
byte[] pdfContent = wdContext.currentPrintCrElement().getBin_File();
     IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);          
     try{
          wdComponentAPI.getWindowManager().createNonModalExternalWindow(pdfResource.getURL(), "Report View").show();
     }catch(WDURLException e){
          wdComponentAPI.getMessageManager().reportException("URL not found", true);
This code works fine (i.e. generates pdf )when I execute it locally (on my machine), but it throws a Null Pointer Exception when I click on the Print button on the PORTAL.
Can anyone suggest what eeds to be done?
P.S.: WDWebResource.getWebResource() used above appears to be deprecated.

Hi,
The ABAP import parameters are:
Crid (string) and Language(char)
The ABAP export parameter is:
Bin_File(byte array)
Below is code:
public void printCRForm( )
    //@@begin printCRForm()
     executePrintoutcrGet();
     String fileName = wdContext.currentMasterDataViewElement().getCrid().toString().trim() + System.currentTimeMillis() + ".pdf";
     String pdfOutput = new String(wdContext.currentOutputElement().getBin_File());
     if (pdfOutput != null)
          try
               String pdfResoucePath = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), fileName);
               File pdfFile = new File(pdfResoucePath);
               //FileOutputStream fileOutputStream = new FileOutputStream(pdfFile);
          //       Display the PDF to the browser
               String fileURL = WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(), fileName);
               IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(fileURL, "Pdf Browser");
               window.show();          
          } catch (Exception e)
               wdComponentAPI.getMessageManager().reportException("Unable to create PDF", true);
public void executePrintoutcrGet( )
    //@@begin executePrintoutcrGet()
    //$$begin Service Controller(-858835809)
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
    try
      wdContext.currentZ_Kp_Printoutcr_InputElement().setCrid(wdContext.currentMasterDataViewElement().getCrid());
      // wdContext.currentZ_Kp_Printoutcr_InputElement().setLanguage(wdContext.currentContextElement().getUserLanguage());
       wdContext.currentZ_Kp_Printoutcr_InputElement().setLanguage("DE");
      wdContext.currentZ_Kp_Printoutcr_InputElement().modelObject().execute();
      wdContext.nodeOutput().invalidate();
      WDCopyService.copyElements(wdContext.nodeOutput(), wdContext.nodePrintCr());
    catch(WDDynamicRFCExecuteException e)
      manager.reportException(e.getMessage(), false);
    //$$end
    //@@end
Below is the node structure:
-Z_Kp_Printoutcr_Input
   - Output
      - Bin_File
   - Crid
   - Language

Similar Messages

  • How to create PDF from a web dynpro screen

    Hi all,
    I am in the process of creating my first web dynpro application for parking a document, the new requirement is when the user parks the document, a PDF of the web dynpro screen should also be generated. Can you please tell me how can I achieve that.
    Thanks,
    Rajat

    A PDF generated from the screen?  There is no SAP delivered functionality to do this. I might suggest that you just use the browser print and print to a PDF generated virtual printer.  Otherwise you would have to design an Adobe Form (and run it within WDA using the InteractiveForm) that matched the interface of the WDA screen.  There is no automatic generation.  You would have to design and maintain each independently.

  • How to call PDF file in Web Dynpro Appl?

    How to call PDF file in Web Dynpro Appl?

    Hi Gobinath,
    1. Create a value attribute of type byte called pdfSource.
    2. Insert an UI element called Interactive Form in your layout
    3. Set the source property of this Interactive From UI element to the context pdfSource.
    4. Insert a button which would open your pdf file.
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
       IPrivate<viewname>.IContextElement contextElement = wdContext.currentContextElement();
             byte[] bytes = contextElement.getPdfSource();
             try
                   File file = new File("C:
    temp
    example.pdf");
                   FileOutputStream os = new FileOutputStream(file);
                   os.write(bytes);
                   os.close();
                catch (IOException e)
                   // do something
                   e.printStackTrace();
        //@@end
    Warm Regards,
    Murtuza

  • Problems with Adobe PDF forms in Web Dynpro Java

    As of now , I have two major issues in developing Adobe PDF forms in Web Dynpro Java .
    1.Text getting wrapped and repeated from the first line :
    Any text field that flows to the next page gets wrapped at the end of the page and is again printed on the next page beginning from the first line .
    For eg:
    If I have 4 lines in a text field that is at the end of the page
    1111111111111111111111
    2222222222222222222222
    3333333333333333333333
    4444444444444444444444
    and the page holds space for only two lines it prints the lines
    1111111111111111111111
    2222222222222222222222
    in the first page and then proceeds to the next page and prints
    1111111111111111111111
    2222222222222222222222
    rather than printing
    3333333333333333333333
    4444444444444444444444
    2.No way to hide a page at runtime:
    It is not possible to hide a page in a PDF form at runtime . If scripting is used , the page turns into a blank page but not hidden .
    Any pointers on this????????
    Helpful answers will be suitably rewarded with points!!!!

    Yes,I am using the versions that you mentioned.
    I have a node called <b>MasterData</b> which is the root node for my PDF Form.I have a node called <b>GenData</b> inside this node whose <b>ctx_Appraisal_Type_Num</b> attribute is bound to a hidden TextField in my form.In the <b>docReady</b> event of this TextField, I am writing the following FormCalc script to hide my SubForm whose Id is <b>MngrCmptnc</b>
    if(MasterData.GenData.ctx_Appraisal_Type_Num == "2")
    then
    MasterData.MngrCmptnc.presence = "visible"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "visible"
    MasterData.StrImp.presence = "visible"
    else
    MasterData.MngrCmptnc.presence = "hidden"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "hidden"
    MasterData.StrImp.presence = "hidden"
    endif

  • HELP !!! Problem in R/3 trying to get a PDF on to Web Dynpro

    Hi,
    I read a note about <b>How to get PDF on to Web Dynpro iView </b>, it was very helpfull, but the problem is in R/3 because I need that the Print Window do not open and send data direct to Web Dynpro.
    the code is:
      control_parameters-no_dialog  = 'X'.
      control_parameters-preview    = ' '.
      control_parameters-langu      = 'S'.
      control_parameters-getotf     = 'X'.
      output_options-xsfcmode   = 'X'.
      output_options-xsf        = space.
      output_options-xdfcmode   = 'X'.
      output_options-xdf        = space.
      output_options-tdnoprev   = 'X'.
    *  OUTPUT_OPTIONS-TDNOPRINT  = 'X'.
      output_options-xsfoutdev = output_options-tddest = 'ZWIN'.
      output_options-tdimmed    = 'X'.
      output_options-tddelete   = 'X'.
    call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname              = 'Z_REP_TRANS_PRES'
    *   VARIANT                 = ' '
    *   DIRECT_CALL             = ' '
       importing
         fm_name                  = formato
    * EXCEPTIONS
    *   NO_FORM                 = 1
    *   NO_FUNCTION_MODULE      = 2
    *   OTHERS                  = 3
    call function '/1BCDWB/SF00000022'
    exporting
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       control_parameters         = control_parameters
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
       output_options             = output_options
    *   USER_SETTINGS              = 'X'
    *   USUARIO                    =
    *   FECHA_INI                  =
    *   FECHA_FIN                  =
       tipo_rep                   = tipo_rep
    *   TIPO                       =
    *   LOGO                       = 'ZHR_CANTV_LOGO'
    importing
    *   DOCUMENT_OUTPUT_INFO       =
       job_output_info            = output_job
    *   JOB_OUTPUT_OPTIONS         =
      tables
        transf_pres                = transf_pres
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5
      call function 'CONVERT_OTF'
        exporting
          format                = 'PDF'
    */      MAX_LINEWIDTH         = 132
        importing
          bin_filesize          = numbytes
          bin_file              = bin_file
        tables
          otf                   = zoftdata
          lines                 = zpdf
        exceptions
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          others                = 0.
    Thanks in advance!!!
    tgfch

    Hi Claus,
    Try use this web dynpro code to open the XSTRING that coming from abap side:
    IWDCachedWebResource resource = WDWebResource.getWebResource(
    wdContext.currentZReport_OutputElement().getPdf(), WDWebResourceType.getWebResourceTypeForFileExtensio("pdf"));
    resource.setResourceName(this.getDescriptionReport());
    // Create a External Window with the URL destination
    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getURL(), this.getDescriptionReport(), true);
    // Eliminate some features of the window
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.MENU_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.setWindowSize(780,430);
    window.setWindowPosition(20,140);
    window.open();
    This code will open its PDF report!!!
    Regards,
    Luciano Leite

  • Strange problem of Pdf downloading  with Web Dynpro

    Hi, experts, I have to setup a project to realize pdf downloading with web dynpro. But unluckily, I have tried all the methods in this froum ,there's really strange problem .Because when I click the link of Download UI link, there's no reaction at all, I really don't know why.Below is the codes I used , can anyone help me ? thank you very much!
    public void wdDoInit()
        //@@begin wdDoInit()
              IWDAttributeInfo attInfo =
                   wdContext
                        .currentContextElement()
                        .node()
                        .getNodeInfo()
                        .getAttribute(
                        "Pdfsource");
              ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
              IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
              binaryType.setFileName("test.pdf");
              binaryType.setMimeType(WDWebResourceType.PDF);
              try {
                   int length =
                        (int) wdContext.currentPdfdownloadElement().getBin_Filesize();
                   byte b[] = new byte[length];
                   b = wdContext.currentPdfdownloadElement().getBin_File();
                   wdContext.currentContextElement().setPdfsource(b);
              } catch (Exception ex) {
    "Pdfsource" is the context value attribute of type binary.And Bin_File is the xstring type parameter from my RFC contains pdf content.
    I used two views and one customer-controller . I put some value in the first view to set search condition.and the second then appears and have the download UI element. Are there any additional codes I should use? pls help!

    Hi Hao,
    Try this out
    Suppose the file name is test.doc in c drive in server
    create a context attribute filedata of binary type
    bind it to data property
    write the following code
    try
       File input = new File("C:
    test.doc");
       int length =(int)input.length();
       //Create a byte array b to hold the file
       byte b[] = new byte[length];
       FileInputStream in = new FileInputStream(input);
       //Reading the file to a byte array b
       in.read(b);            
       in.close();
       //Setting the data from the byte array to the context element.
       wdContext.currentContextElement().setfiledata(b);
    catch(Exception ex)
      wdComponentAPI.getMessageManager().reportSuccess("Error in File 
      IO"+ex.toString());
    // Structure information of the context attribute
    IWDAttributeInfo attinfo = wdContext.getNodeInfo().getAttribute("filedata");
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attinfo.getModifiableSimpleType();
    // Default File name which appears when opened on client machine
    binaryType.setFileName("testing.doc");
    //Explicitly setting the file type
    binaryType.setMimeType(WDWebResourceType.DOC);

  • How call PDF file in Web dynpro screen?

    i have one labal,one input box and one search button also...Just i clk search button mns...that PDK file will come..for printing purpose...
    How i will call that PDF file? please give details...

    hi...this is my error...
    Failed to process request. Please contact your system administrator.
    [Hide]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.sal.deployment.api.WDDeploymentException: Failed to get deployable object part for application 'webdynpro.pdf' of deployable object 'local/LoginProject1'.
        at com.sap.tc.webdynpro.serverimpl.core.deployment.AbstractDeployableObject.getApplication(AbstractDeployableObject.java:158)
        at com.sap.tc.webdynpro.clientserver.session.RequestManager.getApplicationDeployableObjectPart(RequestManager.java:381)
        at com.sap.tc.webdynpro.clientserver.session.RequestManager.initTask(RequestManager.java:317)
        at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:143)
        at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
        ... 17 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    Server
    Web Dynpro Runtime Vendor: SAP, build ID: 7.0009.20060804145649.0000 (release=645_VAL_REL, buildtime=2006-08-05:15:08:24[UTC], changelist=413534, host=pwdfm101), build date: Mon Oct 30 16:29:02 IST 2006
    J2EE Engine No information available
    Java VM Java HotSpot(TM) Server VM, version:1.4.2_09-b05, vendor: Sun Microsystems Inc.
    Operating system Windows XP, version: 5.1, architecture: x86
    Session & Other
    Session Locale en_US
    Time of Failure Thu Sep 27 16:48:55 IST 2007 (Java Time: 1190891935798)
    Web Dynpro Code Generation Infos
    Detailed Error Information
    Detailed Exception Chain
    com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'local/LoginProject1' and application 'webdynpro.pdf' are not deployed on the server. Please check the used URL for typos.
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.getApplicationDeployableObjectPart(RequestManager.java:383)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.initTask(RequestManager.java:317)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:143)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.tc.webdynpro.services.sal.deployment.api.WDDeploymentException: Failed to get deployable object part for application 'webdynpro.pdf' of deployable object 'local/LoginProject1'.
         at com.sap.tc.webdynpro.serverimpl.core.deployment.AbstractDeployableObject.getApplication(AbstractDeployableObject.java:158)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.getApplicationDeployableObjectPart(RequestManager.java:381)
         ... 20 more

  • Saving Offline PDF form from Web-Dynpro with Dynamic File Name

    Hello All,
    We have a offline PDF form.... When we save the form, a default file name appears. We need to change this default name to some value that is already available in the form fields.
    I have gone through some posts in the forum. However not able to figure out the solution.
    Following are the details:
    1. Web-Dynpro used : ABAP Web-Dynpro
    2. Form Type: Native
    3. Offline Editable form
    Regards,
    Kunjal Patel

    Hi Rajesh,
    I have not yet found a solution....
    Also as you have seen no one is replying.....
    All,
    Should we consider that this issue does not have a specific solution?
    Regards,
    Kunjal

  • Pdf output of web dynpro does not display in cProjects

    Hi,
    We created a custom web dynpro which calls a smartform and gives a pdf output. This pdf output is seen on the cProjects portal under a customized tab.
    The issue is, some users are able to see this pdf output on teh portal without any issues but others cannot view it in their system.
    When the first time the users try to view this they get a prompt for downloading activex from adobe ag and on accepting this they are able to view the pdf. This prompt does not come up for other users and hence they are not able to view the pdf output of the web dynpro.
    I checked the activex control settings in the IE options and they are all enabled. Still I do not get this pop up prompting for activex download.
    Are there any settings in the internet explorer or the system which have to be done to view the pdf on the portal?
    Any thougths on this will be extremely helpful.
    Thanks,
    SImmi
    Edited by: Simmi Balakrishnan on Aug 12, 2008 8:22 PM
    Edited by: Simmi Balakrishnan on Aug 12, 2008 8:24 PM

    Hi Simmi,
    two links might be useful to you:
    My struggles with the Adobe Document Services  
    In this SDN blog, Consultant Achim Hauck provides tips for installing Interactive Forms.
    My struggles with the Adobe Document Services in WAS6.40
    SAP Interactive Forms by Adobe - Configuration Guides
    SAP Interactive Forms by Adobe - Configuration Guides
    Kind regards,
    Angelika

  • Display documents (jpg,doc,tff,ppt,pps,xls,pdf etc) in web dynpro

    Hi experts,
                    I have a requirement to upload the document of any type (jpg,doc,tff,ppt,pps,xls,pdf etc)  to a Z table (may be in a binary format) in a web dynpro application.
    I think this can be achieved through Fileupload view element.
    In another  window, I need to display the document based on what is selected in the table row. Which control or method can display any type of document?  As far as I know, the office control view element can only display documents of type (.doc and .xls).
    Please provide pointers on this or any example will help me.
    Thanks,
    AmitJain

    Abhimanyu,
                  Thanks for the reply. Wonderful it worked like a miracle.
    Awarded full points.
    Thanks
    Code I used in the action:  onactionclick
    METHOD onactionclick .
      DATA: content TYPE xstring.
      DATA:  lr_context_view_node          TYPE REF TO if_wd_context_node.
      wd_context->get_attribute(
          EXPORTING
            name =  `PDF`
          IMPORTING
            value = content ).
      CALL METHOD cl_wd_runtime_services=>attach_file_to_response
        EXPORTING
          i_filename      = 'Default_pdf.pdf'
          i_content       =   content
          i_mime_type     =   'pdf'
         i_in_new_window = ABAP_FALSE
         i_inplace       = ABAP_FALSE
    ENDMETHOD.
    Edited by: Amit Jain on Apr 2, 2009 5:46 PM

  • Pdf files for web dynpro

    can anybdy tell any link to get the study materials for web dynpro for java in .pdf format.

    Hi,
    there you can find the entire documentation, you normally have a look at help.sap.com, in pdf format (it's NW2004s, SP 5 or 6, I guess)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/nw/netweaverdevelopersguide2004s/sap%20netweaver%20developer's%20Guide%202004s/UsingJava_00_PDFsList.ca
    (copy & paste the link, directly it won't work )
    kind regards
    Stefanie

  • Regd PDF Printing from Web Dynpro

    Hi,
    We are using NW04s SP10 . I need to show the data coming from RFC as PDF in Web Dynpro. The RFC is returning String as output after SAP Script is converted to PDF . Below is the code i have written in WD for opening as PDF. When i try to open it as PDF, I am getting message in acrobat reader  "<i>The file is damaged and could not be repaired</i>" . Did anyone faced the similar problem before?
    //Converting the string to binary
    b = wdContext.nodeOutput().nodeBinary_File().getBinary_FileElementAt(i).getBin_File().getBytes();
      pdfResource=WDWebResource.getPublicCachedWebResource(b,WDWebResourceType.PDF,WDScopeType.CLIENTSESSION_SCOPE,wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"Test"+i);
    pdfResource.setResourceName("test.pdf");
       wdComponentAPI.getWindowManager().createExternalWindow(pdfResource.getURL(),"Test"+i,false).open();     
    Thanks,
    Vasu

    Hi all,
    I am able to solve myself. The problem is with the generated data. Now i am able to see the PDF but i am facing issue in showing the data in pdf which i have posted in another thread.
    Thanks,
    Vasu

  • PDF Rending in Web Dynpro  Unknown.pdf

    I am getting a pdf document from R/3.  I get the byte[] from the context node.
    The num bytes returned is >0  however when I render the pdf as follows I get a black pdf document displayed and I notice that unknown.pdf the generated url.
    BTW, I don't see any way to set the filename.  I don't want unknown.pdf in the url.
    byte[] pdfContent = wdContext.currentContextElement().getPdfDokument();
    try {
      IWDWebResource pdfResource = WDWebResource.getWebResource
        (pdfContent, WDWebResourceType.PDF);
      wdComponentAPI.getWindowManager().createExternalWindow(
        pdfResource.getURL(),"Title",
        false).open();
    } catch (WDURLException e) {
      e.printStackTrace();

    Hi Bob,
    In NW2004s we use the following. getPdf() returns a byte[], the filename is "document-<username>.pdf" and source is the attribute of an IFrame UI element.
    private void initPdf() {
      IWDResource resource =
        WDResourceFactory.createResource(
          getPdf(),
          "document-"
            + WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName(),
          WDWebResourceType.PDF);
      String source =
        resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
      wdContext.currentContextElement().setSource(source);
    On NW2004 we use a FileDownload UI element (with target=_self) and we call initFileBinaryType method in the wdDoInit method. Of course you still need to set the binary PdfData context attribute with the actual content of the PDF file.
    private void initFileBinaryType() {
      IWDModifiableBinaryType pdf =
        initFileBinaryType(IPrivateTestAppView.IContextElement.PDF_DATA);
      pdf.setFileName("document-"
        + WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName());
      pdf.setMimeType(WDWebResourceType.PDF);
    private IWDModifiableBinaryType initFileBinaryType(String attribute) {
      return (IWDModifiableBinaryType) wdContext
        .getNodeInfo()
        .getAttribute(attribute)
        .getModifiableSimpleType();
    Kind regards,
    Sigiswald

  • Opening a pdf document using web dynpro

    Dear all,
    Can anyone help me in opening a pdf file which is stored in application server and display through webdynpro interactive form component.
    Appreciate if supporting documents attached.
    Regards
    Srini

    There are two methods two display PDF in webdynpro java
    1. you can use the interactive form
    get the file from the server in a byte format and assign that to the pdfsource property of the interactive form and also set the mode as usepdf.
    2. you can use the iframe also for this
    if you want any more help on this please let me know
    Thanks and Regards
    shanto aloor

  • PDF form problem in web dynpro

    Hello Everybody,
    I have some problem with PDF form in web dynpro application.
    I have used T layout view set. On top view i put one image. On left view i have tree element. On right side i have all other elements.
    Right side, different views are displayed depending upon the option chosen from tree. But, when I opened view containing Adobe form and then try to choose any other options, Internet browser gives system error and browser closed.
    What should be the reason behind this?
    Regards,
    Bhavik

    Hi Markus,
    What should be the version of ACF.
    I have installed ACF SP11.
    My WAS server is SP12.
    Acrobat reader version is 7.0.5.
    But if i change Acrobat reader version to 6.0.3 then it works. But i want version 7.0.5 for date popup.
    Regards,
    Bhavik

Maybe you are looking for

  • Problem with Mail Rule

    I am trying to set up a mail rule that triggers an Applescript. The Applescript will open all attachments with Preview in this case. I know the rule is being triggered because I have two actions for the rule, run the Applescript and Make a sound, and

  • Contact sheet for all pages in a book

    In the Bridge there is a command to make a contact sheet for an InDesign document. Is there a way to make a contact sheet for all the documents in a book at the same time?

  • JTextPane and HyperLinks

    I've got a JTextPane that reads in htm file. It displays fine, but the hyperlinks though underlined and blue do not behave like hyperlinks. Any ideas? import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java

  • Error when building Azure project

    A few days ago I started to see an error when compiling my Azure Project (cloud service with web and worker roles). I've been working with this Azure project for almost 3 years without seeing this before. When I attempt to build my Azure Project, 9 t

  • Invalid UTF8 encoding (in control file)

    Hi, I'm using French characters in my control file (in the body of an email), and getting this java exception: Invalid UTF8 encoding. For example: subject="Oracle Order Acknowledgement for Order ${ORDER NUMBER} (${INSTANCE})">Ci-joint votre accusé de