Package Camelot :: Package camelot :: Package view :: Package export :: Module word |
[frames] | no frames]

# Module word

source code

Functions
open_document_in_word(filename) Try to open a document using word and return the word application com object if succeeded :return: (word, doc) a tuple of the com objects pointing to the word application, and the opened document. returns (None, None) if unable to open document using word | source code
open_html_in_word(html, template=`'``/home/tw55413/workspaces/camelot/Camelot/camelot/art/empty_do``...`, pre_processor=<function <lambda> at 0xc4ba10c>, post_processor=<function <lambda> at 0xc4ba144>) Open MS Word through COM objects and import the specified html into a new document. @param html: the html to import @param template: the empty word document in which to import the html @param post_processor: a function that will be called before importing the html, with as its argument the COM Document. @param post_processor: a function that will be called after importing the html, with as its argument the COM Document. | source code

Variables
| logger = `logging.getLogger('camelot.view.export.word')`
| __package__ = ``'``Camelot.camelot.view.export``'``