Is it possible to import a word document and create nodes in Kentico 8.0 as per the headings given i

Binod Paikaray asked on March 23, 2017 10:06

Hello Experts,

Is it possible to import a word document and create nodes in Kentico 8.0 as per the headings given in the word document and fetch the content from the document to the respective nodes? The nodes would be in the hierarchy only.

Please let me know if this kind of functionality is available in Kentico.

Thanks

Binod Paikaray

Recent Answers


Jan Hermann answered on March 23, 2017 10:16

If you mean you upload a docx file and it takes first line there, creates a new page of some type and adds the rest of the document to some long text field, then regrettably no. There is a way to implement this feature or you can open the document and copy the content manually.

0 votesVote for this answer Mark as a Correct answer

Binod Paikaray answered on March 23, 2017 11:26

Thanks Jan!

So, if there is any other way to implement this, please let me know. It will be a great help!

Thanks

Binod Paikaray

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on March 23, 2017 14:02

You will need to use some code too extract the text (http://stackoverflow.com/questions/1011234/how-to-extract-text-from-ms-office-documents-in-c-sharp) then follow the instructions to programmatically create a node, setting the fields.

In Kentico 8 look for api examples in your Kentico menu to find the tool that will show you how to insert nodes through code.

0 votesVote for this answer Mark as a Correct answer

Binod Paikaray answered on March 23, 2017 15:12

Thanks very much Trevor! I know the node creation programmatically but wanted to check if there is any such kind of feature in Kentico to fetch content from word doc. But it seems we would need to write C# code only to accomplish this task.

Thanks very much everyone for your help :-)

Binod Paikaray

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on March 23, 2017 15:17

No problem, if this thread is done, mark some answer as answered so others won't look into an already done question!

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on March 23, 2017 20:55

We do parse word documents and create documents in Kentico using API. You can try novacode DocX library (google it). We've tried other solutions before, DocX is the way to go. In our case we upload a word file as an attachment and on save it is getting parsed (using DocX) and we fill out fields of a current Kentico document.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.