Problem is occurring in docx format; it is not printing "New Line" character in extracted txt using IFilter (offfiltx.dll) while with doc file IFilter (OffFilt.dll) is working fine.

Problem: Problem
is occurring in docx format; it is not printing “New Line” character in extracted txt using IFilter (offfiltx.dll) while with doc file IFilter (OffFilt.dll) is working fine.
Environment: -
Operating
System:
Windows XP SP2/7
Language:
C#
MS
Office Version: - MS Office 2007/2010/2013
Problem
Description: -
We
havedocx
file with new line character, and we are processing this file in IFilter for extracting text, and it is giving output with concatenation of lines.
Docx
file format (Sample.docx)
Test this music
Word processing
Testing docx file
Output:
- Test this music Word processing Testing docx file
Requirement:
- We
have requirement to get following text in particular format with New Line from docx because client is using docx format only.
Test this music
Word processing
Testing docx file
Attempt:
We have tried a lot after changing IFilter configuration,
but it is not giving required output. Then we saved same file in doc format (Sample.doc), which is giving required output.
Because it is application specific problem, kindly
assist to resolve issue on priority. We are sharing IFilter paths for extracting text for doc and docx.
Doc Filter Location: - %systemroot%\system32\OffFilt.dll
Docx Filter Location: - <Drive>:\PROGRA~1\COMMON~1\MICROS~1\Filters\offfiltx.dll
Code Snippet for setting property of filter
internal static IFilter LoadAndInitIFilter(string fileName, string extension)
            IFilter filter
= LoadIFilter(extension);
            if (filter
== null)
                return null;
            IPersistFile persistFile
= (filter as IPersistFile);
            if (persistFile
!= null)
persistFile.Load(fileName, 0);
                IFILTER_FLAGS flags;
                IFILTER_INIT iflags
=
                            IFILTER_INIT.CANON_HYPHENS
|
                            IFILTER_INIT.CANON_PARAGRAPHS
|
                            IFILTER_INIT.CANON_SPACES
|
                            IFILTER_INIT.APPLY_INDEX_ATTRIBUTES
|
                            IFILTER_INIT.HARD_LINE_BREAKS
|
                            IFILTER_INIT.FILTER_OWNED_VALUE_OK;
                if (filter.Init(iflags,
0, IntPtr.Zero, out flags)
==IFilterReturnCode.S_OK)
                    return filter;
            Marshal.ReleaseComObject(filter);
            return null;
Kindly
assist to resolve this issue and also let us know if any input is required.
For any help, we would be really
thankful.

Kindly
assist to resolve this issue and also let us know if any input is required.
For any help, we
would be really thankful.

