I'm attaching a couple of files because I had to do something very
similar just recently.
This isn't super clean, as I'm still testing this functionality, but
it might serve as a starting point anyway.

I am calling c# code to require WorkBook.rb first. (Mostly just a
shortcut I grabbed from the excel interop tests)

I am then passing a fairly simple domain object into the
'BuildRequestVolumeWorkBooks.rb' through "CallerInput"
Then I set "CallerOutput" So I can grab the filenames generated after
applying my data to the template.

Sounds very much in line with what you're trying to accomplish, but
again, maybe just as a starting point.

Best Regards,
Kevin Radcliffe

On Wed, Oct 14, 2009 at 9:45 AM, Thibaut Barrère
<thibaut.barr...@gmail.com> wrote:
>> whoops. i thought you meant Excel/Word *automation*, my bad.
>
> Well, it could have been the case, but I'm avoiding that on purpose :)
>
> My goal is more or less to rely on word/excel editable templates where I
> inject data (fields, rows...) a bit like in Documatic (excellent project
> although not active anymore afaik:
> http://stonecode.svnrepository.com/documatic/trac.cgi/wiki)
>
> @Ryan: pretty much what I had in mind, except I didn't know about Eric
> White's examples. Thanks a lot!
>
> I'll see if there is some benefit to wrap this up in an IronRuby gem (and
> will share it if it does).
>
> best,
>
> Thibaut
> --
> http://www.learnivore.com
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>

Attachment: Workbook.rb
Description: Binary data

Attachment: BuildRequestVolumeWorkBooks.rb
Description: Binary data

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to