C#, argh!

Soldato
Joined
28 Sep 2008
Posts
14,196
Location
Britain
Never thought I'd be back doing programming, yet here I am.

Basically, I have data, which I need to map to fields in a word document using C# (probably)

Is this going to be a ball ache?

I think the data is originall SQL based
 
So you will be querying a SQL database (I'm guessing using Linq to SQL), then putting that data into a .doc file?

I'm assuming it's going to be tabular data coming from the database, so would a .csv or .xls be better?

Or is it a single text field your selecting from?

You could even input it into the text column in the database as HTML and use HTML to format the page and open it in a browser...
 
Ah ok, sorry, I know the code is the same, but the instructions at the start vary with 2008. It seems to have a load of predefined options, for Office, and applications and stuff.

Its Word 2007, is that going to make a difference?
 
tbh i think you would be best trying to find a third party DLL to help you do this i know that CarlosAg.ExcelXmlWriter is excellent for creating excel files im sure there is a similar Word version around somewhere
 
Back
Top Bottom