Preview pdf, excel word

Hi all
i need to preview some various type of document that i save in my db.
I use POI to create my own ms document and it work, but i 'don't know if is possible to preview, without ms office, documents that i save from filesystem.
Any idea?

aksarben wrote:
I think what other posters are suggesting is that you need native apps (Java or otherwise) to do the previews. If they aren't installed on the customer's system, the customer may be out of luck. But then, if he doesn't have an app that can read the files, why would he want to preview them in the first place?And conversely, why would you be sending files to a customer when you aren't certain that the customer will have the application to read those files? (Yes, I'm aware that people who use MS Office tend to assume they can send their Office-formatted files to everybody, but writing a Java application which can display Office files isn't the solution to that problem.)
Assuming a customer DOES have the required app, though, once you've written the file to his hard drive, you can probably invoke something like "open file" as an OS command, and the OS should handle launching the app associated with the file extension.The Desktop.open(file) method does that.

Similar Messages

  • How i can insert or save ( PDF, EXCEL, WORD, JPEG ) in IMAGE ITEM.

    Dear All,
    plz advise how i can save PDF, EXCEL, WORD, JPEG files in IMAGE FILE.
    Thanks in advance
    ASIM.

    Start by creating an Item type of OLE container. Set the following properties:
    - OLE Tenant Types: Embedded
    - Database Item: Yes
    Make that item the last item in the block.
    Create a push button such as 'Insert Document' with similar code:
    DECLARE
      vcFile VARCHAR2(1024);
    BEGIN 
      vcFile := win_api_dialog.Open_File('Select Document File to Insert',NULL,'MS-Word files (*.doc)|*.doc|'||
         'PDF files (*.pdf)|*.pdf|Excel Files (*.xls)|*.xls|Outlook message files (*.msg)|*.msg|All files (*.*)|*.*|',
         TRUE,win_api.OFN_FLAG_DEFAULT,TRUE);
      go_block('<block name>');
      last_record;
      Create_Record;
      initialize_container('<oleitemname>',vcFile);
    EXCEPTION
      WHEN NO_DATA_FOUND Then
         Null;
    END;

  • Export/Convert Browser Based Infopath 2010 forms to PDF/Excel/Word

    Hi,
    Is there an OOB, way of converting browser based Infopath 2010 forms to PDF/Word/Excel.
    In case there isnt, can anyone please point me to a coded or a programmatic way of implementing the same. 
    Soptik Dutta

    Hi Soptik,
    As far as I know, we can only save an InfoPath form as PDF/Excel using InfoPath Windows form application(rather than Broswer-based InfoPath).
    In this case, we can
    Open the library that save the forms
    Selec the form that is wanted to be PDF/Excel(Just select it, don't open it)
    Click the "inverse trangle", and then click "Edit in Microsoft InfoPath"
    In InfoPath, click "File" > "Save & Send" to save the form as PDF/Excel
    In this following thread, there are some code snippets, which will help you to export an form to PDF using custom code:
    http://www.infopathdev.com/forums/t/8746.aspx?PageIndex=1
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jinchun Chen
    Jinchun Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)

  • Opening a PDF/Excel/Word Doc/etc file in an iView

    Hello everyone,
    I'd like to open an Excel or PDF or etc file in an iView.
    Ideally i'd just create a URL iview (by the way i'm on EP5 SP6) and then just use that to link to a static file.
    However, the issue i'm having is that we need to open the
    file that was last created within a directory. So i created the code to detect the most recent file. Now i have the RID of the most recent file but i dont know how to display it. response.write() only takes a String. How do i get the file represented by the RID i have and open it in the iView?
    Thanks alot,
    Ale

    Hi,
    Here's the code i'm using that prints 208 to the screen:
    IResource ir = ResourceFactory.getInstance().getResource(RID.getRID(theFile), rContext);
                                  String ext = theFile.substring(theFile.length() - 4);
                                  String contentType = "";
                                  if(ext == ".xls")
                                       contentType = "application/vnd.ms-excel";
                                  else if(ext == ".doc")
                                       contentType = "application/vnd.ms-word";
                                  else if(ext == ".pdf")
                                       contentType = "application/pdf";
                                  HttpServletResponse response = request.getServletResponse(true);
                                  response.setContentType(contentType);
                                  response.setHeader("Content-Disposition", "inline; filename=DownloadReport" + ext);
                                  java.io.InputStream is = ir.getContent().getInputStream();
                                  java.io.PrintWriter out = response.getWriter();
                                  out.println(theFile);
                                  out.println(new InputStreamReader(is).read());
                                  out.close();
    Any idea what is not working correctly?
    Thanks a lot,
    Alessandro

  • Adobe Reader/Preview  pdf-to-Word cut and paste problems...

    Hi,
    I often cut and paste from pdfs of documents where the text is in two columns, to Word documents...and without fail, I get a jumbled-up mix of BOTH columns of text that I have to mess with, deleting bits I don't want, squishing-up the text I do, etc...
    What am I doing wrong, and is there anything I can do to stop this happening?!
    Thanks very much for any advice.

    If you are using Adobe Reader to open the pdf then the selection tool should highlight what you are copying and pasting. Unfortunetley sometimes with double row columns you are forced to copy parts of text that you don't want.

  • How to add an attachment(excel,word or pdf) while replying to a mail in iphone?

    Hi,
    I have 3 of my mail accounts synced in my iphone. While i have an option of sending an image, excel, pdf or word document by attaching them in mail using docstogo, i would want to attach word documents, excels & pdfs while replying to my official or personal mails.
    Is there a way it can be done using the native mail application or should i download some other application for it.
    Regards,
    Sathyan

    Something doesnt quite sound right here, firstly an iPhone isnt a media storage device so you cant simply move files to it, you need to use an App such as Documentd to Go or cloud storage such as Drop Box or Sky drive to store the documents then you will be able to View them from your phone.
    Emailing them is another option and this works fine for all the people i know, for pdf, excel, word and txt documents and most common files but again this is view only.
    Apple have their our apps, Pages, Numbers etc which also uses the cloud to store the documents which can then be accessed from any ios device or mac etc.
    Finally as mentioned above, music and video's are managed through iTunes, using Apple products means you need to use the tools offerred by Apple to get best use of the device, thats just the way it is with Apple.

  • How to copy an Excel, Word, music or video file from my Windows computer to iphone 4s?

    I am using my new iphone 4s for 2 weeks now.  I am not able to copy my favourite old music and video files and some useful Excel, Word and Pdf files from my Sony Vaio.  Why doesn't it allow for copy paste when it is connected to my laptop by USB cable?  Moreover it doesn't accept Bluetooth connection from my computer as well.  Then I tried emailing the file, but it doesn't download the file, instead makes a link in the homescreen and for opening the file, I have to connect to the inernet. 
    I don't know what is happening with this phone.  These are the basic things which a user wants in any phone.  If it is not allowing for these things despite all that hypes and fame sorrounding it, it is a pretty useless thing.  So is there any option to copy the files onto it?  Thank you in advance.

    Something doesnt quite sound right here, firstly an iPhone isnt a media storage device so you cant simply move files to it, you need to use an App such as Documentd to Go or cloud storage such as Drop Box or Sky drive to store the documents then you will be able to View them from your phone.
    Emailing them is another option and this works fine for all the people i know, for pdf, excel, word and txt documents and most common files but again this is view only.
    Apple have their our apps, Pages, Numbers etc which also uses the cloud to store the documents which can then be accessed from any ios device or mac etc.
    Finally as mentioned above, music and video's are managed through iTunes, using Apple products means you need to use the tools offerred by Apple to get best use of the device, thats just the way it is with Apple.

  • I have a renewed subscription to convert from PDF to Word or Excel.  on Adobe's website, I should be able to select a file from my desktop for conversion.  any simple steps to remind me how to do this?

    After logging in to my account at adobe, I should have an option to convert a PDF to excel or word.  I am not able to get there.  Any 3 or 4 step that any one guide me to?

    To use the online service you must upload the file to the service's web site after sign in to your account.
    The ExportPDF and the PDF Pack Services provide for PDF to Word / Excel. 
    Each has its own dedicated user-2-user forum where you'll want to browse and ask questions.
    For ExportPDF:
    https://forums.adobe.com/community/exportpdf 
    For PDF Pack:
    https://forums.adobe.com/community/createpdf 
    Be well...

  • How do you convert a PDF to Word or Excel in Acrobat 9 Pro?

    How do you convert a PDF to Word or Excel in Acrobat 9 Pro?

    Refer to Acrobat 9 Help PDF (installed with Acrobat 9 is installed).
    Review the  discussion for Exporting PDFs in Chapter 5 of this Help PDF.
    The PDF is also available on Adobe's site.
    http://help.adobe.com/archive/en_US/acrobat/9/professional/acrobat_pro_9.0_help.pdf 
    Good to know is that the Acrobat 9.x product family passed into End of Support mid-year 2013.
    Be well...

  • Hi: How do I convert a PDF to Word, Excel, or PowerPoint?

    Hi All,
    How to convert the PDF file to Ms Word, Excel and Power Point?
    Regards,
    Zenny

    I'm also looking for instructions on converting to Word doc.  When I click on the link contained in your response I get a message from Safari saying something like can't find local host.  When I directly type the url in your email
    (http://forums.adobe.com/docs/doc-2412) I get a message on your Adobe website saying I'm not authorized to access.  Where can I find a tutorial/manual on how to convert .pdf to Word.  Formatting in new Word doc is way outside print boundaries as well as having other issues.

  • Insert a PDF ro Word doc into an Excel sheet

    I have to track parts.  I created a spreadsheet to do this.  We are trying to as paparless as possible is my office.  I need to insert a PDF copy or the actual Word doc into the spreadsheet so my techs can access it and indicate that the
    parts have arrived.  This spreadsheet is on a SharePoint site and so are the PDF or Word copies of the documents that the techs need.  Inserting a hyperlink will pull the PDF doc up in another web tab which is what I don't want. 
    I need to be able to pull the docs up and modify them and save them back to the SharePoint file. Help!  THANKS!!!! 

    Have you considered using a SharePoint list instead of an excel spreadsheet? You can then attach one or many documents to each row in the list.

  • Does creating Excel,Word,PDF reports & printing in Apex need licensing ?

    I am new to this Apex 4.0
    I have installed the Apex 4.0 with Oracle 10g database.
    Now using Apex if I create any web application, and develop some reports in the web application.
    1) Now to do the printing of the reports in Excel,Word,PDF does Apex need some other components to be installed ?
    2) Does those components needs licensing ? or are they free like Apex 4.0 ?

    Hi,
    Yes you need other components
    http://www.oracle.com/technetwork/developer-tools/apex/configure-printing-093060.html
    Some of solutions need license, like BI Publisher.
    There is also free solutions using e.g. Cocoon, Jasper reports ...
    http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    http://www.poveravoce.net/blog/?p=85
    http://ubuntuforums.org/showthread.php?t=1004742
    http://daust.blogspot.com/2010/09/jasper-reports-integration-v1100.html
    ANNOUNCE:JAPEX Open Source PDF reporting & Blob Download/Flash upload
    Regards,
    Jari

  • Exporting pdfs to word and excel file formats  and translating

    Hello, I am new to this forum and came here because I am a professional translator. Although we should be given documents in their original file format, in the real world translators have to convert pdfs such as manuals or annual reports into word or excel files. Given the fact we often work for agencies, and/or do not work directly with the people who created the original files inthe first place, with the best will in the world we normally have to make do with converting the pdf file, or lose the job.
    I would like advice on the best way to learn more about  pdf to word and excel conversion and ways of keeping formatting when it is helpful and removing what is not.
    The general problem is (well the problem is really ignorance on my part!) of course getting the "look and feel" similar in the converted document and knowing more about manipulating the formating and elements which get converted.
    Any help or pointers to online tutorials whether multimedia or text much appreciated.
    David Hardisty (david1610)

    Thank you Lori, this is so clear! I am a teacher as well and there are clear presentations and wonderfully clear presentations and this is in the latter category.
    A tiny suggestion. You would not believe how many pdf files exported to word I have received that are Portuguese content and the sender has not set the language to Portuguese! So in your text entry you might want to mention the language setting. I know it is obvious, but as we know sometimes we cannot see the obvious!
    I will need to look far more carefully at the final things in your video.
    Are there any special considerations for exporting pdf files as Excel? My original doubt was I had to translate some accounting documents. 95% of the document was numbers which did not changing (except for commas to periods and vice versa due to different separator conventions). I did not now how to just select e.g. the vertical column with text. I will go back and try with this suggestion because in this case the look and feel of the numbers was important and the precise fonts etc. seemed to cause problems. But now I am getting out of my depth!
    Thank you again!
    DavidHardisty

  • Problem converting PDFs to Word or Excel, does anyone know why?

    I have been converting PDFs to Word or Excel for several years but lately every time I try an error message comes up saying "an error occurred while trying to AdobeExport PDF online", does anyone know why?

    Como não falo o Ingles, não sei se minha pergunta é correta! Na transformação de um arquivo editado em PDF para transformação em Excxel, noto que essa transformação não esta sendo feita para uma planilha do Excel (13). exemplo. Na planilha em PDF o valor é de R$ 25,00. Na transformação para o Excell 13, Esta constando 2.500. Quando abre essa planilha em PDF para fins de Impressão, ela é toda normal para uma planilha de Excell. Mas, quando faço a transformação de PDF para o Excel, distorce toas as colunas, apresentando um titulo do PDF abrangendo mais colunas. Caso haja uma resposta sobre esse meu problema, peço comunicar-me, em Portugues pelo E.mail  [email protected] ou E.mail [email protected]
    Obrigado
    Waldomiro

  • Tracking placed files (jpeg,tiff,word,PDF,excel)

    It was recommended to ask this here vs bridge - not much luck in bridge. The situation: i have multiple sources sending a variety of files (jpeg,tiff,word,PDF,and excel). As the book is designed many of them will be placed. As long as the sources update with the same name im good. However, they will inevitably send me batches of files containing new files - how can I track what has been placed and what hasn't. I will have multiple folders to organize the chaos. One thing bridge helped with: keyword. I can quite easily assign a placed keyword in bridge, filter using that word and im done. Except for word and excel - metadata doesn't take. Someone explained this to me.
    The sources are out of country, so i have to track this. Bridge takes care of 90%. Perhaps someone has dealt with this. Again, if someone adds a new photo without calling it out, keyword work. Its the Microsoft documents that get tricky. In advance, i appreciate our time.

    Start by creating an Item type of OLE container. Set the following properties:
    - OLE Tenant Types: Embedded
    - Database Item: Yes
    Make that item the last item in the block.
    Create a push button such as 'Insert Document' with similar code:
    DECLARE
      vcFile VARCHAR2(1024);
    BEGIN 
      vcFile := win_api_dialog.Open_File('Select Document File to Insert',NULL,'MS-Word files (*.doc)|*.doc|'||
         'PDF files (*.pdf)|*.pdf|Excel Files (*.xls)|*.xls|Outlook message files (*.msg)|*.msg|All files (*.*)|*.*|',
         TRUE,win_api.OFN_FLAG_DEFAULT,TRUE);
      go_block('<block name>');
      last_record;
      Create_Record;
      initialize_container('<oleitemname>',vcFile);
    EXCEPTION
      WHEN NO_DATA_FOUND Then
         Null;
    END;

Maybe you are looking for

  • J2me & servlet - exception  in midlet output

    I am invoking servlet in my MIDlet application. when i invoke on my local netword with local ip of web server it works properly on browser and midlet. but when i invoke with internet with global ip of web server it works properly only on browser not

  • When playing music through iTunes, it no longer starts at a random song.

    I have it set to shuffle and it used to start with a random song.  Now, it always starts with the first song in my library. I prefer the random start, but after the last update, it no longer does it.  Can I change this in a setting or something??

  • Internal mic array issue

    Hello, I am using HP Envy dv6-7267cl, I have recently upgraded from windows 8 to windows 8.1, then the hell broke loose on me, Internal microphone does not work, Camera does not work.. Validity finger sensor stopped working Some how I could get Finge

  • Page won't refresh

    While in Safari I have a few different sites that I have to refresh the current page in order to keep working.  This just atarted happening and our other IMac doesn't do this.  I'm sure it's an easy fix but over my head,  Thx for any help.

  • Clarifiaction on Coherence logs.

    Hello, I recently got a near-cache environment working in our dev tier. I increased the coherence log level to 10 to see if there are any errors happening. I am seeing some logs that i don't really understand what they mean. Can somebody help me unde