Display MS word file in Office control

Hi all,
I am using the Office control UI element to display a MS word file in WD application. I have created a Mime object for the word file and get this file data into a Xstring attribute, and bind this attribute with the datasource property of the Office control.
But at the runtime I am not able to display the Word file, it displays only a White colour container with text SAP IOS. Can anyone suggest me how I can get the word file in WD component using office control.
I have also checked SOIS pakage, but didn't get any solution from the example given in this package.
For your reference I am using the below code to get the mime object in Xstring attribute.
DATA:
  mime_repository TYPE REF TO if_mr_api,
  content TYPE xstring,
  url TYPE string VALUE '/SAP/BC/WEBDYNPRO/SAP/ZTEST_SAN5/TEST.docx'.
  mime_repository = cl_mime_repository_api=>get_api( ).
  CALL METHOD mime_repository->get
    EXPORTING
      i_url     = url
    IMPORTING
      e_content = content.
  DATA lo_nd_office TYPE REF TO if_wd_context_node.
  DATA lo_el_office TYPE REF TO if_wd_context_element.
  DATA ls_office TYPE wd_this->element_office.
  DATA lv_test TYPE wd_this->element_office-test.
navigate from <CONTEXT> to <OFFICE> via lead selection
  lo_nd_office = wd_context->get_child_node( name = wd_this->wdctx_office ).
get element via lead selection
  lo_el_office = lo_nd_office->get_element( ).
  lv_test = content.
Set single attribute
  lo_el_office->set_attribute(
    EXPORTING
      name =  `TEST`
     value = lv_test ).
This lv_test having the Xstring data after execution but didn't set this data as word file at runtime.
Please suggest if anyone have any idea on this.
Thanks
Sanket

hi,
try this in browser..
tools->internet options->security->custom level
here you will find Active x controls and plugis..
enable all of them and try your applications..
if it is helpful pl give some points buddy:-)
regards,
Kranthi.

Similar Messages

  • Displaying MS Word File in browser

    Hello,
    Can anyone pls tell about the method to display MS word file present in a folder in my site on the browser.
    I dont want it to give it as download dialog box.
    Thanks
    Sharath

    It may still be easier to use Google Documents.
    But if you don't want to do that, I suggest that you check SourceForge or jakarta.apache.org. There's a project called POI that lets you process some Microsoft Office documents in Java (Excel in particular), and there's probably one that deals with Word docs. Someone may have already written a utility that uses that to turn Word into HTML. Then you could tie that into your servlet environment.
    Trying to display the Word file on the user's browser, directly, as a Word file and not processed into something else, is likely to be a tremendous pain in the butt.
    Another thing you could possibly do is convert all your Word documents into HTML or XML or some other more portable format, before you even install them on your server. Make it part of your build/deployment process. It sounds a bit painful, and it might be at first, but doing things at build time is much nicer than doing it at run time.
    Generally, I'd advise moving away from Word format completely, even before build time, if you can possibly get away with it.

  • Displaying a word file stored as BLOB in the database

    Post Author: Sathish K Sekar
    CA Forum: WebIntelligence Reporting
    Hi,
    Is it possible for us to display a word file which is stored as a BLOB object in  our database.
    We are using BO XIR2.
    Thanks in advance
    Sathish

    Post Author: InfluentialSoftware
    CA Forum: WebIntelligence Reporting
    Sathish - is this query specific to wanting to display a Word file or does it relate to how to display any BLOB objects in the database via Infoview?Thanks,Andy 

  • Reading/Displaying MS Word file in Flex application

    Hello,
    Is there any way, by which I can read/display word file as it is in Flex application (Web based). Is there any way or work around by which I can achieve this.

    Hello,
    You can find swc-s that convert doc files to pdf files, you can also convert one page at a time, in case you have a big document.
    Claude Bur.

  • Use JSP to display MS Word file

    Hi All,
    I have a JSP web application running on Mac OS X server and have some MS Word files on the server. I want to render the MS Word files to HTML, embed it as part of the web page. Is it possible at all? If so, where to start?
    Any adviced will be highly appreciated. Thanks.

    hi,
    try this in browser..
    tools->internet options->security->custom level
    here you will find Active x controls and plugis..
    enable all of them and try your applications..
    if it is helpful pl give some points buddy:-)
    regards,
    Kranthi.

  • Display word file from web repository

    Hi,
    I have an application that stores word files in the sap web repository. Now I need to display a word file in webdynpro. There are examples where a word file is displayed by the ui element officecontrol from mime repository.
    How I can get access to word files in web repository and display them?
    Regards,
    Ilya
    Edited by: Ilya M. on Dec 12, 2010 12:02 PM
    Edited by: Ilya M. on Dec 12, 2010 12:03 PM

    hi,
    see this thread [SAP Web Repository, how can acess it from outside|SAP Web Repository, how can acess it from outside]

  • Create Excel/Word Files on UNIX ?

    Hello Everyone,
    What are my options (including products) for creating Excel/Word files on UNIX/Linux (no OLE) using ABAP ?
    Thank you

    I did some asking around outside the forum
    and I was told there were plenty of ways to create Excel, Word, PDF files etc. any where using various functions in ABAP.
    The reason I'm asking is that I recently wrote a project for generating .DOCX and .XLSX (OpenXML) files directly (without using MS Office or Open Office etc.) on a different platform
    and I was thinking of writing a similar Open Source project in ABAP as a pet project.
    The way you would use it is visually design the Excel or Word file in Office and sort of mail merge the data in 1 or 2 commands in ABAP.
    It works everywhere without Office and on any OS, and is literally 100x times faster then ACTIVEX/OLE.
    So ... does anyone actually have a definitive answer ??
    Thank you.
    Edited by: Alon Blich on Jun 23, 2010 9:05 PM

  • Office Control does not display word document

    HI all,
    I followed the example code to display a word document in the office Control UI, but the display remains blank when I push the button to 'show document'.
    I do not have MS Office installed on the server so I have a wordpad named example.doc on the C drive. Can I read the data from wordpad and display it on the Office Control?
    Thanks
    Jay.

    > Thanks all,
    > I have Office 2003 installed on the client but not on
    > the server. The bytes[] array gets loaded with the
    > string '[B@10e770f', but the display stays empty.
    >
    > Jay
    Hi Jay,
    I need to use this feature as well. Did you get it to work. Can you display and edit a Microsoft Word document from within a browser page. It would be good to know that you have been successful.
    Jesse

  • Word 2007 file not displaying from CHM file link

    Hello all!  I took the time to search around the forum before posting this, so I hope I didn't miss the answer somewhere.
    I'm using RH 8, working on a Policy and Procedure manual, resulting in a CHM file.  I've worked in earlier versions of RH with the same issues as everyone else (network deployment is a no-no, etc.), but this is the first time that I've had an issue with a linked-to Word file (linked as a "Link To File" link from within the project).
    When navigating through the CHM file on a local drive, and upon clicking on a link to a Word file, I get this warning dialog box:
    If you were to click "Open", you get a few-second delay (as if Word were opening), but then nothing happens.  The Word file does not open.  I believe the issue is with Office 2007.  I tested this exact same CHM file on a PC running an older version of Office, and the Word file opens without issue.
    Has anyone seen this type of behavior?  Is there a RH 8-based solution?
    Thanks for any help you can give!
    Bob

    Try Word Repair Toolbox, it's open source and may get your info back
    http://www.word.repairtoolbox.com/
    As free method to get your word documents back:
    Word may have automatically saved your file.When you start Word the next time, if any AutoRecover files were found, results will be displayed in the Document Recovery pane. Auto recovery option for word 2007 are below:
    1 Click the Microsoft Office Button, and then click Word Options.
    2 In the Navigation Pane, click Save.
    3 In the AutoRecover file location box, note the path, and then click Cancel.
    4 Close Word.
    5 Open the folder that you noted in step 3.
    6 Look for files whose names end in .asd (AutoRecover files).
    7 If you find the Word document that you are looking for, double-click it to open it.
    8 Save it immediately.

  • Which is best for converting a novel from Microsoft Office Word file to editable and sharable PDF

    I am a writer who needs to convert a Microsoft Office Word File to a PDF file that can be edited, re-formatted and sent to an on line printing company.  They recommended an Adobe PDF - PDX-1a available with Acrobat Professional.  I don't need photos or graphs, etc.  The cover design is Microsoft Graphic Art.  Sizing, of pages will be 5.5 x 8.5.  Number of pages that size approx. 486.
    Can you tell me if the PDF Creator is the one I am looking for?

    Good day,
    If your Word file is under 100MB in size, our CreatePDF service should do the job for you to create a PDF file. The file won't be a PDF/X-1a, but if there are no photos or graphics, it may suffice. If you must create a PDF that's PDF/X-1a-compliant, you need Adobe Acrobat Professional.
    Please let us know if you have any questions.
    Kind regards,
    David

  • My Office 2007 Word Files are all corrupted. Can't open any of them.

    I can create and open new 2007 Word files.  However, all my files prior to 10/27/2014 cannot be opened.  I get a corrupted message.  Says the file cannot be open because there are problems with the content.  Then asks me if I want to
    recover the content and when clicking yes, I get the same corrupted message.  Something happened on 10/27/2014.  I have three files in my Word directory that I did not create.  One is an Internet shortcut called "Install_TOR" which
    when accessed tries to bring up a site called paytordmbdekmizq.torpayusd.com'80314 but the Internet is unable to display the page.
    The other two files have the same content; one in HTML and one in text.  Both called Decrypt_Instruction.  The content is:
    What happened to your files ?
    All of your files were protected by a strong encryption with RSA-2048 using CryptoWall 2.0.
    More information about the encryption keys using RSA-2048 can be found here: en.wikipedia.org/wiki/RSA (cryptosystem)  
    What does this mean ?
    This means that the structure and data within your files have been irrevocably changed, you will not be able to work with them, read them or see them,
    it is the same thing as losing them forever, but with our help, you can restore them.
    How did this happen ?
    Especially for you, on our server was generated the secret key pair RSA-2048 - public and private.
    All your files were encrypted with the public key, which has been transferred to your computer via the Internet.
    Decrypting of your files is only possible with the help of the private key and decrypt program, which is on our secret server.
    What do I do ?
    Alas, if you do not take the necessary measures for the specified time then the conditions for obtaining the private key will be changed.
    If you really value your data, then we suggest you do not waste valuable time searching for other solutions because they do not exist.
    For more specific instructions, please visit your personal home page, there are a few different addresses pointing to your page below:
    1.https://paytordmbdekmizq.torpayusd.com/N803i4
    2.https://paytordmbdekmizq.torpayeur.com/N803i4
    3.https://paytordmbdekmizq.torpaycnf.com/N803i4
    4.https://paytordmbdekmizq.torpaycash.com/N803i4
    If for some reasons the addresses are not available, follow these steps:
    1.Download and install tor-browser: torproject.org/projects/torbrowser.html.en
    2.After a successful installation, run the browser and wait for initialization.
    3.Type in the address bar: paytordmbdekmizq.onion/N803i4
    4.Follow the instructions on the site.
    IMPORTANT INFORMATION:
    Your personal page: paytordmbdekmizq.torpayusd.com/N80314
    Your personal page (using TOR): paytordmbdekmizq.onion/N803i4
    Your personal identification number (if you open the site (or TOR 's) directly): N803i4

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • How can I retain the attached .pdf files (displayed as icons) from my word file 2010 to a pdf file?

    Hi everybody,
    I have looked for an answer in this forum ... without any good result.
    I worked on a Word 2010 file with some attached pdf files. These attached files are displayed as icons on the word file. If you double click on them, you can consult them. This works very good.
    Problem: I would like to convert this word 2010 file into a pdf file, which keeps the icons (linked to attached files) active. If I "pdf" this with my current system, icons are displayed as pictures: I cannot open the attached files.
    My question is very simple: is it possible to retain these active icons (= to open attached documents) in a pdf file? Which adobe package should I use?
    Many thanks for your help 
    cheers
    elgreengo

    No, it's not possible, but I agree it would be a very nice feature.

  • Cannot Save Word files as a PDF in Office 2013 with Office customization tool

    Hello
    I'm deploying office 2013 as a part of a post clone task.  Using the customization tool I created an msp with the full installation (without outlook,Link, or skydrive) I noticed that I cannot save or export files as PDF files.  If I do a manual
    install (without MSP) I can save files as pdf.  I can't find anywhere in the customization tool that allows me to choose different "save as" file types. In office 2010 I used to be able to save word files as PDF files.  Any ideas would
    be greatly appreciated.
    Charles

    Hi,
    In regarding the issue, could you give me more information? Did you test to install the Office 2013 by using MSP and manual installation in the same computer? Did the other Office suits can not save files as pdf?
    Let's do some test to narrow down the issue:
    If you use the only one computer to test, please export a new MSP file include all the suits and use the all the default setting. Then we follow the
    link to deploy again.
    If the issue still exists, please try to change a computer, and update Adobe programs to install the new MSP file to test.
    If you get some error message when you save as pdf through Word, please upload, I'll do more deeply research.
    Regards,
    George Zhao
    TechNet Community Support

  • Flash Controls Not Displaying in Embedded File

    I'm having troubles with embedding a Flash SWF file. On my
    original website, I can see the video fine. When I try embedding
    the SWF to another, the controls do not display. Any thoughts on
    getting controls to display when embedding?

    Okay – I think I'm making progress :-)
    In my FLA file, I have a FLVPlayback component in my library.
    When I export the video to an SWF it provides me with 2 SWF files:
    the flash movie and the skin. With those 2 files, I also upload my
    FLV file to my server.
    On my media server, the video displays correctly (here's the
    link to it:
    http://jonah.eastern.edu/ben/ben_jump.html)
    However, when I try embedding the video onto a different
    sight and server, just the video displays. I completely understand
    that there's 2 different SWF's, but how do I import the video
    correctly, so the video playback is displaying correctly when
    embedded on other/external sites.
    Is there a way to attach/import the SWF for the skin? I'm
    just trying to embed video's like YouTube and I'm failing horribly!
    Thank you so much!

  • How to save .pdf file using office word and excel

    Can someone help me how to save .pdf files using office word and excel?  I reinstalled my adobe 7.0 pro in my new pc and before I was able to do it but with my old pc.

    For anything after Office 2003, you have to print to the Adobe PDF printer. If you installed AA 7 on OS newer than XP, you may have to do a workaround to get it to work. With later versions of WORD you can always use the MS plugin for creating PDFs.

Maybe you are looking for

  • Problem in Legend Map Request

    Hi All, I am generating a map request to get a legend in PDF format as follows. <?xml version="1.0" standalone="yes"?><map_request datasource="MYDATASOURCE" format="PDF_STREAM" width="1188" height="840" antialiase="true" srid="8292"><legend bgstyle="

  • Windows SBS 2011 Essentials out of space on C Drive

    Hi there! We have a Dell server running SBS Essentials 2011, and we have recently been getting messages saying that the C Drive is full. When we purchased the server, we ensured that Dell installed loads of storage for us which is confusing. Upon lo

  • Does Curve use Wi-Fi..?

    my GF has just gotten a curve with a measely 100Mb allowance, we have setup wi-fi to use in th home, but when we use it the wifi icon disapears from the top and the 3G icon remains, this tells me its using data via 3G rather than wi-fi-  when turn of

  • Vendor with excise

    Hi, How I can find out, Wether  the Vendor have maintain Excise Details. where I can Check it? Regards, Dhanush.S.T

  • User print out the report of Tcode-fc10 the printing is 7-8 times repeated

    Hi, User print out the report of Tcode-fc10 the printing is 7-8 times repeated.printer is SL00004 Korea.What can I do? so that user  gets only  one copy .Is there any setting .User is getting this issue only when they print out the report of T-code(f