Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
He to all,
I have file upload control,The user might upload any of the file such as PDF,Word Document or PPT . When the user click upload button then I need to convert the uploaded document into .txt file and get number of words existed in txt file and paragraphs exited in .txt file
Posted

1 solution

You would need to have components installed and accessible on the server to read those files. ITextSharp could used for the PDF files but you would need MS Word for the Word files, unless they where all 2007, or higher, versions (docx extension), in which case you could use any OpenXML reader.
 
Share this answer
 
v2
Comments
Andrew Rissing 10-Jan-12 11:11am    
Really, it's 2007 and up (not just 2010). Basically, if the extension has an "x" in it (.docx, .pptx), you should be able to use the OpenXml API.
[no name] 10-Jan-12 11:26am    
Yes, correct. I had forgotten about 2007 after using 2010 for so long.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900