Question

We are developing a .NET tool that will generate a Word document every year. We start with a bunch of data and end up with a docx file.

We came up with an algorithm to interpret the data, and generate the document. That's all contained within a DLL. The data is represented by classes Module, Table, Row. We just need a way to convert the actual data to those classes. And then generate and save the document in a database.

How would I go about doing this?

Are SSIS Packages an option? I know they can be scheduled to run every year. The SSIS Package should use our DLL. It should create our Module, Table and Row objects and populate it with data. Then use those objects to generate the document. Can it do that?

In other words, can SSIS Packages map columns to objects' properties? And then call a method with those objects as arguments?

I'm pretty sure that it's possible. But I'm afraid I'm trying to do something highly unorthodox, no?

No correct solution

OTHER TIPS

The answer to your question is yes, however, it will required a little coding. My suggestions would be first generate an standard ssis template of what you would like it to behave. Then look into http://etldevelopernotes.blogspot.com/2012/05/metadata-driving-package-generator.html. In here there are ideas and some code on how to generate ssis packages using .net code. In other words you would be able to call your DLL and assign all your values to a virtual package that would be generated at run time. For how to do a mapping check : http://etldevelopernotes.blogspot.com/2012/05/sqlsaturday-130-demo-7.html hope this helps. J. Novo

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top