Click here to Skip to main content
12,747,708 members (40,960 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
How to read document files(resumes) in using c# without using any interop dll?
Posted 10-Apr-11 20:42pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Maybe by using Stream or static methods in the File class. Although if you want to keep the text formatting intact, it is a different thing. It will need you to understand how MS word or PDF or any file type that user uses stores this information. Then you will have to manually parse, understand and read it. BTW why are you against Inteop?
sanjibm_02 11-Apr-11 1:48am
actually interop dlls are not working in windows server?If i use it application gets hanged.
I have tried with file stream class but it reads junk values.
d@nish 11-Apr-11 1:52am
Then there must be something wrong with the interop code you have used or maybe some other thing. It is quite hard to guess that though.
sanjibm_02 11-Apr-11 1:55am
can you please tell me the permissions that need to set in windows server 2008R2?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can use Stream Readder and stream writer classes through that u can read files in your system.
sanjibm_02 11-Apr-11 1:50am
I have commneted in last post that using this classes reading junk values that i am not able remove from the string that i am geting after reading.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 8 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100