How to open ppt in java

Hello,
i am trying to open powerpoint presentation file in my application. i donn't it is possible or not.if possible then tell me how i can do that.
plz send me coding.
i m wating your reply
Thank in advance
sandy

It seems what you're asking is - how to open the file (xyz.ppt) for your power point presentation and read it into memory and do something useful with it. The first part is obvious, including classes from java.io or java.nio depending on your preference. However, what to do with it afterward.
Well, there is the POI project at apache.org ... it's a set of Java classes that know how to decode Microsoft's proprietary file formats. Last I looked, the powerpoint support was minimal and fragmentary.
It is possible, because ThinkFree (http://thinkfree.com) Office reads PPT files quite well, and writes PPT files good enough that real Power Point can read them. But they own their code and didn't release it to the public.
- David

Similar Messages

  • How To Open Word In Java Application

    Hello
    How To Open Ms-Word Or Ms-Excel Or Any Other Format In Java Application
    According To Their Own ForMat

    The best is to know which program you like to execute. Make those many strings available. Suppose you like to execute M$ Word and M$ Excel. Now do like this..
    String word = "";  // null
    String excel = ""; //null
    /* In the File Class you can find out the methods that can search these files and return thier
    absolute and relative paths. Save those paths in uppe String(s) word and excel and place them in
    runtime.exec( word/excel)...etc. Place this code before a tolbar button and click that..*/

  • How to open .ppt file from email?

    Can i open .ppt file on my iphone? I've got that file on email.

    Ansuz82,
    Correct, the User's Guide lists the supported formats on Page 117:
    http://manuals.info.apple.com/en/iPhoneUserGuide.pdf
    A quote of the appropriate section (as appears on Feb 9, 2008) is:
    *If you can’t open an attachment in an email*
    The file type may not be supported. iPhone supports the following email attachment
    file formats:
    • .c, .cpp, .diff, .doc, .docx, .h, .hpp, .htm, .html, .m, .mm, .patch, .pdf, .txt, .xls, .xlsx

  • OLE Objects - How to open them in Java?

    Hello ppl,
    An OLE Object contains a header set by the Access Database and the file itself.
    I just quit trying to find a way to remove the OLE header and get only the file, once the file inside the OLE Object might be from a lot of types, like docs, or pdfs...
    Now, I just want to take this OLE Object and open it from Java.
    Does anybody know any way for me to do this?
    http://edndoc.esri.com/arcobjects/9.2/java/api/arcobjects/com/esri/arcgis/carto/IOleFrameProxy.html#open()
    In this link, this method describes exactly what I want. But I don�t think I�m allowed to use it.
    Isn�t there any free library that helps inthis subject?
    Thanks in advice.

    I don't see that this is a JDBC topic.
    Presumably you googled for this.
    You can of course write JNI code to access OLE.

  • How to open .ppt or .pot or .doc files in safari for mac?

    HI Guys
    I stuck in problem.Actually i want to open .ppt or .doc or .pot file in safari Browser for mac version.
    I am using js to open file using window.open method.But it is not opening but in mozilla it is showing a popup window to open or save file.
    is it supported in safari. Please reply.
    Regards
    Mohit Verma

    I got the impression from his phrasing that he wanted the Office documents to actually display in a browser tab like they would in IE.
    Safari can't do that.  Neither can Firefox, Chrome or Opera.  Firefox and opera give you the option of opening the file with a native application...but it's not in the web browser so it can't be javascripted the way he's describing.
    As far as I know, it's an IE-only feature.

  • How to open/download a .java file instead of it opening as a txt in a new Firefox tab?

    Hi,
    I need to download/open on my computer a .java file, but Firefox does not give me an "Open" or "Download" box, instead, it opens the java file as text in a new tab.
    How do I download/open it on my computer?

    I assume that you are referring to a JavaScript file.
    Java and JavaScript are different languages.
    To avoid confusion, see:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    If the server sends the file as text/plain then Firefox will open the file in a tab if you left click and not offer to download/save the file.
    In that case you need to save the file via the right-click context menu or the File menu.
    You will have to right-click the link and use "Save Link As" to save such a file directly instead of left-clicking the link.

  • How to open acrobat in java and compare two files using javacode

    I am absolutely new to use acrobat software in Java. I want to open two pdf files at a time and then compare the differences between them thru java program .
    i am not sure how to do it. iam trying many ways without success.
    I used jre and could open open files using runtime method , but couldn't do comaparision. i..e could't access tools menu (alt+t) Compare two files and <enter>. help in java will be appreciated.
    Pls guide me the steps to use the acrobat library. At http://partners.adobe.com/asn/acrobat i found supporting vb and vc only.
    Any help or links are greatly appreciated.

    iText is an open source PDF library, reads a PDF one page at a time. You could check it out. I've used it for writing/splitting/concatenating PDFs, but not comparing files
    http://www.lowagie.com/iText/
    Scott
    http://www.swiftradius.com

  • How to open VLC wit JAVA and later play a file with it..?

    Hi,
    I do it if I want to Play a file with VLC:
    Runtime rt = Runtime.getRuntime();
              try {
                   rt.exec("C:\\Program Files\\VideoLAN\\VLC\\vlc " + "C:\\songs\\llarala.mp3");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but I want to Open VLC and later work with this VLC opend, for example to Play a file with it. Anyone knows how to do it? Thanks.. I' m new about that..

    Keep working as you are is the simplest way. The VLC client (and server) has a pretty rich command-line interface, you can do pretty much anything through the command-line that you can with any other interface. Or there's the telnet interface, if all those processes are too much

  • How to open MSWORD using JAVA/JNI and write the database entries into WORD

    Hi..
    I am searching for java codes that uses JAVA NATIVE INTERFACE (JNI) for opening MSWORD 2003.
    To be brief.
    I created HTML form called Employee_data.
    if i click on Submit button a word document should be opened.This should be using JNI.
    I have also created a servlet in jsp to process the form data and store it into database(mysql).;
    Please help me to find the codes to open MSWORD on submit click and to write the database entries into word file.Can i get the full code for that.This is so urgent.
    Thanks in advance.

    Hi Suresh,
    The easest solution I can think of is to copy the math equation from the PowerPoint then paste in the Word document directly, there's actually no way to convert it to plain text, some equation is very complext, String variable is not suitable in this case.
    For example, this code works fine:
    var powerPoint = new Application { WindowState = PpWindowState.ppWindowMinimized };
    var oPresSet = powerPoint.Presentations;
    Microsoft.Office.Interop.PowerPoint._Presentation oPres = oPresSet.Open(@"C:\test.pptx", MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
    var strObj = oPres.Slides[1].NotesPage.Shapes[2].TextFrame2.TextRange.MathZones.get_MathZones();
    strObj.Copy();
    Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
    wordApp.Visible = true;
    Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Add();
    doc.Range(0, 0).Paste();
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do i  open browser in java application

    hi....
    please help me!!!!!!!!!!!!!!!!!!!!!!!!!!
    how do i open browser in java application ? ( for show javascript in java application)
    thank you.......

    You can run any program from java by doing
    Runtime.getRuntime().exec("mybrowser myjavascriptfile.js");
    The real question is why would you want to.
    I would suggest you rethink whether running Javascript from Java is a good idea.

  • Help--How can I open only one java program at one time?

    How can I open only one java program(same program) in Windows at one time?

    In Java 1.5, you can use the JVM's own monitoring APIs to examine what other JVMs are running on the system, and what applications they're running.
    It's general and powerful, but complex. The socket/file/whatever approach is cleaner, and probably more suited to your usage.
    Don't bother trying to use the Windows task manager for this sort of thing. You have to write messy native code, and it isn't reliable after all that anyway.

  • How to open another application from a java programme

    How can I open some other application like "Textpad"
    from a java programme.
    Actually I want to open a particular java file in Textpad editor from my java programme.
    How Can I do that?
    Thanks

    Thanks for the code,
    I tried that but got this error
    java.io.IOException: CreateProcess: C://ProgramFiles/TextPad4/TextPad.exe D://Pi
    yush/BeanCreator/Parts.java error=3
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:64)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:272)
    at java.lang.Runtime.exec(Runtime.java:195)
    at java.lang.Runtime.exec(Runtime.java:152)
    at pack.CreateBean.CreateFile(CreateBean.java:327)
    Any idea!! What that means

  • How to open/read file using Java in Unix?

    Hi Friends,
    Can you please help me out how to open/read file using java in unix os? I have create one text file in "/home/test.txt" in unix environment. How to open the same file & read using java code?
    - Hiren Modi

    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • How to open an existing file from java

    Hi Guys,
    I have one problem Please help me in this.
    How to open file(i.e. file can be any type, it is may be image file, doc file or pdf file) using java.
    Even i tryed in one way but it is static way that is working in windows not for other OS.
    Code :
    import java.io.*;
    public class CmdExec {
    public static void main(String argv[]) {
    try {
         DataInputStream din=new DataInputStream(System.in);
         System.out.println("Enter File Path to Open");
         String fName=din.readLine();
         File file=new File(fName);
    Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + file.getAbsolutePath());
    catch (Exception err) {
    err.printStackTrace();
    If any other way to do please tell me.
    Regards
    Siva Prasad

    Well, if the OS doesn't provide a mechanism to associate a file name with a certain program, there's nothing you can do.
    I don't know whether something like JDIC can help you - otherwise, you'd have to find the solution for each OS. What's inside the exec()'s parenthesisses is not a Java problem anymore.

  • How can i let my java application closes the other opened windows

    how can i let my java application closes the other opened windows: like any other Microsoft Internet Explorer windows ... provided that my java application is not the one i used to open those other windows.... thanks in advance

    you'll have to use JNI to access the windowAPI
    then you need a list of window handles ... I think there was a function called getWindow and in order to close them you use sendMessage .... for details check out msdn (microsoft developer network)
    somwhere I saw a tool called JUtil, which might help you getting started on accessing the win api from java
    regards
    Spieler

Maybe you are looking for

  • How to reinstall Adobe Reader (E6)

    I uninstalled by mistake Adobe Reader on my E6. Does anybody know how can I get it back? The trial version on QuickOffice website says I have to install the main package first (?), I've tried to restore it through the backup I had made on PC and on t

  • Next to spotlight

    There is an icon next to spotlight, on the top right of my screen that I do not want up there. I have tried apple + click to drag it off, but it simply clicks the icon. This icon is run by an application Net Barrier the kicker is that I deleted that

  • [SOLVED] Removing/replacing freetype2-infinitality

    Hello, I am trying to replace freetype2-infinality with freetype2-ubuntu and I am getting the following error: [darksector@arch freetype2-ubuntu]$ sudo pacman -U freetype2-ubuntu-2.4.10-1-x86_64.pkg.tar.xz loading packages... resolving dependencies..

  • System wont boot after restart, hangs..

    Hello. Recently i have got a strange problem. When i restart or power on my computer without using the "main power switch on psu" my system hangs either just before cpu post or memory post. If i turn it off  and on again using the switch on the psu i

  • Blackberry curve 9300 please help

    Hi ive got a 9300 curve and my bbm was working perfectly.i was prompted to do a version update yesterday.once i did the update my bbm does not work proparly.it keeps on hanging and the scroller doesnt move when it should etc.is there any way i could