+ Start a Discussion
Zabi MohammedZabi Mohammed 

Read he MS word document uinsg apex class


    I have a requirement to read the attached MS-word document lik mysample.doc file using apex class, will it be possible if yes please help me or provide me the code for that to get the conted of word documet.

James LoghryJames Loghry
You're in for a world of hurt.  When importing files into Apex, you're restricted by things like Visualforce view state size, Regex too complicated errors, and Apex CPU limits.  I've attempted to implement similar requirements for csvs or excel files.  Your requirement is likely more complicated because the structure of word documents is very complicated.

I would either push back on the requirement, or invest some time in looking at either an existing App Exchange project or a third party service that you could utilize outside of Salesforce.