How to extract content from Table cell using DocumentBuilder?

Sep 28, 2012 at 11:45 AM

Hello,

Could I use DocumentBuilder to copy content of one table cell to another document?

Is it possible to describe content of the one table cell as a Source?

Thanks.

Sep 28, 2012 at 2:18 PM

Hi,

No, the granularity of a source is at the table level.  It is a good idea, though.

-Eric

Sep 28, 2012 at 2:48 PM
Edited Sep 28, 2012 at 2:49 PM

Hi,

I can already offer a solution.  We can define ISource interface for sources (that encapsulate a content extraction from source document), and implement DocumentBuilder in terms of ISource.  Draft version you can find here - https://gist.github.com/3799925 (tiny changes require into MergeOpenXmlDocumentCmdlet.cs)

After that we can define new Source for table cells - something like that https://gist.github.com/3799948

What do you think about such changes?