Preview ppt,word,excel,pdf in flex using iframe

hi,
i am working upon flex 4.6 web application.i have a requirement in my project to preview ppt,pdf,word and excel inside flex container. i have achieved previewing only pdf by using flex-iframe 1.5.1, since pdf has browser plugginn. i am just binding the download path what i am getting from the server to the source of my iframe In HTML5 we can preview it using iframe by binding it to google docs viewer. i tried doing the same in flex but for me its showing that because of the security constaints of the owner cannot display it rather open it in another tab.
kindly suggest me a way to preview ppt,word and excel inside flex container using iframe or if any other better or simple approach is there.
kindly help... any help would be greatly appreciated.
heres is my code-
<mx:VBox id="vbxFrame" width="100%" height="100%" backgroundColor="#FFFFFF" includeIn="pdf" verticalCenter="0" horizontalCenter="0">
<flexiframe:IFrame id="iframeFlexpdf" backgroundColor="#cccccc" width="100%" height="100%" horizontalCenter="0" verticalCenter="0" source="any url"/>
</mx:VBox>

Refer to the LOB Datatype sample.
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm

Similar Messages

  • Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    You cannot use pendriver.
    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • How to upload documents( like word, excel, pdf etc) into r/3 system

    Hi All,
               Does anyone have information on uploading and downloading documents like word, excel,pdf etc into R/3 system. Is there any function modules, classes, programs etc to do this.
        To give an example about what i mean by uploading documents, we can take the process of attaching documents in support of a SLM issue in solution manager.

    Hi Syed,
      Use the FM gui_upload to upload a file from presentation server and gui_download to download file to presentation server. see the code below and also read the documentation of the respective FM's.
    data:
        lw_file  type string,              " File Path
        lw_file1 type IBIPPARMS-PATH.      " File Path
      CALL FUNCTION 'F4_FILENAME'
       IMPORTING
         FILE_NAME            = lw_file1.
      lw_file = lw_file1.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = lw_file
          FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
        tables
          data_tab                      = t_kna1
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
      IF sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " IF SY-SUBRC <> 0
    data:
        lw_file  type string,              " File Path
        lw_file1 type IBIPPARMS-PATH.      " File Path
      CALL FUNCTION 'F4_FILENAME'
       IMPORTING
         FILE_NAME            = lw_file1.
      lw_file = lw_file1.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
    *     BIN_FILESIZE                  =
          FILENAME                      = lw_file
          FILETYPE                      = 'ASC'
    *     APPEND                        = ' '
          WRITE_FIELD_SEPARATOR         = 'X'
    *     HEADER                        = '00'
        TABLES
          DATA_TAB                      = t_KNA1
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " IF SY-SUBRC <> 0
      IF SY-SUBRC = 0.
        message 'file downloaded successfully' type 'S'.
      ENDIF.                               " IF SY-SUBRC = 0
    With luck,
    Pritam.

  • Opening word, excel, pdf, jpeg files as attachments on iphones

    I've always been able to open word, excel, pdf & jpeg files as attachments on my iphone 5.  But recently, everytime I tried to open one of these, the file image turned up all grey, and in the case of jpeg files, it just kept on loading, loading & loading, but never finished loading ...  It seems like this happened after I updated to IOS 6.1.4 recently...  This is just a guess.  Could anyone help me with this?  Thank you.

    Srinivas,
    Thank you for your reply. It helped me get to a solution. In essence I needed to copy the Unix file to an internal table and then save it to the end user's PC file. Then I am able to open the document / attachment.
    I created a new function to:
    1) call method cl_gui_frontend_services=>directory_browse,  to ask the end user to pick a PC directory to copy the Unix file attachment to.
    2) Then  using the following code, copy the Unix file (as determined by application or user) to an internal table. Note that the line is not limited by a certain length.
      types: begin of t_tab,
              line type string,
             end of t_tab.
      data: k_wa_itab type t_tab,
            t_it_itab type standard table of t_tab.
    open dataset v_unixfilename for input in binary mode.
      if sy-subrc <> 0.
        raise unix_filename_read_error.
      endif.
      do.
        read dataset v_unixfilename into k_wa_itab-line.
        if sy-subrc <> 0.
          exit.
        endif.
        append k_wa_itab to t_it_itab.
      enddo.
      close dataset v_unixfilename.
    3) Using call method cl_gui_frontend_services=>gui_download, save the contents of the internal table to the PC directory from step 1 above.
    4) Open the Attachment from the end users PC via:
    call method cl_gui_frontend_services=>execute
    It seems like a long way to get this to work, but it is working. If there is a better way maybe someone else can fill in the blanks. Ideally a tool to read and open from a file from Unix without using the cl_gui_frontend_services would be ideal.

  • How to print bin/hex content of word, excel, pdf directly to printer?

    Hi all,
        My requirement is to print all the GOS attachments of a Quality Notification.
        I have output from FM SO_DOCUMENT_READ_API1 (reading GOS attachments). I would like to print the content directly, and the content could be of word, excel, pdf, jpg, notepad etc.,
       Is there any function module or any class/methods that can take in the content and print them according to the file type? If not, please suggest any alternative solution/ideas.
    Thanks
    Vinoth

    Hi,
    I have the same problem
    with the additionnal problem: do it in background
    So, What I have for the moment
    --> You have a tool : BC-XDC that allow you to convert any file into an OTF.
    --> there is also the tool : GhostScript to convert some format to specific format (using SM49) ..
    (I can't cut/past code ... don't know how to do)
    Hope that will help you
    Edited by: Frédéric Girod on Oct 30, 2009 10:33 AM
    Edited by: Frédéric Girod on Oct 30, 2009 10:34 AM

  • Component to URL link a word/excel/pdf document inside Page

    Hello Experts,
    I would really appreciate if somebody can answer if there are any standard component or functionality available to call a network URL link to a word/excel/pdf document inside a ABOUT tab page for the definition and screenshot of How-to and functionality of the dashboard.
    I am trying to avoid creating a custom component to use SAP UI5 HTML control to initialize a OLE object call to a given URL.
    Thanks
    Arun

    Well, Word and Excel documents are binary, so you will need a Binary LOB (BLOB).
    I have recently been storing/retrieving BLOBs through ASP/ADO . . .
    BLOBs are limited to 4GB, but ADO has a limit of 2GB. Hopefully, that will not be a problem.
    If you are using ODBC, then be aware that you need to enable LOBs by setting LOB=T in the connection string. If you are using ODBC with stored procedures, then there is a bug that causes the LOBs to be truncated to 32K, which is fixed in 9.2.0.6.5. A colleague tells me that the Microsoft ODBC Driver for Oracle works with LONGs but not with LOBs.
    If you are using OleDB with stored procedures, then you'll need to set the "SPPrmsLOB" property to TRUE.
    When uploading BLOBs through ADO, you need to set the parameter size to 1 higher than the actual size, otherwise you get an error.
    When retrieving the BLOBs through stored procedures as OUT parameters, you need to set the parameter size to larger than the BLOB, otherwise it gets truncated. I do not like having to specify 2GB for a file that might only be 32K, so I prefer to return a record set via a REF CURSOR.
    Tak

  • Can I store documents (word, excel, .pdf) on my iPhone?

    I want to use some of the storage on my 16g 3G phone to store important work documents. Some of these docs may be in word, excel, and .pdf formats. I know I wouldn't be able to open them on the phone, but if I could attach and email them it would save me a lot of time.
    Is this possible?

    You can't store documents on the iphone, unless there is a third party app that will do this.
    You can e-mail them to yourself and then access them via e-mail.

  • Indesign/Acrobat PDF - embedded link file(word, excel, pdf)

    Hi,
    In the microsoft word, we can embedd, the pdf, word or excel files as link, so that when you click the embedded file (for eg. if you click the pdf icon of embedded file in word, the pdf file will open, as same as the word files and excel files will open) . There is will no seperate link files will be there. (so from a word doc embedded with pdf files and excel files will be opened from the word itself)
    Is there any option to do like this in Indesign or Pdf, where we can embedd the Link files inside the indesign, without linking the files from the hard dirve or server.
    Any idea about this? You people understand what i am trying to say?

    Acrobat Pro has an Attachements navigation panel that you can add (embed) files that will open in their native application when clicked to open.
    InDesign can do something similar... you can embed files via the Links panel... you can also edit original (but you might need to unembed it first.
    Not on a computer with InDesign right now, I will check tommorrow.

  • Is there any way to get preview of word,excel as accesory for JFileChooser?

    i want to set an accessory for jfilechooser so that i can preview documents file or any media files using the setAccessory method of JFileChooser.
    Will it can be done by Runtime.getRuntime.exec() as an win32 api method so that it can open the file in the accesory of jfilechooser or in jFrame instead of another window.
    Plz anybody have any idea's.

    That's correct...itune's app store will always prompt you to update. Hopefully Apple will change this policy!

  • Will not search for a word in pdf file. Using Windows 7

    Like most I have used Acrobat reader for viewing PDF files for years.  I recently upgraded to Windows 7 from XP.  I have tried to search a PDF file for a word and it always comes up with none found even though I search for a word that is displayed in the document I'm looking at.  Any advice?
    Regards,
    Dwight

    If the PDF is not a scanned image, can you share it with us: https://forums.adobe.com/thread/1070933

  • How to display PDF in JSP using Iframe

    Hi All,
    I am using Struts 2. I am building my file in ActionClass with seperate Method like getGeneratedPDF() in which, I am setting header of response and writing into PDF.
    This method will be called from JSP by this way
    s:property value="getGeneratedPDF()" />
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?
    questions 2 -- How to display it in Iframe?
    Please help me , If you know the solution.
    Thanks in Advance,
    Jimmy

    jamy_26 wrote:
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.A PDF file is a binary file, not a text file, and you're trying to display it as String. Of course you would get "junk characters". Have you ever tried opening a binary file (pdf, doc, jpg, xls, etc) using a text editor like Notepad?
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?Display it as binary stream, not as text stream. You can display it standalone, just let the link/form/addressbar URL point to some Servlet which writes the InputStream of the PDF file to the OutputStream of the response, along with a correct set of response headers (at least content-type, content-disposition and content-length), so that the browser can open it in the correct application (which is usually Acrobat Reader). If you want to embed the PDF file in a JSP, then one of the ways is indeed using the HTML <iframe> tag.
    questions 2 -- How to display it in Iframe? Just let the iframe URL point to the aforementioned Servlet.
    You can find here an example of a generic file servlet, you may find it useful to get the idea how to do it: [http://balusc.blogspot.com/2007/07/fileservlet.html].

  • New to PDF Portfolios - Need to Link between PDF, Word & Excel Docs

    Hello All,
         Thanks in advance for your help.  I'm new to the Adobe X Pro & making portfolios.  I have figured out how to create a portfolio.  My portfolio has a main pdf document and several folders with pdf, word & excel files in them.  What I’m trying to do is link from my main document (pdf file) to the other files (word, excel & pdf) that I’ve added to the portfolio.  I’ve tried linking to a pdf file and a thumbnail of the word doc (because I did find that I can’t link to the actual word or excel doc).  When I create & test the link (for both the pdf file & the thumbnail of the word doc) it is there; I can click the link I created and it will go to the word doc.  If I close the portfolio & reopen it the link to the pdf file is there, but the link to the word doc isn’t there anymore.  That link now goes to the main pdf file and not the word thumbnail or even the folder where the word doc is saved.  Any ideas on what to do?  Thanks.

    As Dave has noted you can not do this.
    Acrobat/Reader would need to know what program to use to read the data in the document and since there can be many different programs that could read your document,  Acrobat/Reader would need to know exactly which program to use on one's system. You might only have MS Office but others might have both MS Office and OpenOffice.org and might prefer to use OpenOffice.org unless there is a feature that is only available to MS Office. Yes it is possible to create a program that can be configured to use specific helper programs, but it can have a real impact on system efficiency. It is easy enough to download or extract the non-PDF document and then use your program of choice. Just look to MS Outlook for a program that can not always open an attachment, especially PDF files.

  • How do open document like word , excell or pdf ??

    hello
    on the application form , how do read (open) and print document like
    as (word , excell , pdf ) ??
    nots : we use oracle V. 10 g
    thank .

    Hello,
    I was trying to open word document from oracle 10g with below code.
    DECLARE
    AppID PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('d:\doc1.doc',
    DDE.App_Mode_Minimized);
    END;
    But it is showing me some error as below:
    ORA-06550: line 4, column 10:
    PLS-00201: identifier 'DDE.APP_BEGIN' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignored
    2. AppID PLS_INTEGER;
    3. BEGIN
    4. AppID := DDE.App_Begin('d:\doc1.doc',
    5. DDE.App_Mode_Minimized);
    6. END;
    Could you please help me?
    Thanks

  • How to export sql table data to Excel/PDf using Storedprocedure?

    Hi ,
            I have one table in sqlserver2008R2 that named "Customer" so that table hold the 1 Lac rows. Now I want send this table data to Excel/pdf with Columns using Storedprocedure.
       I have tried this using xp_cmdshell so This is not working for me.
    finally i want to get data in Excel and pdf also.
    Please guide me

    You can actually run an Excel Macro to grab the data from the SQL Server DB.  Below are some samples.
    Sub ADOExcelSQLServer()
    ' Carl SQL Server Connection
    ' FOR THIS CODE TO WORK
    ' In VBE you need to go Tools References and check Microsoft Active X Data Objects 2.x library
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "Excel-PC\SQLEXPRESS" ' Enter your server name here
    Database_Name = "Northwind" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM dbo.Orders" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    ' Dump to spreadsheet
    With Worksheets("sheet1").Range("a1:z500") ' Enter your sheet name and range here
    .ClearContents
    .CopyFromRecordset rs
    End With
    ' Tidy up
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Sub ADOExcelSQLServer()
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "LAPTOP\SQL_EXPRESS" ' Enter your server name here
    Database_Name = "Northwind" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM Orders" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    With Worksheets("Sheet1").Range("A2:Z500")
    .ClearContents
    .CopyFromRecordset rs
    End With
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Sub TestMacro()
    ' Create a connection object.
    Dim cnPubs As ADODB.Connection
    Set cnPubs = New ADODB.Connection
    ' Provide the connection string.
    Dim strConn As String
    'Use the SQL Server OLE DB Provider.
    strConn = "PROVIDER=SQLOLEDB;"
    'Connect to the Pubs database on the local server.
    strConn = strConn & "DATA SOURCE=(local);INITIAL CATALOG=NORTHWIND.MDF;"
    'Use an integrated login.
    strConn = strConn & " INTEGRATED SECURITY=sspi;"
    'Now open the connection.
    cnPubs.Open strConn
    ' Create a recordset object.
    Dim rsPubs As ADODB.Recordset
    Set rsPubs = New ADODB.Recordset
    With rsPubs
    ' Assign the Connection object.
    .ActiveConnection = cnPubs
    ' Extract the required records.
    .Open "SELECT * FROM Categories"
    ' Copy the records into cell A1 on Sheet1.
    Sheet1.Range("A1").CopyFromRecordset rsPubs
    ' Tidy up
    .Close
    End With
    cnPubs.Close
    Set rsPubs = Nothing
    Set cnPubs = Nothing
    End Sub
    Finally, you can run a SProc in SQL Server, from Excel, if you want the SProc to do the export.
    Option Explicit
    Sub Working2()
    'USE [Northwind]
    'GO
    'DECLARE @return_value int
    'EXEC @return_value = [dbo].[TestNewProc]
    ' @ShipCountry = NULL
    'SELECT 'Return Value' = @return_value
    'GO
    Dim con As Connection
    Dim rst As Recordset
    Dim strConn As String
    Set con = New Connection
    strConn = "Provider=SQLOLEDB;"
    strConn = strConn & "Data Source=LAPTOP\SQL_EXPRESS;"
    strConn = strConn & "Initial Catalog=Northwind;"
    strConn = strConn & "Integrated Security=SSPI;"
    con.Open strConn
    'Put a country name in Cell E1
    Set rst = con.Execute("Exec dbo.TestNewProc '" & ActiveSheet.Range("E1").Text & "'")
    'The total count of records is returned to Cell A5
    ActiveSheet.Range("A5").CopyFromRecordset rst
    rst.Close
    con.Close
    End Sub
    Sub Working()
    'USE [Northwind]
    'GO
    'DECLARE @return_value int
    'EXEC @return_value = [dbo].[Ten Most Expensive Products]
    'SELECT 'Return Value' = @return_value
    'GO
    Dim con As Connection
    Dim rst As Recordset
    Set con = New Connection
    con.Open "Provider=SQLOLEDB;Data Source=LAPTOP\SQL_EXPRESS;Initial Catalog=Northwind;Integrated Security=SSPI;"
    Set rst = con.Execute("Exec dbo.[Ten Most Expensive Products]")
    'Results of SProc are returned to Cell A1
    ActiveSheet.Range("A1").CopyFromRecordset rst
    rst.Close
    con.Close
    End Sub
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • When I am in Safari and have an email with a WORD or PDF or Other attachment, how do I set it up so the document opens in WORD, etc. rather than going into download?

    When I am in a Safari email and it has an attachment (WORD, EXCEL, PDF) and I click on the attachment to open it, it goes to download.
    How can I get the document to open directly into WORD, etc.   I am able to do this when I use Chrome and email.

    I see that mail.app works.    The Preferences > General > Open safe files after downloading  did not help.
    I have no problem opening documents directly with Firefox and Chrome, and was looking for a comparable solution with Safari.

Maybe you are looking for

  • Save As dialog takes excessively long time to appear

    Problem occurs in various apps (Illustrator, Photoshop, Dreamweaver) Regular Save command works fine. I've tried Disk Utility to no avail. Any ideas?

  • Anyone else having trouble with Preview?

    I work with graphic files (pdfs, tiffs, jpegs) on a daily basis and use Preview extensively. For the past several weeks, Preview crashes multiple times/day upon the simplest of tasks such as opening up a small pdf file. This happens on both my office

  • Does firefox 5.0 exist and how do I get it? Zynga games says it does and recommends it

    Zynga games makes mafia wars, cafe world, and other games for Facebook and Myspace. I have been having loading issues with their games and asked their customer support for help. The link referred to Mozilla Firefox 5.0 and Google Chrome 8.0, both of

  • Another Display problem! :(

    Looking for some advice! My unibody macbook has a very touchy display. Basically, if it tilts any further back than 90 degrees, the display will freeze (also if I close the lid). If I startup the computer with the lid propped further back, it'll say,

  • How to run Lenovo t400 with Windows XP in safe mode

    Hi guys,               I caught a Spyware Portection Virus this morning while i was doing research on fish disease. The virus isn't letting me run any programs except Internet Explorer. I have found the program to delete it but I need a way to run it