Matching in a doc file

I want to match a string in a doc file
how can I do that ?

If you mean a Word file, you can't simply read the file and look for matching strings because .doc format files have formatting information in them that effectively makes them binary files.
You could try OLE via a library like Jacob, or reading the document through POI and extracting unformatted text.

Similar Messages

  • .doc files on Mac OS 9

    Can somebody please help me find a really really good free program that can open .doc files?

    Hi, elsa71923. The program(s) I linked above, icWord and icExcel ($20 each, $30 for both) have the following capabilities:
    "Use icWord or icExcel to easily open on your Mac any of the following files:
    Word (version 6 to 2004)
    Excel (version 95 to 2004)
    PowerPoint
    AppleWorks (version 5 or 6)
    ClarisWorks (version 5)
    The display on your screen matches the original, showing you the document as it was created on a Macintosh or a PC.
    Use icWord or icExcel to:
    View documents
    Convert to other formats
    Copy/Paste text and graphics into other applications
    Print documents"
    icWord will not translate files from other word processing formats into .doc format, except the AppleWorks and ClarisWorks documents mentioned in the above-quoted blurb. And icWord is not a word processor; it's just a viewer, with the addition of those very limited file-translation capabilities. You can't revise a Word document in icWord and send it back to the person who gave it to you with your revisions in it, nor can you create new documents from scratch in icWord. For that you need a real word processor and a real file-translation utility like MacLink Plus Deluxe, which Don has mentioned above. But for the person who doesn't have Word and needs to view documents in .doc file format, exactly as they were created, icWord is a good solution. And as I wrote above, you can download it, use it free for 30 days to see whether it meets your needs, and only then decide whether or not to buy it.
    RagTime is a powerful page-layout and desktop publishing program, developed in Europe and better known there than elsewhere. I suspect it's much more complicated than what you need, but as Michael says, it's completely free (the RagTime Solo version, for private use only), so you can try it out and see what you think.

  • Easily opening .Doc files

    I use AppleWorks 6.2.4 for virtually all word processing/spreadsheet needs on my iBook. However, my only complaint is how painful it is to open .doc files. At first, if I had a .doc file visible in my Finder, it has a logo of a white sheet of paper. If I double-clicked on it, Finder would tell me that it couldn't find an application to open the file, and would not give me the option to choose.
    The only way I found to open them is to
    1. Launch AppleWorks.
    2. Click File > Open.
    3. In the File Format drop-down menu, scroll ALL THE WAY down to "Word Win 97, 2000 [MacLink AW]"
    4. Navigate to and select the .doc file...... at which point the MacLink Plus conversion progress meter appears, and viola. open.
    This is all fine and dandy, but I thought "this has to be easier. Why can't I just double-click on the dang file in the Finder?"
    So, I found a control panel called File Exchange that looked promising. Under the PC Exchange tab, I looked for the PC Extension called "doc." The application selected for it was "AppleWorks," but the logo was a picture of a hand on a piece of paper. So, I highlighted it, and chose "change." In the next window, I selected AppleWorks 6 (with the actual logo next to it." I then clicked "OK."
    Now, each time I open a .doc file by double-clicking on it in the finder, it opens an AppleWorks speadsheet, with some jibberish in the first cell -- that's it.
    The old method of opening it is still successful -- I've finaggled with the File Exchange control panel, on virtually every setting I could come up with, and nothing seems to work.
    Any ideas?

    Hi, sopranojam85 -
    In the File Exchange control panel, the PC Exchange tab info governs what happens to a file that is imported to the machine, i.e., one that is either downloaded or is copied from another (usually temporary) volume. The info on the File Translation tab is used when handling files already on the drive. When a file does not have a Creator code that matches a program available to the OS, it looks in File Translation for a match, and uses that if so instructed by you - you can set File Translation to not display a choice if there is only one possibility.
    The term "Word Win 97, 2000 MacLink AW" indicates you have the version of MacLink that came bundled with AppleWorks.
    I'm running the same version of AppleWorks as you are, however I have added the commercial version, MacLinkPlus Deluxe, which provides a broader range of file translation capability with AppleWorks. It still won't provide a direct double-click-and-open function, because I have more than one choice (AW 5 as well as AW 6), but when I do double-click a .doc file the File Translation intercept window opens and offers me the choice of AppleWorks 6 with MLP translation.
    Using the Open menu item within AppleWorks 6, if I let the Format pulldown menu stay at "AppleWorks", a .doc file will not be displayed in the scrolling list; but if I change the Format pulldown to "All Available", it does display .doc file types - this is a lot faster than scrolling down a long ways.
    The method I actually use for most non-AW file types is to keep an alias to AW6 on the desktop, then drop the non-AW6 file onto the alias - this works pretty much the same as the result of using an Open command within the application, and works even if AW6 has not yet been started up.
    Note - sometimes an alias to AppleWorks 6 won't work quite right. This is a result of the AW6 program (the one you see) actually being an "application program package", or Package, which is indicated by the ".app" suffix on the AW6 name ("AppleWorks 6.app").
    A Package is a specialized folder - it looks like a program, and acts like one when you double-click on it; but it's actaully a folder. Typically, in that folder are more than one version of the program (for example - one for OS 9, and one for OSX), plus additional support files.
    Although Finder understands packages, sometimes it screws up - especially when dropping a file onto an alias to the package. What happens then is that Finder, for some reason, treats it as a folder alias, and dutifully deposits the dropped file into the folder - into the package itself.
    Such files are recoverable - quite easily, too. To open the package, with the program not running and Contextual Menus active, Control-click on the package (the program itself, not the alias) - one of the items that will appear in the contextual menu that opens is Show Package Contents. Select it, and the package will turn into a folder, which opens automatically. Retrieve your "lost" files - just drag them out onto the desktop.
    While you're there, locate the OS 9 version of the program (in AW6 it is in a sub-folder in Contents named MacOS Classic), and make a new alias of it. Then replace the alias you've been using (which is actually an alias to the package, and not to the program) with the new one. Doing so should prevent a recurrence of the problem.
    Once you've done what you need to, close the .app folder - its icon should have a small image of a brown parcel (a "package") superimposed on it. Control-click on that folder and select "Hide Package Contents" from the contextual menu.

  • Microsoft mail app claims exported "doc" file is "xls" instead

    Hi, all,
    In Pages '08, I use "Export" and select "doc." I then send it via email to my Microsoft Outlook email. Every time, I receive this message on the Outlook account:
    Threat report
    filename.doc
    File category mismatch (Claimed extension "doc" - Claimed category "DOC" - Detected category "XLS")
    I realize this message is coming from a non-Apple program, but the computer folks at my job are just going to tell me it is my problem.
    Any suggestions?

    I apologizes, but I don't understand how a file which is built and described as a .doc file may be "identified' as a ".xls" one.
    Here is an AppleScript which will set the file type and the creator type of xx.doc files to WDBN and MSWD but I'm not sure that this may change something.
    If it changes, the culprit is not Pages but Entourage.
    --\[SCRIPT]
    Save it as an Application Bundle.
    Drag & drop the icon of a .doc file on the application's icon.
    If it matches the embedded test, it will be signed as
    file type = WDBN
    creator type= MSWD
    Yvan KOENIG (Vallauris, FRANCE)
    6 janvier 2009
    on run
    my commun(choose file)
    end run
    on open sel
    my commun((item 1 of sel) as text)
    end open
    on commun(fichier)
    local debut, cnt, keys, flag
    set cnt to 33
    set debut to read file fichier from 1 for cnt
    set keys to {208, 207, 17, 224, 161, 177, 26, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "skipped", 0, 3, 0, 254, 255, 9, 0, 6}
    set flag to true
    repeat with i from 1 to cnt
    log i
    log (ASCII number of character i of debut)
    log item i of keys
    if (i is not 25) and (ASCII number of character i of debut) is not item i of keys then
    set flag to false
    exit repeat
    end if
    end repeat
    if flag is true then
    tell application "Finder"
    set file type of file fichier to "WDBN"
    set creator type of file fichier to "MSWD"
    end tell
    end if
    end commun
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE mardi 6 janvier 2009 18:53:12)

  • Link to trigger a .pdf or .doc file to show in presentation

    I would like to add a link that would trigger the showing of a .pdf file or a .doc file within the presentation itself. I can do this in powerpoint. There must be some way to do this in Keynote, but I can't figire out how to do this. Thanks for any ideas.

    Keynote does not allow links to anything but other Keynote presentations, websites, or email. However, you can use Expose or Command-Tab to quickly switch to a PDF or Word file.

  • I can not open adobe files. mainly ones that end in doc. I purchased the 19.99 to convert .doc files

    I can not open adobe files that end in .doc. I purchased the 19.99 to convert doc to pdf and I still cant open. I get an error reading.

    Hi,
    Which Adobe Service did you purchased?
    If you have purchased CreatePDF please visit: https://createpdf.acrobat.com/SignIn.html
    Sign in with your Adobe ID and password, and then convert your word doc into PDF.
    Please let me know if that works.
    If you have Adobe Reader, you cannot convert .doc file to .PDF by drag and drop.
    ~ Aditya

  • Can not open .pdf or .doc files in mail

    Every time I receive an email with a pdf or .doc file attached I can never open it as I get a message telling me that the file was not recognised or that the file is invalid. Even if I select to open using Adobe for the pdf I get the same.
    Any help gratefully received. I've always had this problem and get round it by viewing these emails online instead. But it's not as convenient of course.

    G'day jbglass,
    I had the same problem, getting the same error message etc. I solved the problem by going to Google Chrome and using that to download the file ( a pdf brochure in my case).  That worked OK.  Hope this helps.
    fitzlefrog

  • I converted by PDF files to Doc files.  How can I download them to my desktop?

    I need to update the .doc files.  How can I download them to my desktop?  It should be simple  but I can't figure it out.

    HI DaiseyBabii,
    Sign in to cloud.acrobat.com with your Adobe ID and password.
    Click the Files tab, and you'll see a list of all the files you've converted.
    Click the file that you want to download, and then click Download in the upper-right corner.
    Let us know if that doesn't do the trick.
    Best,
    Sara

  • ADF 10g: open doc file in msWord but not in browser

    Hello,
    I'm working with JDeveloper 10.1.3/JHeadstart 10.1.3. deployed on Oracle application server 10.1.2.3
    Does anybody know how to open a .doc file in msWord application on client side?
    I have added a mime-type in my web.xml:
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    but the file is opened in a new internet explorer window.
    Currently I succeeded to open it in msWord by changing settings on the client computer in explorer>Tools>Folder Options>File Types and then change for doc file type the advanced property "Browse in same window". When not checked, the .doc file is opened in msWord but when checked the file opens in the browser.
    It could be easy to ask the users to make this modification on their station, but it is not possible.
    Thanks in advance.
    Pierrick

    Hi,
    if the requirement is similar and not the same its always worth spelling it out. You can reference document resources like Word from ADF by referencing the document URL from a goLink (which then allows you to set the target property to open the doc in a separate browser window or tab). If the browser opens Word, downloads the file or opens in the browser depends on the MIME type setting of the browser (e.g. can it display Word documents natively). If the document e.g is accessed from ADF through a servlet then you probably can set the Mime type explicitly to a specific one. However, it the client in the end that interprets how to process the document.
    Frank

  • Open doc file in msWord but not in browser

    JDev 11.1.1.6.0
    My requirement is similar to that in https://forums.oracle.com/thread/2327005 but in 11g.
    The user has almost done it in making changes in web.xml but I am a beginner and I don't know how to make this happen on click of a command button or a command image link.
    Also, it would be nice if the doc file (new blank doc) opens in MS Word application and not in browser without making changes in browser level.

    Hi,
    if the requirement is similar and not the same its always worth spelling it out. You can reference document resources like Word from ADF by referencing the document URL from a goLink (which then allows you to set the target property to open the doc in a separate browser window or tab). If the browser opens Word, downloads the file or opens in the browser depends on the MIME type setting of the browser (e.g. can it display Word documents natively). If the document e.g is accessed from ADF through a servlet then you probably can set the Mime type explicitly to a specific one. However, it the client in the end that interprets how to process the document.
    Frank

  • Understanding compile errors due to copying code from a doc file and not a txt file

    SITUATION:
    My instructor for my micro-controller class refuses to save sample code to a text file and instead saves it to a word document file instead. When I open up the doc file and copy/paste the code into my IDE "CodeWarrior" it causes errors upon compile time.
    I am having to rewrite all the code into a text editor and then copy/paste it into my IDE.
    MY UNDERSTANDING:
    I was told to always save code as a text file because when you save code as a word document file it will bring in unwanted characters when your copy/pasting the code into your IDE for compiling.
    Their are students in my class using the schools computers running "Windows" that copied and pasted the code into CodeWarrior and it compiled fine. This is not only frustrating but confusing. However, I know their are students in class with "PC's" running windows that had the same trouble I did so I know it's not a Mac issue. 
    Also I am running "Parallels" because my IDE for this micro-controller "Code Warrior" is not avaiable for my OS. I realize there are several IDE's out there that require "Windows OS" in general but I know this situation is not a Mac issue or Parallels issue or even a Windows issue. It's purly an issue of formatting that is done between the file being copied and the target program or so I'm understanding.
    Can someone exlain to me in better words or perhaps provide a resource, documentation or article that will enlighten me on this issue. I would like to better state my case next time. I'm tired of being told this is a MAC issue and that Windows is just plain better.

    The problem is (as you suggest) almost certainly a gremlin issue - characters that for one reason or another Code Warrior cannot interpret correctly. Why it happens to you and not others is a different matter. That could mean that the pofessor uses fonts that are not on your machine, or that he is using a different version of word, or it could be in how you access the data. For instance, if the prof posts this word doc on the web you may get different results if you download the file and open it in Word as opposed to opening it directly from a web browser.
    The sure-fire solution is to download TextWrangler and copy the code in there first. TW has a number of tools for finding and removing unpleasant characters. it adds a step, but... you could also try resaving the doc file as a plain text file from within word.

  • "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 and read pdf and micrsoft word (.doc) files or documents

    My problem is how to use my BB 9800 software version 6.0.0.546 to read/view pdf files and microsoft office documents. I have also bought documents to go from online and have installed it on my phone, but whenever i try to open it I receive a message that it is incompactible. Any help will be greatly appreciated.

    Hi, Sammy.
    Why not install a 3rd party PDF reader and Word Doc reader to help open and read pdf and micrsoft word (.doc) files or documents? You can google it and select one whose way of processing is simple and fast to help you with the related converting work.  It will be better if it is totally manual and can be customized by users according to our own favors. Remember to check its free trial package first if possible. I hope you success. Good luck.
    Best regards,
    Arron

  • Pages '09 won't open my AWK or DOC files

    I've bought iWork '09 to future proof myself against the day I finally have to abandon a computer running Snow Leopard + Rosetta (I can still run AppleWorks and Word 2001 on my present machine but that won't always be the case).
    However, now I'm beginning to regret it. Every document from AppleWorks 6 or Word 2001 (or Word 97 onwards ".doc" saved by TextEdit) will not open in Pages. I get a message, "The document __________ cannot be opened". I've tried both dragging the files onto the Pages icon in the dock, and by using Open in Pages.
    Yet Pages will open a Simple Text document (albeit with a lot of "garbage" where the formatting was), and it opens TextEdit RTF documents, and I can grab and insert any jpeg into it.
    But I bought the suite on the grounds that it will open AW6 and Word .doc files ... yet it won't! What has gone wrong?

    Consider continuing to run Appleworks in Lion or Mt. Lion with Snow Leopard (and Rosetta) installed into Parallels:
                                  [click on image to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • Convert doc file generated by OpenOffice to PDF X1a

    Hi, I have a .doc file originally produced by Open Office Writer and then converted to a Word format. I would now like to use Acrobat 10 to convert this .doc file to a PDF X format, but I'm not having any luck. I've tried the following two approaches:
    1. I'm able to use Open Office Writer to convert it to a normal PDF format. I then tried to take that PDF file and convert it to a PDF X file using Acrobat Pro with Preflight, but a bunch of errors appeared.
    2. If I start in Acrobat Pro, select Create PDF from file, select my documents, none of the .doc files produced in Open Office show up on the list--as if Acrobat Pro won't read any .doc files produced by Open Office.
    Hope someone can help. I'm new to Acrobat Pro.
    Thanks in advance.

    Use Ctrl-P or Use FILE>Print when you have OO Writer open with your document. You should get something like below.
    Just select the Adobe PDF printer, check properties if you like, then print. In this case, OO shows a preview of the pages in the document as they should look. I created a simple one as an example. I did a preflight after using the PDF-X1A settings and did get errors noted. One of them had to do with tagging that does not happen when you use the print. You might try to print normally and then use preflight to convert. I tried also and still got errors. At least I may have given you some things to try.

Maybe you are looking for

  • Open browser window behavior in Mac not working right

    I am simply selecting my text in my html document and then selecting "Open Browser Window" from the Behaviors panel.  I then put in the info for the file I want it to open along with the size, etc... When I test it in the browser (Safari) the link wo

  • ContentPath not working in a loop for a Loader component

    i'm trying to load pics into a loader in my movieclip, i'm looping through about 20 items, to be placed in a movieclips dynamically attached... this does not work... mcContainer['node'+nCount].pic.contentPath=myimagepath; this does work... mcContaine

  • Copying photos to ipad

    Hi, Have just purchased an ipad2. How do I copy photo albums to it from my wife's iMac please? Many thanks. Nirvanauk

  • How to create table of contents in template?

    Hi, I try to find out how to create a table of contents in template. Of course, the sub-header will be feed in to BI publisher template from xml. But page number should be a variable. Is anyone knows how to do that? Please let me know. Thanks in adva

  • WorkSpace/Schema Developer Security

    hi, i have a schema with some tables. some of our developers do not have certain access to some of the tables. Example: developer A (another oracle schema) does not have update, delete on table X, Y and Z. i created a workspace and associated the sch