Development of program that can work with files from microsoft word

i was wondering if anybody had an idea of how detect and handle for example a text box in a word document if somebody could help please

Try this link
http://jakarta.apache.org/poi/index.html

Similar Messages

  • Can I transfer files from microsoft word onto an IPad and if so how?

    I am getting the new IPad and would like to transfer files from microsoft word onto it. Is this possible and if so how?

    You can, but first you need an app on the iPad that supports the type of document/file that you want to copy to it - the iPad doesn't have a file system like a 'normal' computer, everything has to be associated with an app. As to how you then get the documents to your chosen app will depend upon what the app supports - different apps will have different ways of copying their content to/from a computer e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc.
    Apps that support word documents include Apple's Pages app, and third-party apps such as Documents To Go and QuickOffice HD

  • Can anybody help me to build an interface that can work with this code

    please help me to build an interface that can work with this code
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class Translate
    public static void main(String [] args) throws IOException
    if (args.length != 2)
    System.err.println("usage: Translate wordmapfile textfile");
    System.exit(1);
    try
    HashMap words = ReadHashMapFromFile(args[0]);
    System.out.println(ProcessFile(words, args[1]));
    catch (Exception e)
    e.printStackTrace();
    // static helper methods
    * Reads a file into a HashMap. The file should contain lines of the format
    * "key\tvalue\n"
    * @returns a hashmap of the given file
    @SuppressWarnings("unchecked")
    private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException
    BufferedReader in = null;
    HashMap map = null;
    try
    in = new BufferedReader(new FileReader(filename));
    String line;
    map = new HashMap();
    while ((line = in.readLine()) != null)
    String[] fields = line.split("
    t", 2);
    if (fields.length != 2) continue; //just ignore "invalid" lines
    map.put(fields[0], fields[1]);
    finally
    if(in!=null) in.close(); //may throw IOException
    return(map); //returning a reference to local variable is safe in java (unlike C/C++)
    * Process the given file
    * @returns String contains the whole file.
    private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException
    BufferedReader in = null;
    StringBuffer out = null;
    try
    in = new BufferedReader(new FileReader(filename));
    out = new StringBuffer();
    String line = null;
    while( (line=in.readLine()) != null )
    out.append(SearchAndReplaceWordsInText(words, line)+"\n");
    finally
    if(in!=null) in.close(); //may throw IOException
    return out.toString();
    * Replaces all occurrences in text of each key in words with it's value.
    * @returns String
    private static String SearchAndReplaceWordsInText(Map words, String text)
    Iterator it = words.keySet().iterator();
    while( it.hasNext() )
    String key = (String)it.next();
    text = text.replaceAll("\\b"key"
    b", (String)words.get(key));
    return text;
    * @returns: s with the first letter capitalized
    String capitalize(String s)
    return s.substring(0,0).toUpperCase() + s.substring(1);
    }... here's the head of my pirate_words_map.txt
    hello               ahoy
    hi                    yo-ho-ho
    pardon me       avast
    excuse me       arrr
    yes                 aye
    my                 me
    friend             me bucko
    sir                  matey
    madam           proud beauty
    miss comely    wench
    where             whar
    is                    be
    are                  be
    am                  be
    the                  th'
    you                 ye
    your                yer
    tell                be tellin'

    please help me i don t know how to go about this.my teacher ask me to build an interface that work with the code .
    Here is the interface i just build
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.awt.*;
    import javax.swing.*;
    public class boy extends JFrame
    JTextArea englishtxt;
    JLabel head,privatetxtwords;
    JButton translateengtoprivatewords;
    Container c1;
    public boy()
            super("HAKIMADE");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setBackground(Color.white);
            setLocationRelativeTo(null);
            c1 = getContentPane();
             head = new JLabel(" English to private talk Translator");
             englishtxt = new JTextArea("Type your text here", 10,50);
             translateengtoprivatewords = new JButton("Translate");
             privatetxtwords = new JLabel();
            JPanel headlabel = new JPanel();
            headlabel.setLayout(new FlowLayout(FlowLayout.CENTER));
            headlabel.add(head);
            JPanel englishtxtpanel = new JPanel();
            englishtxtpanel.setLayout(new FlowLayout(FlowLayout.CENTER,10,40));
            englishtxtpanel.add(englishtxt);
             JPanel panel1 = new JPanel();
             panel1.setLayout(new BorderLayout());
             panel1.add(headlabel,BorderLayout.NORTH);
             panel1.add(englishtxtpanel,BorderLayout.CENTER);
            JPanel translateengtoprivatewordspanel = new JPanel();
            translateengtoprivatewordspanel.setLayout(new FlowLayout(FlowLayout.CENTER,10,40));
            translateengtoprivatewordspanel.add(translateengtoprivatewords);
             JPanel panel2 = new JPanel();
             panel2.setLayout(new BorderLayout());
             panel2.add(translateengtoprivatewordspanel,BorderLayout.NORTH);
             panel2.add(privatetxtwords,BorderLayout.CENTER);
             JPanel mainpanel = new JPanel();
             mainpanel.setLayout(new BorderLayout());
             mainpanel.add(panel1,BorderLayout.NORTH);
             mainpanel.add(panel2,BorderLayout.CENTER);
             c1.add(panel1, BorderLayout.NORTH);
             c1.add(panel2);
    public static void main(final String args[])
            boy  mp = new boy();
             mp.setVisible(true);
    }..............here is the code,please make this interface work with the code
    public class Translate
    public static void main(String [] args) throws IOException
    if (args.length != 2)
    System.err.println("usage: Translate wordmapfile textfile");
    System.exit(1);
    try
    HashMap words = ReadHashMapFromFile(args[0]);
    System.out.println(ProcessFile(words, args[1]));
    catch (Exception e)
    e.printStackTrace();
    // static helper methods
    * Reads a file into a HashMap. The file should contain lines of the format
    * "key\tvalue\n"
    * @returns a hashmap of the given file
    @SuppressWarnings("unchecked")
    private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException
    BufferedReader in = null;
    HashMap map = null;
    try
    in = new BufferedReader(new FileReader(filename));
    String line;
    map = new HashMap();
    while ((line = in.readLine()) != null)
    String[] fields = line.split("
    t", 2);
    if (fields.length != 2) continue; //just ignore "invalid" lines
    map.put(fields[0], fields[1]);
    finally
    if(in!=null) in.close(); //may throw IOException
    return(map); //returning a reference to local variable is safe in java (unlike C/C++)
    * Process the given file
    * @returns String contains the whole file.
    private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException
    BufferedReader in = null;
    StringBuffer out = null;
    try
    in = new BufferedReader(new FileReader(filename));
    out = new StringBuffer();
    String line = null;
    while( (line=in.readLine()) != null )
    out.append(SearchAndReplaceWordsInText(words, line)+"\n");
    finally
    if(in!=null) in.close(); //may throw IOException
    return out.toString();
    * Replaces all occurrences in text of each key in words with it's value.
    * @returns String
    private static String SearchAndReplaceWordsInText(Map words, String text)
    Iterator it = words.keySet().iterator();
    while( it.hasNext() )
    String key = (String)it.next();
    text = text.replaceAll("\\b"key"
    b", (String)words.get(key));
    return text;
    * @returns: s with the first letter capitalized
    String capitalize(String s)
    return s.substring(0,0).toUpperCase() + s.substring(1);
    }... here's the head of my pirate_words_map.txt
    hello               ahoy
    hi                    yo-ho-ho
    pardon me       avast
    excuse me       arrr
    yes                 aye
    my                 me
    friend             me bucko
    sir                  matey
    madam           proud beauty
    miss comely    wench
    where             whar
    is                    be
    are                  be
    am                  be
    the                  th'
    you                 ye
    your                yer
    tell                be tellin'

  • I want to place an image in my InDesign document that can work with an address like this (\Resources\Thumb) rather than this (C:\Users\JSmith\Desktop\InDesign thumbnail Test\001\Resources\Thumb) is this possible?

    I want to place an image in my InDesign document that can work with an address like this (\Resources\Thumb) rather than this (C:\Users\JSmith\Desktop\InDesign thumbnail Test\001\Resources\Thumb) is this possible? In a nutshell I want to point the link to an image in a directory that uses just part of the address.

    I know this is something you can do in Maya with linked files. I guess InDesign just isn't there yet.
    MW Design -  Yeah I think "Relative paths" is the right term! I want to create a Layout with an image in the center of the page - and then duplicate my folder structure with that file. With that, I want to replace the Linked image file with a diferent image file of the same name. In effect having multiple files of the same layout with different images.  I hope that made sense.  

  • Develop a program that can read pdf document in the UClinux OS?

    hello,
    I'm a programmer in a company which is doing embed development ,i want to develop a program that can read pdf document in the UClinux OS?
    Can some one give me some ideas?
    can some body give me some information?
    My email is [email protected]
    thank you!!!

    I would strongly recommend using one of the libraries that are available (Google). If you don't want to pay the (modest) costs of a commercial license, there are several open source projects with licenses that allow you to use them in commercial products.

  • A contact and calander program that can sync with iTunes

    Hi There Everydoby-
      I was wondering if anybody know of a free calander and contact program that can sync with iTunes and my iPod touch. I do not have Microsoft Office, I currently use Open Office for my word and Excel documents. But I do not have a clalander or contact program that will sync with iTunes.
      So if anybody can let me know if anybody is using or know's of what I can use that will work with iTunes, i'd really appriciate it.
    Thanks- Doug

    Hey Galilio,
    You can try restoring the iPhone from a backup that is dated before the contacts were erased. This article: http://support.apple.com/kb/HT1766 will walk you through restoring the iPhone from backup.
    You can also Reset the Sync History from the iTunes preferences window, under Devices. This would force iTunes to prompt you again, asking if you want to merge or replace contacts. This article: http://support.apple.com/kb/HT1692 provides more information.
    -Jason

  • I want to buy iPad Air online, how do I know the one that can work with Nigeria gsm network.

    I want to buy iPad Air online, how do I know the one that can work with Nigeria gsm network.

    Take a look at HeadRoom (headphone.com). It's a fabulous resource for all types of headphones, with great guides and useful reviews.
    http://www.headphone.com/

  • Will the current plugins for Sigma DP1/2 RAW files work with files from the DP1/2 Merrill cameras? A

    Will the current plugins for Sigma DP1/2 RAW files work with files from the DP1/2 Merrill cameras? And if not, is Adobe developing plugins for these cameras?

    Not sure what plugins you mean, Hornet - Lr doesn't rely on plugins to read new cameras.
    If you mean the Adobe Camera Raw (ACR) plugin - that's for Photoshop, not Lightroom. Lr has the same functionality as ACR, but it's hard-coded into the program, so if you're looking for support for a new camera, you need to wait for a new version of Lr.
    And nobody here can say when Lr support for a given camera will happen.
    Hopefully someone with a Merrill will be able to chime in about whether its files work with the current Lr.

  • HOW CAN I IMPORT TEXT FROM MICROSOFT WORD TO THE WEB PAGE?

    HOW CAN I IMPORT TEXT FROM MICROSOFT WORD TO THE WEB PAGE?

    Another method is tosave your Word document as an a web page.  Then open the htm file, copy the text and paste into an HTML snippet on your web page.  Resize to show all the document and publish. It will retain the style, font and alignment of the original Word document.
    OT

  • Hi! I have a MacBook and I am trying to delete files from Microsoft Word. Somehow I cannot simply throw them in the trash. Does anyone know how to resolve this issue?

    Hi! I have a MacBook and I am trying to delete files from Microsoft Word. Somehow I cannot simply throw them in the trash. Does anyone know how to resolve this issue?

    Why not? Are there error messages? Where are the files located? Why are you deleting MicroSoft Word files?

  • Is there a way I can easily manipulate tables from Microsoft Word in Illustrator?

    So my boss has a lot of tables from microsoft word that she wants to move into Illustrator in hopes that this will be easier for her to manipulate them. However, her main concern is that she wants to be able to easily edit the content of the tables without having to individually adjust each row or cell. Is there a way to move microsoft word tables into illustrator in a way that when adding new content, the rows and cells adjust to fit the text?
    I've played around with tables in illustrator in a few different ways trying to make this work, like using the area type tool options to add rows and columns to a text box, using the rectangular grid tool, and simply copying and pasting tables from word into Illustrator. I've run into the same issue each time, which was that I could pretty easily change the text, but when it comes to resizing the cells, it's pretty similar to word.
    Is there any way I can make this work in Illustrator? Or would this be possible with another program like Photoshop or Indesign?
    Any advice is appreciated.

    We are going to try InDesign, thank you

  • Why does thunderbird attach only "backup" files from microsoft word?

    when I click on "attach" onkly the backup files show up and they are not the same as the latest version. How can I set FIrebird so it shows the proper files on microsoft word?

    then all I can guess is there are only backup files in that folder. however in a file dialog, type *.* and press enter in the file name box just to be sure.

  • Is there a program that can view .indd files?

    Besides inDesign or inCopy, I mean.  I'm aware that there are programs that will extract the preview thumbnails from the file, but are there any that will view the .indd file itself?  My manager doesn't want to spend the money on a copy of inCopy for all of our users, but wants to give people the option to view .indd files currently in progress.

    Greetings! Matheau from Code Line here.
    Our product, Art View for Mac (formerly SneakPeek Pro), allows you to preview InDesign, as well as Illustrator, ASE, Freehand MX and others from Quick Look. It doesn't require you to have InDesign installed. For InDesign docs, it uses the built-in thumbnails which can be quite good if configured properly before saving. We talk a bit about getting better previews with InDesign on our blog.
    Here's a link if you'd like to see how it works:
    Thanks!
    Matheau
    P.S. We also have SneakPeek for iOS offers previews for InDesign and Illustrator as well.

  • Office programs that'll work with 10.2?

    I'm looking for some type of office program to use with my eMac with 10.2 currently installed, tired open office, but not supported i guess, maybe an older version but its not off the site anymore.
    Know of any that might work?

    You can get the freeware AbiWord, a word processor, which is equivalent to M$ Word http://www.abiword.com/
    NeoOffice (freeware) is equivalent to Microsoft Office. It can open Excel files, Word files & PowerPoint files. You can also create these types of files that can be opened by PC users. However, it requires OS 10.3. Download the OS 10.3 version of Neo Office here.
    http://www.neooffice.org/neojava/en/olddownload.php#download
    Neo Office v3.0 requires OS 10.4.x.
    Buy a used copy of M$ Office 2004. It will operate on OS 10.2.x
     Cheers, Tom

  • Hi. I need a apple program that can work and open Office 7 Publisher

    Hi. I am new to apple computing and I find that my work in office publisher is not able to open on this Mac I have Pages but that is the only program I have on here.
    Can any help me with a suggestion whit what program Apple has that is comparable with this window format?

    I have a copy of Libre Office here, and I have a sample .pub file downloaded from MS. I can not open it using Libre Office, please point me to the method you used.
    But ....
    I just found (in the impress module) a listing for Publisher, unfortunately it fails when opening the sample file (looks like a text only import), I will look for another file to test with.
    Thanks for the lead.
    Update:
    It does work:
    Downloaded Publisher Template, opened and re-saved in Libre Office Draw.
    To the OP, download Libre Office, Viking should get the solved award.

Maybe you are looking for

  • How do I save data in a numbers spreadsheet? I am trying to convert from Excel and can't find the save button!

    I am new to Imac and numbers and am currently working on my first spreadsheet but must be thick as I cannot find the save icon!

  • Packaging material is not appearing in the Goods receipt of STPO

    Dear All, We are currently dealing one Roll-Out project for one multinational company. In that from sales side, one of the main processes defined is u201CStock Transport Purchase Order processu201D. As a regular process, outbound delivery document al

  • ABAP query changes

    Hi All I have one abap query in Production server. 1. I wanted to know if there is any way to know who has done the changes and when. 2. If i want to transfer the query from test server to productions server then how can I do that?

  • Usage advice

    hi i need advice on using the mbp so it last longer. so i just got the new macbook pro 13" few weeks back. im a very busy person and always had to rush somewhere. normally id just close the lid, put it in my bag, and later, i'd open the lid, and cont

  • Cannot delete songs of iphone

    i have just uploaded the new IOS5 for iPhone4 and latest iTunes. However now i cannot delete songs off the phone in iTunes and i cannot make any adjustments to details of the song (such as eqauliser presets or volume) - its greyed out. I can still do