|
|
Import and Export
This section deals with the conversion of the word documents into various forms.
|
|
|
|
DocIO can read document content from streams besides reading from an actual doc file. This helps reading Word Doc templates saved in databases without having to create intermediate doc files.
You can also save doc files into streams which helps in scenrios like email based publishing which lets you send out emails of Word doc attachments, for example, without having to write out Doc files to disk.
Sample Code
|
|
|
|
Using Essential DocIO, files in the doc file format can be converted to the text format.
Code to convert 'doc' to 'txt'
The reverse process is also supported.
Code to convert 'txt' to 'doc'
|
|
|
|
Essential DocIO now supports converting valid XHTML content to Doc content. The passed in content should be either XHTML 2.0 or 1.1 compliant.
HTML converted to Document
Code to convert HTML to Doc
|
|
|
|
|
|
|