Open a .doc file

Just got a new iMac (Lion). I have older .doc files that it appears I can read and edit and save and print. I don't need the Microsoft word program for this. But for incoming .doc files sent via email, for instance, cannot be read.  Do I need to purchase Microsoft Word to open them? Does the Apple Pages program allow me to open .doc files?
Thanks.

Pages, OpenOffice, and similar programs will open them. There's a trial version of Pages available on Apple's site.
(61300)

Similar Messages

  • Problem in opening a doc file using Runtime.exec()

    Code:
    import java.io.*;
    class StreamGobbler extends Thread {
        InputStream is;
        String type;
        StreamGobbler(InputStream is, String type) {
            this.is = is;
            this.type = type;
        public void run() {
            try {
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line=null;
                while ( (line = br.readLine()) != null) System.out.println(type + ">" + line);   
            catch (IOException ioe) {
                 ioe.printStackTrace(); 
    public class GoodWindowsExec {
        public static void main(String args[]) {
             String file = "test.doc";
             String appPath = "/C";
            try {
                String osName = System.getProperty("os.name" );
                System.out.println("OS : " + osName);
                String[] cmd = new String[3];
                if( osName.equals( "Windows NT" ) || osName.equals( "Windows XP" )) {
                    cmd[0] = "cmd.exe" ;
                    cmd[1] = appPath;
                    cmd[2] = file;
                else if( osName.equals( "Windows 95" ) ) {
                    cmd[0] = "command.com" ;
                    cmd[1] = appPath;
                    cmd[2] = file;
                Runtime rt = Runtime.getRuntime();
                System.out.println("Execing " + cmd[0] + " " + cmd[1] + " " + cmd[2]);
                Process proc = rt.exec(cmd);
                // any error message?
                StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR");           
                // any output?
                StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT");
                // kick them off
                errorGobbler.start();
                outputGobbler.start();
                // any error???
                int exitVal = proc.waitFor();
                System.out.println("ExitValue: " + exitVal);       
            catch (Throwable t) {
                t.printStackTrace();
    }I got this code from internet. Program will work fine if my "test.doc" is in "C:\test.doc" directory. Is there any way to get the application path and open the doc file or how to give a specified path for my doc file
    EG:- "C:\TestDir\test.doc"
    Thanks

    Well /C is not the path to the app. It is a switch to
    the command line.
    set your file name to "C:/test.doc"
    ~TimSorry, I guess my reply doesn't really answer the problem. But you can supply the entire path as part of the file name string.
    String file = "C:/Path/To/My/File/to execute/test.doc"

  • How to open a ".doc" file with ms word directly with this servlet?

    Here is a servlet for opening a word or a excel or a powerpoint or a pdf file,but I don't want the "file download" dialog appear,eg:when i using this servlet to open a word file,i want open the ".doc" file with ms word directly,not in IE or save.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class OpenWord extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    doPost(request,response);
    public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException {
    String strFileName = req.getParameter("filename");
    int len = 0;
    String strFileType1 = "application/msword";
    String strFileType2 = "application/vnd.ms-excel";
    String strFileType3 = "application/vnd.ms-powerpoint";
    String strFileType4 = "application/pdf";
    String strFileType = "";
    if(strFileName != null) {
         len = strFileName.length();
         if(strFileName.substring(len-3,len).equalsIgnoreCase("doc")) {
              strFileType = strFileType1;
         } else if(strFileName.substring(len-3,len).equalsIgnoreCase("xls")) {
              strFileType = strFileType2;
         } else if(strFileName.substring(len-3,len).equalsIgnoreCase("ppt")) {
              strFileType = strFileType3;
         } else if(strFileName.substring(len-3,len).equalsIgnoreCase("pdf")) {
              strFileType = strFileType4;
         } else {
              strFileType = strFileType1;
    if(strFileName != null) {
         ServletOutputStream out = res.getOutputStream();
         res.setContentType(strFileType); // MIME type for word doc
    //if uncomment below sentence,the "file download" dialog will appear twice.
         //res.setHeader("Content-disposition","attachment;filename="+strFileName);
         BufferedInputStream bis = null;
         BufferedOutputStream bos = null;
         String path = "d:\\"; //put a word or a excel file here,eg a.doc
         try {
         File f = new File(path.concat(strFileName));
         FileInputStream fis = new FileInputStream(f);
         bis = new BufferedInputStream(fis);
         bos = new BufferedOutputStream(out);
         byte[] buff = new byte[2048];
         int bytesRead;
         while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
         bos.write(buff, 0, bytesRead);
         } catch(NullPointerException e) {
         System.out.println ( "NullPointerException." );
         throw e;
         } catch(FileNotFoundException e) {
         System.out.println ( "FileNotFoundException." );
         throw e;
         } catch(final IOException e) {
         System.out.println ( "IOException." );
         throw e;
         } finally {
         if (bis != null)
         bis.close();
         if (bos != null)
         bos.close();

    Hello!
    Does some one of you had open a MS word file (.doc) in Java search for a token like [aToken] replace it with another text and then feed it to a stream of save it?
    I want to build a servlet to open a well formatted and rich on media (images) ms word document search for tokens and replace them with information form a web form.
    Any Ideas?
    Thank you in advanced.

  • I recently updated my OS to OS X. I had to update my word and powerpoint etc... to 2011 version, but now when I want to open a .doc file made in word 2003 it removes all the text in it! I did not back anything up!

    I recently updated my OS to OS X. I had to update my word and powerpoint etc... to 2011 version, but now when I want to open a .doc file made in word 2003 it removes all the text in it! I did not back anything up! All my mums work is on there for her job and now she cant use it! I need help fast!

    If you updated from 2003 that must be on a Windows machine, can you recover them from there?

  • Firefox keeps aksing me what programs that i want to open a doc.file with every time i try to download a doc file.

    the program that I use is open office. I chekced the box that says that this will always open a doc file but it keeps asking me about it.

    Firefox should be able to remember your preference -- as long as the site is specifically identifying the file as a distinct content type. Some sites may fail to do this and simply indicate it is a binary file that the browser can't handle, in which case Firefox doesn't store a specific preference.
    So this could be a problem caused by how the server is identifying the content type. Or it could be a problem with the settings file that stores download preferences. The workaround for that problem is to remove the file and have Firefox rebuild it. If you have changed settings from the default (for example, how to view PDFs) you will have to change those settings again.
    If you want to try it:
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > (in the first table) "Show in Finder" button
    Leaving that window open, switch back to Firefox and Exit/Quit
    Pause while Firefox finishes its cleanup, then rename '''mimeTypes.rdf''' to something like mimeTypes.old
    Restart Firefox and see whether its memory improves.

  • Warning when opening a .doc file (with Pages) ruins my applescript convert process

    I have 2000 plus documents (some Pages, most .doc) that I need to convert to PDF. I've got a working applescript droplet that converts both doc and pages files very nicely... but on some of the .doc files I get this dialog: "Some warnings occured. Would you like to review them now."  This of course, ruins my script run.
    Is there a way to suppress this warning when Pages opens a .doc file?

    Only if there is a script for dialog boxes in your AppleScript which you would have to tailor for the responses.
    You can record snippets of mouse activity using the Script Editor and include those in your script if there are no AppleScript library items.
    Peter

  • How to open a doc file using jsp Anchor tag

    when i am trying to open a doc file using a jsp it is opening with out proper alignment.
              how to open a doc file with proper alignment using Anchor Tag in JSp Page
              

    Hello!
    Does some one of you had open a MS word file (.doc) in Java search for a token like [aToken] replace it with another text and then feed it to a stream of save it?
    I want to build a servlet to open a well formatted and rich on media (images) ms word document search for tokens and replace them with information form a web form.
    Any Ideas?
    Thank you in advanced.

  • "uses a file type that is blocked from opening in this version" error message when opening a *.doc file with Word already running

    Several customers running different versions of Office 2011 (14.4.1-14.4.5) on OSX varying from 10.7.5 to 10.9.5, running on various kinds of hardware (iMac/MacBook Pro/MacBook Air) of various ages are having issues opening *.doc files if the Word is already open. The error message that gets displayed is, "XXXX.doc uses a file type that is blocked from opening in this version"
    When the customer tries to open the same file via File-Open, she gets "The file is locked for editing. you can open the file as read-only".
    When trying to do so, she gets "Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters".
    If Word gets Force-quit, the same document opens without any problems.
    1. Repairing Disk permissions was ran several times. and the volume was found to be OK.
    2. I have noticed that in this scenario either deleting the normal.dotm or com.microsoft.word.plist (~/Library/Preferences) sometimes resolves the issue, sometimes it doesn’t. There is no pattern to follow. All versions of Office are affected, the fully updated and the non-updated ones.
    3. I have tried completely removing the suite using Office 2011 Uninstall.app and/or Remove Office 2011 Uninstaller.pkg, then going through customer's library and manually removing all the Office references.
    4. None of these systems had Office 2008 in the past.
    Any help will be greatly appreciated.

    Reboot both the Mac and the server. Word opens .DOC files and Excel opens .XLS files. As you have found out by copying the files to the computer. It is the connection between the 2 computer that is causing the error.

  • How to open a .doc file in MS word?

    Hello
    Can any body direct me to any api or library or sample, where by if you have word document in your local machine, you can run a java program to open that file in MS word. Basically Microsoft word is opened with the local file in your machine and displayed to the user.
    I looked for a while on this, could find anything...
    Your help is really appreciated.
    Thanks
    Jeevan

    >
    Can any body direct me to any api or library or sample, where by if you have word document in your local machine, you can run a java program to open that file in MS word. Basically Microsoft word is opened with the local file in your machine and displayed to the user.>[Desktop.open(File)|http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html#open(java.io.File)]. (Note that here - a word Doc would be opened in Open Office - but that is more useful since Word is not installed.)
    >
    Your help is really appreciated.>For my part, your thanks are best expressed by assigning [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to the answer, and marking it as 'correct' or 'helpful'.

  • Cannot open transferred .doc files on my BB Curve 8520

    I am a new user and have just bought a BB Curve 8520. Carrier is Virgin Media; OS is V4.6.1.314 (platform 4.2.0.135); Desktop Manager Version is 5.0.1.2.8
    I have transferred photos, music and some documents from my PC successfully to my BB using Desktop Manager. However some .doc files transfer, but I cannot open them on the BB. I get an error message saying a file cannot be opened as it is an RTF file. I also notice that when I start to transfer the files, the little window that pops up does not give me the option to convert them - it is grayed out. Help please - I am totally new to Blackberry and not a whiz! Thanks in advance!
    Solved!
    Go to Solution.

    You should save the files as true Word documents on your PC first.
    WordToGo on your BlackBerry will open MS Word documents.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to open a .DOC file with MS-Word ?

    Hye fellow Java freaks,
    I have made an application to upload .DOC and .RTF files to the server using servlets and the Jakarta Commons FileUpload package.
    The files are uploading successfully.
    Now, I want to place a link to the most recently uploaded file and then, on clicking that link, I want the file to open not in the browser, rather with MS-Word.
    What is the servlet code that I should implement to accomplish this ?
    Any suggesions ?
    Thanx in advance.

    I think this is a client-side issue - how the browser chooses to deal with the .doc file it receives.
    You can 'save as' and then open the file by hand.
    --Jon                                                                                                                                                                                                                                                                                                                               

  • Opening a .doc file in Pages results in Untitled document?

    Hi all!
    I've reinstalled iWork '06, along with the rest of my OS, and I've noticed something strange: if I set Pages as default to open .doc files, every time I double-click on a .doc file, Pages opens it in an Untitled document.
    Of course, when it comes to saving changes, Pages asks me to save them in the Untitled, not in the original document. No matter that I exported the file in .doc in Pages in the first place, it just doesn't save it.
    How come?

    Before Pages 3/iWork '08, Pages opened any "foreign" document (Word, AppleWorks, text, RTF) as an untitled Pages document, just as it does a template. When you export a document, you're doing just that, not saving it. Pages "knows" you haven't saved it as a Pages document so the title doesn't change until you do save it.
    Since Pages 3, a "foreign" document will have the name of the original with the .pages extension added. But the rest of the process is the same.

  • How to open a doc file

    Suddnely doc files have stopped opening!

    Please perform the below shown steps to resolve the issue
    1. Turn OFF the Notebook
    2. Power ON the Notebook and keep tapping the F8 Key
    3. Select "Last known good configuration from "Advance Boot Options" list
    4. Please remove Startup items and Uninstall if there are any unwanted applications
    5. Please reboot/restart the Notebook once
    **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    I work on behalf of HP

  • Opening downloaded .doc files

    I cannot set the default for downloaded .doc files to MS Word. Help

    daviescolin6,
    What happens when you right click on the .doc , select properties, (general tab) and view "opens with"?
    There is a change button, then select "other programs".
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Opening old .doc files

    I am unable to open any old .doc files.

    I had a load of important old Word 6 .doc files which I couldn't open with Pages. Fortunately I'd hung on to my old PC, so I re-opened the Word 6 files, re-saved them with a more recent version of Word (Office 97), and transferred them to my Mac via a memory stick. It solved the problem, but the process was a bit time-consuming. Peggy's solution is less complicated, especially if you don't have access to a PC.

  • I cannot open any .doc files on Firefox from any source such as yahoo mail, blackboard, and UW Catalyst, while I have no problem opening .docx files from the same sites. When then happens, I have to switch to explorer and it's really annoying.

    Cannot open Microsoft Word .doc files from any website (.docx are ok)

    That is a legitimate Mozilla newsletter. As it says in the email:
    You're receiving this email because you subscribed to receive email newsletters and information from Mozilla. If you do not wish to receive these newsletters, please click the Unsubscribe link below.
    Unsubscribe https://www.mozilla.org/en-US/newsletter/existing/ad9febcf-65ac-41fd-810b-798945f448f3/
    Modify your preferences https://www.mozilla.org/en-US/newsletter/existing/ad9febcf-65ac-41fd-810b-798945f448f3/ "

Maybe you are looking for

  • How can I print using only the black ink cartridge?

    I have a officejet 4620 that I need to know how to set up to have the option of using the black ink cartridge only. I rarely ever use color ink and I dont want $30 worth of color ink to dwindle away while printing pages that do not need any sort of q

  • Adobe Reader 9 won't read pdf documents

    I have Reader 9. It will convert a word .doc to .pdf. But I can't open the pdf file. I have Window (Default) selected for text encoding. Immediately after converting (printing) I get a PDF file, perfect condition. But after I "save" I can't reopen. T

  • How to restrict width of Interactive report

    How do I restrict the width of and IR report to the size of the page/screen. It seems to overflow off the screen. I've tried using DIV tag with a width format in the region header but it doesnt work. Any suggestions? PaulP PS how do I escape html cod

  • How do you create a multiplication calculation in one column that is related to a drop down?

    I am pretty sure this would be done with an IF statement but I am totally new. I have a column that is a drop down with Wage or Full Time, 2nd column is gross pay (which is fillable by the user), The 3rd column has fringe.  Depending on if they selec

  • HELP PLEASE- Why does Muse crash everytime I click on Widgets Library??

    Every time I click on the widget library I get this error   " Can't find parent directory for lo path: C:\Program Files\Adobe\Adobe Muse CC2104\libraries\cogent.muse lo.page:About Please help! Thank you!