ms word - Creating docx OOXML with c# -


i hoping point in correct direction, have never done, , googling getting me tied in knots.

i want create word document (docx) c# on asp.net mvc application.

populating template mail merge great.

i have spent day googling , keep finding archived documentation.

the following examples 2012 https://msdn.microsoft.com/en-us/library/office/bb491088.aspx

because generate documents on server should avoid interop document manipulation. can use free libraries , sdks based on openxml difficult learn , error prone.

it makes sense choose 1 among 3rd party toolkits job done quick , easy. start preparing ms word template documents placeholders data. can use c# load data reports , merge data templates final documents (docx, pdf, xps or image formats). here code used 1 such toolkit needed merging data database template pdf document:

ienumerable<customer> customers = dataaccess.getcustomerbyid(15); documentgenerator dg = new documentgenerator(customers); documentgenerationresult result = dg.generatedocument("mytemplate.docx", "myreport.pdf"); 

you can see these examples more information.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -