Viewing ms office files content in portal

Hello, im new to portal and i would like to know how to display the text i4ve got on microsoft word files up in a portlet window. I4ve got the same question with a pdf document.
thanks.
Francesco.

There is a library for working with excel files:
http://code.google.com/p/as3xls/
But I'm not aware of anything for Word.
Converting everything to PDF on the server may be a more realistic approach.

Similar Messages

  • How to read text file content in portal application?

    Hi,
    How do we read text file content in portal application?
    Can anyone forward the code to do do?
    Regards,
    Anagha

    Check the code below. This help you to know how to read the text file content line by line. You can display as you require.
    IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
    IResourceContext resourceContext = new ResourceContext(user);
    String filePath = "/documents/....";
    RID rid = RID.getRID(filePath);
    IResource resource = ResourceFactory.getInstance().getResource(rid,resourceContext);
    InputStream inputStream = resource.getContent().getInputStream();
    BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
    String line = reader.readLine();
    while(line!=null) {
          line = reader.readLine();
         //You can append in string buffer to get file content as string object//
    Regards,
    Yoga

  • Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help.. Thanks in Advance

    Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help..
    Thanks in Advance

    This is not a Java problem, this is a WEBBOT problem.
    I suggest that you research the topic in your FrontPage help files.
    Yes, we do know how to solve this problem using ordinary HTML and JSP. The sample code that you've posted implies that you are looking for an extremely different solution. To put it another way, it looks like you're logging onto the Federal Aviation Administration's forums and asking them how to go from Chicago to New York by train.
    But in any case, if you can't find the information in FrontPage, I'm 100% certain that if you went to www.microsoft.com and searched for FrontPage and downloads, and skipped the results that actually want you to download FrontPage, you'll get some sample code.

  • How to read a file content from portal

    Hi experts,
    I have a file (xml or xlsx), which i have kept in D drive.
    then using GUI_UPLOAD, i have read file content into internal table. then i am proceeding furthur.
    but in real, my file will be in portal (means https:\\in.xyz.com\........\TEST.XML
    in this case i can not use GUI_UPLOAD.
    can any one suggest how can i achieve above. Thanks.
    Regards,
    Venkata Prasad

    Hi venkata
    try this code below
    tables: znks_exceldb.
    types: begin of wa_input,
           emp_id type string,
           name type string,
           middle type string,
           last_name type string,
           address type string,
           acc_num type string,
           mobile type string,
    end of wa_input.
    data: gt_intern type kcde_intern.
    data:gwa_intern type kcde_intern_struc.
    data gt_input type table of wa_input.
    data gwa_input like line of gt_input.
    data it_tab type table of znks_exceldb.
    data it_wa like line of it_tab.
    constants c_seprator type c value ','.
    parameters ex_file type localfile obligatory.
    at selection-screen on value-request for ex_file.
      call function 'F4_FILENAME'
    * EXPORTING
    *   PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
       importing
         file_name           = ex_file.
    start-of-selection.
      perform readfile using ex_file.
      perform insert.
      perform display.
    form readfile using ex_file type localfile.
      data:lv_filename type rlgrap-filename.
      data: lv_index type i.
      field-symbols: <> type any.
      lv_filename = ex_file.
      call function 'KCD_CSV_FILE_TO_INTERN_CONVERT'
        exporting
          i_filename      = lv_filename
          i_separator     = c_seprator
        tables
          e_intern        = gt_intern
        exceptions
          upload_csv      = 1
          upload_filetype = 2
          others          = 3.
      if sy-subrc <> 0.
    * Implement suitable error handling here
      endif.
      loop at gt_intern into gwa_intern.
        move gwa_intern-col to lv_index.
        assign component lv_index of structure gwa_input to <>.
        move:gwa_intern-value to <>.
        at end of row.
          append gwa_input  to gt_input.
          clear gwa_input.
        endat.
      endloop.
    endform.
    form insert.
      loop at gt_input into gwa_input.
        it_wa-emp_id = gwa_input-emp_id.
        it_wa-name = gwa_input-name.
        it_wa-middle = gwa_input-middle.
        it_wa-last_name = gwa_input-last_name.
        it_wa-address = gwa_input-address.
        it_wa-mobile = gwa_input-mobile.
        it_wa-acc_num = gwa_input-acc_num.
        append it_wa to it_tab.
      endloop.
      insert znks_exceldb from table it_tab accepting duplicate keys.
    endform.
    form display.
      loop at gt_input into gwa_input.
        write :/ gwa_input-emp_id,
                 gwa_input-name,
                 gwa_input-middle,
                 gwa_input-last_name,
                 gwa_input-address,
                  gwa_input-mobile,
                  gwa_input-acc_num .
      endloop.
    endform.
    Regards
    Niraj Sinha

  • Is Quick View (preview of file contents under search results) supported in SharePoint 2013 Foundation?

    We recently deployed SharePoint 2013 Foundation but can't make Quick View (seeing the contents of a file when you hover the mouse cursor over it) work in the search results.
    All Site Collection/Site Features are turned on.  Not sure what else to do.
    Does anyone have this feature working in SharePoint 2013 Foundation?
    Thank you!

    Hi Charlie,
    To view the Preview of the Search Results you need to Install/Configure Office Web Apps Server in your farm.
    Please check the below links for reference.
    http://technet.microsoft.com/en-us/library/ee855124(v=office.15).aspx
    http://technet.microsoft.com/en-in/library/ff431687(v=office.15).aspx
    If you think is helpful,Vote As Helpful! And if you see a reply being an answer to the question of the thread, click Mark As Answer.
    Mahesh

  • Unable to view microsoft office files (2011) with quick view and cover flow

    I am unable to view office for mac 2011 files in quick view or cover flow. All I see is the generic icon and not the preview. I've searched a number of forums but haven't found a solution.
    Thanks

    Yea, I did do a Time Machine restore not too long ago. Perhaps that was the cause. In any case, I went by the apple store day before yesterday to see if they could help me (I use quick look a lot!), and the tech's opinion was the my whole system was running slow and buggy, so he suggested to go ahead and spend the time doing a clean install of the OS. I did this yesterday... quick look for office docs is back, and my system is soooooo much faster and problem free now. Looking back, the ability of OS X to reinstall without erasing the boot disc is a blessing and curse. I upgraded instead of cleanly reinstalling when I got Snow Leopord, and recently did a time machine restore when I was having some problems. With windows, I was doing a clean reinstall at least once a year. Perhaps doing it once every two years or so is a good idea for mac. The biggest headache is importing all my old mailboxes into mail, and sorting through the duplicates that get created.
    Good luck

  • Error in Viewing the PDF File in Enterprise Portal

    Dear All,
    I have uploaded a PDF Document of around 30 pages in KM and made an iview to view that document but when i click on the iview the document is not opening properly and after sometime the Portal/system is getting hanged.But when i open the pdf document with less number of pages there is not problem.
    I am using EP 7.0  and Adobe Reader 8.1.
    Any help or suggestions will be highly appreciated.
    Regards
    Shareef

    Hi,
    Thanks for your response!!!!!
    But why does this gets locked very time i login into the system?
    Once i delete it i works fine till i log off.But when i again login it it says the same the user is being processed why does this happen? And how to avoid it forever?
    Regards,
    Vamshi.

  • How to view the file content from the directory? getting Error:ORA-21560

    SQL> create directory READ_LOB_DIR as 'D:\Prj\Comm\Data';
    CREATE OR REPLACE Procedure READ_FILE_LOB IS
    -- Input Directory as specified in create directory
    l_dir CONSTANT VARCHAR2(30) := 'READ_LOB_DIR';
    -- Input File which is read word by word
    l_fil CONSTANT VARCHAR2(30) := 'testfile.txt';
    -- Separator Character between words is a BLANK (ascii = 32)
    l_seb CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(32));
    -- Character at the end of the file is NEWLINE (ascii = 10)
    l_sen CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(10));
    -- Pointer to the BFILE
    l_loc BFILE;
    -- Current position in the file (file begins at position 1)
    l_pos NUMBER := 1;
    -- Amount of characters have been read
    l_sum BINARY_INTEGER := 0;
    -- Read Buffer
    l_buf VARCHAR2(500);
    -- End of the current word which will be read
    l_end NUMBER;
    -- Return value
    l_ret BOOLEAN := FALSE;
    BEGIN
    -- Mapping the physical file with the pointer to the BFILE
    l_loc := BFILENAME(l_dir, l_fil);
    -- Check if the file exists
    l_ret := DBMS_LOB.FILEEXISTS(l_loc) = 1;
    IF (l_ret) THEN
    dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
    ' exists');
    -- Open the file in READ_ONLY mode
    DBMS_LOB.OPEN(l_loc, DBMS_LOB.LOB_READONLY);
    LOOP
    -- Calculate the end of the current word
    l_end := DBMS_LOB.INSTR(l_loc, l_seb, l_pos, 1);
    -- Process end-of-file
    IF (l_end = 0) THEN
    l_end := DBMS_LOB.INSTR(l_loc, l_sen, l_pos, 1);
    l_sum := l_end - l_pos - 1;
    DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
    EXIT;
    END IF;
    -- Read until end-of-file
    l_sum := l_end - l_pos;
    DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
    l_pos := l_pos + l_sum + 1;
    END LOOP;
    DBMS_LOB.CLOSE(l_loc);
    ELSE
    dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
    ' does not exist');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error:' || SQLERRM);
    DBMS_LOB.CLOSE(l_loc);
    END;
    The Text file content is...
    Copyright 1996,2001 Oracle Corporation.     All Rights Reserved
    This file contains installation instructions for installing the
    Oracle8 ODBC Driver software.
    It is divided into four parts:
    o Part I: Summary of systems supported by Oracle8 ODBC client
    software
    Lists the platforms on which the Oracle8 ODBC Client software can
    be installed.
    o Part II: Oracle8 ODBC Driver software.
    Describes the files, and installation prerequisites for the Oracle8
    ODBC driver software.
    o Part III: Exploding the kit onto your system
    Describes how to explode the kit onto your system hard drive.
    o Part IV: Installation Instructions
    Describes how to install the Oracle8 ODBC driver.
    Part I: Systems supported by the Oracle8 client software
    You can install the ODBC client software on any of the following systems:
    o Windows 2000
    o Windows NT X86
    o Windows 95
    o Windows 98
    The Oracle8 ODBC Driver provides support for ODBC connections
    from Windows 2000, Windows NT, Windows 95, and Windows 98 systems
    to Oracle databases.
    o Part II: Oracle8 ODBC Driver software.
    Refer to the following files for information about the Oracle8 ODBC Driver:
    LICENSE.TXT - Oracle8 ODBC Driver License Agreement. Read carefully
    before installing and/or using this product. Enclosed in
    your software distribution kit.
    SQORA.HLP - A Window's Help file which is the primary reference
              manual for the Oracle8 ODBC Driver.
    ODBCRelnotes.WRI - The release notes for the Oracle8 ODBC Driver
    which contains information which may have not been
    included in the Help file.
    Installation Prerequisites
    See the Oracle8 ODBC Driver release notes (ODBCRelnotes.WRI),
    for a complete list of software products required and their versions.
    Time Required
    The installation of the Oracle8 ODBC Driver takes approximately 5
    minutes. The actual time may be shorter or longer, depending upon
    your hardware configuration.
    Disk Space Required
    The Oracle8 ODBC driver installation requires approximately 2
    megabytes of available storage space. The space required depends upon
    what files you already have installed. The installation procedure
    checks to see if you have enough available disk space. If you do not,
    the installation fails.
    Part III: Exploding the Kit onto your system
    Expand the self-extracting archive file onto your hard drive.
    C:\> ORA8174.EXE
    Part IV: Installation Instructions
    Oracle8 ODBC Driver 8.1.7.4.0
    This section assumes the following:
    1. MS Windows 2000, Windows NT, Windows 95 or Windows 98 is running.
    2. Oracle Universal Installer shipping with 8.1.7 has already been
    installed on your system.
    3. Part III has been completed.
    Software fixes:
    Refer to release notes (ODBCRelnotes.wri) for a complete list of
    Software fixes.
    Installation Instructions
    Once the self-extracting archive file ORA8174.EXE has been
    exploded it will create an installable directory structure
    onto your hard drive. Run the Oracle Universal Installer from
    your local drive.
    1. On the screen "File Locations" use the "Browse" button of
    the source path to choose the file 'products.jar' from the
    folder that ORA8174.EXE was extracted to. Choose 'Next'.
    2. You will receive a warning that some of the dependencies of
    this product are not found in the staging area. This warning
    is OK. The ODBC driver depends on the Net8 Client being already
    installed on the system. Answer 'Yes' to continue.
    Oracle is a registered trademark of Oracle Corporation.
    Microsoft, MS are registered trademarks of Microsoft Corporation.
    Microsoft Windows, Windows NT, Windows 95, Windows 98 and Open Database
    Connectivity are trademarks of Microsoft Corporation.
    All other trademarks and registered trademarks are the property
    of their respective owners.
    The output was...
    File testfile.txt in Directory READ_LOB_DIR exists
    Copyright
    1996,2001
    Oracle
    Corporation.     
    All
    Rights
    Reserved
    This
    file
    contains
    installation
    instructions
    for
    installing
    the
    Oracle8
    ODBC
    Driver
    software.
    It
    is
    divided
    into
    four
    parts:
    o
    Part
    I:
    Summary
    of
    systems
    supported
    by
    Oracle8
    ODBC
    client
    Error:ORA-21560: argument 2 is null, invalid, or out of range
    I want to diplay/view as per file content format from the file under that specified directory.
    Have any other method / any help or suggestions would be really appreciated.

    I changed the code like...
    CREATE OR REPLACE Procedure READ_FILE_LOB_tmp IS
    -- Input Directory as specified in create directory
    l_dir CONSTANT VARCHAR2(30) := 'READ_LOB_DIR';
    -- Input File which is read word by word
    l_fil CONSTANT VARCHAR2(30) := 'testfile.txt';
    -- Separator Character between words is a BLANK (ascii = 32)
    l_seb CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(32));
    -- Character at the end of the file is NEWLINE (ascii = 10)
    l_sen CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(10));
    -- Pointer to the BFILE
    l_loc BFILE;
    -- Current position in the file (file begins at position 1)
    l_pos NUMBER := 1;
    -- Amount of characters have been read
    l_sum BINARY_INTEGER := 0;
    -- Read Buffer
    l_buf VARCHAR2(4000);
    -- End of the current word which will be read
    l_end NUMBER;
    -- Return value
    l_ret BOOLEAN := FALSE;
    BEGIN
    -- Mapping the physical file with the pointer to the BFILE
    l_loc := BFILENAME(l_dir, l_fil);
    -- Check if the file exists
    l_ret := DBMS_LOB.FILEEXISTS(l_loc) = 1;
    IF (l_ret) THEN
    dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
    ' exists');
    -- Open the file in READ_ONLY mode
    DBMS_LOB.OPEN(l_loc, DBMS_LOB.LOB_READONLY);
    LOOP
    -- Calculate the end of the current word
    l_end := DBMS_LOB.INSTR(l_loc, l_sen, l_pos, 1);
    -- Process end-of-file
    IF (l_end = 0) THEN
    EXIT;
    END IF;
    -- Read until end-of-file
    l_sum := l_end - l_pos;
    DBMS_LOB.READ(l_loc, l_sum, l_pos, l_buf);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(l_buf));
    l_pos := l_pos + l_sum + 1;
    END LOOP;
    DBMS_LOB.CLOSE(l_loc);
    ELSE
    dbms_output.put_line('File ' || l_fil || ' in Directory ' || l_dir ||
    ' does not exist');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error:' || SQLERRM);
    DBMS_LOB.CLOSE(l_loc);
    END;
    Now its working fine with one addtional line...
    The file content is...
    This is My Content
    This is My Content
    This is My Content
    This is My Content
    This is My Content
    But The output was...
    File testfile.txt in Directory READ_LOB_DIR exists
    This is My Content
    This is My Content
    This is My Content
    This is My Content
    This is My Content
    here, i want to delete that additonal line...?

  • How to browse, view, open Microsoft Office files in Contribute CS4

    To browse or view Microsoft Office files (not Office 2007)in Contribute CS4: (I won't say how long it took me to figure this out!)
    Make sure Contribute is closed.
    Open C:\Program Files\Adobe\Adobe Contribute CS4\Configuration\ViewableExtTypes.txt
    Add doc,xls,ppt to the list, save & close ViewableExtTypes.txt and restart Contribute/
    It doesn't work for Office 2007 file extensions.
    I put my heart and my soul into my work, and have lost my mind in the process.
    Vincent Van Gogh.

    //where file is your StorageFile type object of perticular //Office documents i.e. ppt or doc etc
    await Windows.System.Launcher.LaunchFileAsync(file);
    Please Refer these links 
    How to open pdf file in Windows Phone 8?
    Launcher.LaunchFileAsync
    shah
    // Please Mark as answer if it is Helpful to you. Thank You

  • Which applet to view office file ?

    Hi all,
    I have a program to view file. I receive a stream and must render to client (must control). I don't know which applet to render office file ?
    Thanks

    I'm confused, you're coding for the server-side, with JSP/servlets aren't you? So how can you intercept the stream at the browser? That'll be beyond your code.
    And anyway, if you set the MIME types and set the content for the response, the browser itself will decide and prompt the user for handling the file.
    If on the other hand, you want to open a file on the server and send the contents of that to the browser, you can look into Apache POI (http://poi.apache.org/) for handling Excel, Word and PowerPoint documents.

  • Which lib to open and view office file on browser

    Hi all,
    when I receive a stream of file from server. How I can open and view this file on browser?
    My suggest: catch a stream and use library to open office file on browser, but I don't know which lib to do this.
    Thanks

    I'm confused, you're coding for the server-side, with JSP/servlets aren't you? So how can you intercept the stream at the browser? That'll be beyond your code.
    And anyway, if you set the MIME types and set the content for the response, the browser itself will decide and prompt the user for handling the file.
    If on the other hand, you want to open a file on the server and send the contents of that to the browser, you can look into Apache POI (http://poi.apache.org/) for handling Excel, Word and PowerPoint documents.

  • To view the flash technology content in this pdf file please install this version of flash player

    I am getting an error while opening a pdf file I am using Windows 7 with adobe 10.1.7 installed error message " to view the flash technology content in this pdf file please install this version of flash player"

    Both ActiveX and plugin?  What versions?

  • Adobe Content Viewer, Articulate Studio file

    Hello! I am learning DPS bit by bit and have successfully begun publishing my document for viewing in the Adobe Content Viewer on different devices. Here are the issues I am having and the questions associated with those issues:
    1. When I publish my document and go to view it on my devices (Android tablet and iPad3), I get a gray box where I should have an Articulate Studio *.html file. I think it may be a memory issue, but how do I truly preview my DPS document so that I see all interactive content? I am assuming it is a memory issue, but it may be a linking issue to the Articulate file, though I am able to see the Articulate file when I preview just that article within my folio on my computer.The total filesize is about 33 Mb and I have seen on other posts that some magazines are 500Mb in size. Is the Adobe Content Viewer limited in its content file size for previewing publications?
    2. I have been publishing my file over and over and now have multiple copies of the file in my Adobe Content Viewer on both devices. How do I get rid of the duplicates and have only the most recently updated item on my device? Is this something I can do through the Folio builder online? (I am only seeing one file in the Organizer and Publish Requests.)
    Thank you for any help with these questions.
    Sincerely,
    Amber Price

    Thank you so much for the feedback. Yes, I created the file as an overlay (web content) and linked to the html file that is created when you build an Articulate Studio file. Is there a way to have it preview on the mobile device? Do I have to upload those files separately, somehow? If there isn't a way to preview it, does that mean it will not work when I go to publish it for real? In my latest preview, I can now hear the audio, but cannot see the video on my device (but this isn't every time). Another issue: when I go to preview the entire portfolio on my local computer using the Adobe Content Viewer, it never loads the preview--it just hangs on the load screen and I see "Proxy.folio" and the file never loads [see image below].
    I have created one folio with articles in that folio and I have changed and updated those articles. I have also tried signing out and back in to the Adobe Content Viewer and I still see the duplicate files. I also tried restarting my devices to see if that would update everything and the duplicates are still there.
    Any other help is greatly appreciated! ~Amber Price

  • How to lock a MS office file to be viewed only with certificate?

    Have you already looked at Active Directory Rights Management Services?  Is that the sort of thing you're after?

    Hello there,
    I`m having the following task - I need to lock a certain MS Office files (Word, Excel...) to be viewed only by certain people on my domain, which already had a digital certificate which is issued by AD Certification Authority, running on Windows Server 2012 R2.
    The task is that these certain people can view the files but if they copy the files to another location or send them by e-mail or other way the files to be locked even for openening.
    I`m not pretty sure if this can be done only with the mentioned certificates so I`m open to any suggestions of the topic.
    Thanks in advance for the info and the help.
    This topic first appeared in the Spiceworks Community

  • Not able to view the uploaded PAR file in the portal archive selection.

    Dear All,
    I have modified com.sap.portal.runtime.logon.par and have renamed it to some other name.
    Now I have uploaded the par file.
    The problem is that when choose new from PAR option (to create iview from a par file),I am not able to see the par file in the Portal Archive selection.
    I also want to know that if I am able to call the par file in the iview, can I use this iview to have a portal login.
    Our requirement is that we want to give login page for the portal in the portal home page.The portal home page will be for the anonymous users.
    Kindly try to guide me

    Hi Nitin,
    Check ur Portalapp.xml file. If u have the following code in that just <b>remove</b> them
    <property name="com.sap.portal.pcm.Category" value="platform">
    <property name="inheritance" value="final"/>
    Deploy it again.now u can see that par in ur portal.Refer this thread also
    PAR File not seen
    Regards,
    Tamil K

Maybe you are looking for

  • Still i am looking for the solution (its urgent guys)

    for the following code i am geting details of all the documents which are opened on the basis of p_date1 but i also need those documents which are cleared before this date or on this date. so what to do? *& Report  Z_VENDOR AGEING                    

  • Problem:I can't get oracle MajorVersion using jdbc in 9.2.0.1.0!

    I can't get oracle MajorVersion using jdbc in 9.2.0.1.0,how can i do and how many oracl version can't get MajorVersion? thanks,erveryone! online waiting

  • LaCie d2 195 GB USB hard drive and new iMac

    Has anybody had a problem with a LaCie d2 drive that is connected via USB instead of FireWire? I have both types of external hard drives; the FireWire connected LaCie has worked flawlessly, as has a Seagate 300GB FireWire drive. But my poor little La

  • Cant change my message memory

    hi i bought nokia 3500 2 dayz back and im having problemz with changing the message memory from phone to my memory card... cuz it only hav 8 mb internal in wich 3 mb z already in use cuz of system files, and plus i recieve many msgz n i dont wana del

  • Accounting Document at PGI

    Hi, The below will be the accounting document created at the time of PGI COGS Dr Inventory A/c Cr My doubt is how this COGS a/c will offset. Kindly help me out. Pradeep.M