Similar Messages

  • New Line Character in OSB for sending email in proper format

    Hi
    We have a client requirement, where in we send an error email when ever an exception occurs in the OSB flow. We are using OSB 11g and we need to format the body within or before the publish activity using a replace activity something in the below manner (replace . in variable body (replace node contents))
    fn:concat("Following Exception Occurred <NEW LINE>","ErrorCode: ",fn:data($fault/ctx.errorCode) etc etc)
    Please tell us if there is a new line character available within OSB to format the email message. Please help its urgent. Thanks

    Thanks a lot for the reply, but still in the email body, i see everything in one line (no enter0). I tried " ","",\n and CHR(13). All dont seem to work.
    Also can you provide an example for &#13: (Ampersandhash13colon)
    Please help.
    Regards
    Amit Sachdev
    Edited by: user638094 on Mar 8, 2011 12:01 AM

  • Problem with new-line-character and java.io.LineNumberReader under AIX

    Hi folks,
    I got the following problem: I wrote a little parser that reads in a plain-text, tabulator-separated, line-formatted logfile (and later on safes the data to a 2-dimensional Vector). This logfile was originally generated by an AIX ksh script, however, I copied it on my Windows machine to work with it (for I'm using a Java editor that runs under Win Systems).
    For any reason, Windows, and what is worse Java too, seems not to recognize correctly the new-line character (in the API it is written that this should be a newline '\n' or a carriage-return '\r' or one followed by the other) that marks the end of a line in the logfile.
    Also, when I'm opening the logfile with the "Notepad"-editor, this special character does not seem to be recognized, every line is inserted right after the other.
    On the other side, when I open the logfile with the built-in editor in the CMD-Shell ("Dos-shell"), the newline chars seem to be recognized correctly.
    But when start my parser on the AIX-machine the newline does not seem to be recognized correctly again.
    I tried to read in the logfile with MS-Excel and safe it as a plain-text, tabulator-separated, line-formatted logfile again, with such files my parser works fine both on the AIX as it does on Windows.
    Any ideas? Anybody got over the same problem already?
    Greetz FK

    Under windows, text files' lines are usually delimited by \r\n,
    under Unix/Linux/AIX etc. \n
    and under Mac \r.
    I recommend to use the following editors, which are capable to handle files with Unix and Windows-styled line-delimiters or convert between these types:
    Programmer's File Editor (PFE; available on Windows)
    The Nirvana Editor (http://www.nedit.org/; available on Unix, MAcOS, Windows)
    (BTW good old vim can handle that too. Transferring text files to windows in order to edit them, even using Excel for this purpose means your being a UNIX newbie, (I mean no offense by writing this) so vim is probably beyond your reach for the moment.)
    Java normally assumes the platform's line delimiters where it is running, so if you transferred the file from Unix to Windows might be distrurbing.

  • Windows 2008 R2 Folder assign permission "Read and Write" problem with *.doc file

    Hello All,
    I am a new one here,
    I am sorry for any mistakes and also my english is so poor.
    M Brother company runing Windows 2008 R2 as Active Directory...
    We have folder Name: Admin
    and in this folder, there are alot documents files as : *.doc, *.dwg, *.txt etc.....
    All user accesing to these files and they can open to edit and save...
    One day my brother want me to set Admin folder for all users just"Read and Write.." mean they still can open files to edit and save... but can't delete..
    I did success with this..
    But only one thing happen.. when they open *.doc file to edit and attempting to save, the message alert" access denide " and they can only "SAVE AS"...We don't want "Save as"
    Could you show me how can we fix error with *.doc file while they trying to save? because it allow only save as.. but other files as *.text file or *.dwg they can save without problem..
    Could expert here ever face this issues and fix by yourself, please share me with this..
    Please help me..
    Best regards,

    Hi,
    Office programs are specific. They will create a temp file when edit, then the temp file will be deleted when close. So Delete permission is needed for users to saving Office files like Excel/Word.
    For more detaile information, please refer to the thread below:
    Special Permissions - User cannot save files
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/721fb2f1-205b-46e5-a3dc-3029e5df9b5b/special-permissions-user-cannot-save-files
    Best Regards,
    Mandy 
    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 [email protected]

  • TS2972 First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first

    First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first night.

    The speed may have been ok at that time and is too inconsistent/too slow overall. interference may have proven to be more of an issue since as well. If using public DNS that will provide Intermittant results
    I'm sure using a hotspot would be fine but it depends on your viewing habits. An HD movie is around 4-5GB. It would also be subject to speed. requirements so best to test to see how it compares.
    You would have to check with your Carrier if hotspot it's enabled then just to into your settings and toggle it ON

  • I have car charging problems,my 4s won't charge with tomtom car kit,my old 3GS worked fine,tried a belkin charger had same problem

    I have car charging problems,my 4s won't charge with tomtom car kit,my old 3GS worked fine,tried a belkin charger had same problem.
    Any ideas I'm pulling my hair out !!!

    Seems to be a hardware issue and you'll have to get it checked by visiting an Authorized Apple Service Provider, an Apple Store , to see if other 3rd party charger will work at their place.
    iPhone - Contact Support - Apple Support

  • New Line Character problem in mail attachment

    Hi all,
    my xi-box is in patch level 16. i need to send the mapped xml as a pipe delimited file(a lineitem per line) attachment to a mail id. so i use MTB to content convert the payload and attach the content as an attachment using a custom module and send the mail. Since the naming convention of the attachment (as per my requirement) says the file should be a .txt file, i 've used text/plain as the content-type.
    if i open the attachment in textpad or wordpad i can see one lineitem per line; but if i open it with notepad its not the case.lineitems do not appear in separate lines but appear continuously. i 'm seeing a box character as a separator between the lineitems. i'm not able to figure it out why.
    i used MTB in file adapter and content converted the payload and opened the file in notepad;it was fine.
    But i'm not able to figure out why its happening with the mail attachment. If you have come across such a problem please suggest me to solve this.
    Regards,
    Sundararamaprasad

    Is there any way you can send the file in an ASCII format instead of BINARY format. In many of my resolved cases I just change from binary to ascii and it works for eg., while doing FTP.
    thansk,
    rakesh

  • I am trying to convert PDF to word. With my PC  I get a message  "Error occurred while trying to access the service.   It worked fine for a long time.  Has been doing this for days now with all files i try to convert.

    I am trying to convert PDF to Word with Adobe Export PDF on my PC.  I get the message " error occurred while trying to access service".  Has worked fine in past.  Has been doing this for a few days now on all files i try to convert.    Any ideas?? Thanks

    Hi bert090909,
    Are you trying to convert your files from within Adobe Reader? If so, please make sure that you have the most current version by choosing Help > Check for Updates. Earlier versions of Reader could cause the specific error that you're reporting.
    Please let us know how it goes.
    Best,
    Sara

  • Push mail on iPhone doesn't work with my .mac address, all other accounts working fine. Does anybody experienced problems like this?

    Since upgrading to IOS 5 and using icloud my .mac account doesn't work with push anymore. I'am using two other mail accounts with push function and they work fine. I have heard from other users havong same problem, but does anybody have a solution to this? I have deleted the account and set it up again, worked for one test mail and then failed onwards..

    Since upgrading to IOS 5 and using icloud my .mac account doesn't work with push anymore. I'am using two other mail accounts with push function and they work fine. I have heard from other users havong same problem, but does anybody have a solution to this? I have deleted the account and set it up again, worked for one test mail and then failed onwards..

  • Hi, I have a problem which occur only in Firefox (in IE not happening): When I middle click the mouse it opens a new tab, but it also push my website to the top of the page & I need to drag all the way back to where I was. Please I need a solution! Thanks

    When I middle click the mouse it opens a new tab & also push my website to the top of the page and that is realy annoying when I need to drag all the way back to where I was

    URL of your website? And an example of a hyperlink which does that?

  • On ESR 17, the DOCX attachments in my e-mail (I use Optonline) ignores the file extension. (my e-mail works fine with IE). This was fine with Firefox 10.0

    I have been using Firefox for a long time. I installed ESR 17 recently. Since then I can't open DOCX files in my e-mail (optonline.net). It comes up as "eFax Messanger files". It obviously does not reconginze the file extension because whe i try to open it using Word it reads it as if it was a text file. If I use IE I have no problem opening the same attachment in my e-mail. I know atleast two other people who have the same problem.

    See:
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
    *http://kb.mozillazine.org/File_types_and_download_actions
    *https://support.mozilla.org/kb/Managing+file+types
    Try to delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions

  • FIREFOX 3.6 PROBLEM WITH STAY ON TOP BUT 3.5 WORKS FINE

    WHEN I USE FIREFOX 3.6 OR ANY VERSION OF THE 3.6 AND I SELECT STAY ON TOP (I HAVE A THIRD PARTY PROGRAM THAT ALLOWS THIS) AFTER I MINIMIZE THE WINDOW THEN IT WILL LOOSE THE STAY ON TOP COMMAND. ALTHOUGH WITH FIREFOX 3.5 VERSIONS IT KEEPS IT'S STAY ON TOP EVEN AFTER BEING MINIMIZED. iN FACT ALL OTHER MICROSOFT PROGRAMS DO NOT HAVE THIS PROBLEM PLEASE EXPLAIN WHY THIS IS
    THANK YOU
    '''Locking Duplicate Post. Continue [https://support.mozilla.com/en-US/questions/745759 here] -mjb'''
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4

    Not really.

  • Large Format Document will not print

    Using Photoshop CS3 On IMac Intel Core Mac OS 10.4.1. Created a large format document using scanned photos and documents. I created a poster 20X40 but when attempting to export the "print" option is greyed out. Saved the document to my desktop, it is a huge file 3.4 GB. Saved it to a CD and took it to Kinkos to be printed. They say it crashed their system and they likewise cannot get it to print and cannot save it to a pdf or any other file. I am new to photoshop and my son set up the document, I just filled it in so not sure what I did wrong. Any suggestions?

    eileen,
    >I have a call into Kinkos on the color their Mac guy is not in.
    You probably don't have to speak with a "Mac guy" as Photoshop files are platform-neutral. Speak to anyone in their "print shop" and ask what their file requirements are for "giant prints".
    In addition to choices of media, mounting options and prices, you want to know:
    Format
    Recommended resolution
    Maximum file size (pixels x pixels and file "weight"), if any
    Color mode
    Any specific "do's and don'ts"
    Neil

  • Hi i have been problems on start up it will shut down after 1 second through the apple logo and spinning wheel yet once my Mac Pro 2008 starts up fully it works fine till i shut down then it all starts over

    I copied this
    May 12 20:58:59 localhost com.apple.launchd[1]: *** launchd[1] has started up. ***
    May 12 20:59:07 localhost com.apple.kextd[10]: Can't create kext cache under / - owner not root.
    May 12 20:59:08 localhost bootlog[39]: BOOT_TIME: 1336852733 0
    May 12 20:59:11 localhost DirectoryService[36]: Improper shutdown detected
    there is more but does this give anyone an idea
    Regards Jim

    Linc has suggested you use Disk Utility "Repair Permissions". This is one of the few obscure cases where "Repair Permissions" should be exactly the right solution.
    For almost every other routine problem, the Disk Utility function "Repair Disk" is the right choice, and "Repair Permissions" is just a distraction.

  • I am having wifi problems constantly while traveling yet my iPhone. 4 g works fine , I' m seriously thinking of returning my gift as it is not doing the main job it was bought for , very frustrated with this expensive dysfunctional tool, is this fixable?

    I am experiencing constant wifi connectivity issues while traveling this week , even though my iPhone is not. What is wrong with this iPad. I' m seriously considering returning if this can't be fixed. I don't have problem t home, however

    Please read Appendix C.
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

Maybe you are looking for