excel - Simplest way to modify a document "template" and print via WPF? -
the situation i have wpf program want print several documents using data. these documents exist excel spreadsheet , word document. what have tried opened xps file (saved xps excel) zip , pulled out page (it consists of single page) , slapped window grid, test. omg!! resources not found , red squiglies every where. fonts specified in xps represented in odttf file wpf not seem like. renaming .ttf doesn't appear work. layout appeared correctly, grid lines , not, hopeful. what rather not have do recreate files flow document, xps, or other xaml objects hand. layout pretty involved excel spreadsheet document. word doc not bad. so need know: 2 inputs using (word document, excel spreadsheet) how best these format print wpf. have code snippets allow me open excel, open spreadsheet, put data specified cells, print, issue close command, check program unload , kill if necessary. don't want anymore though. messy , can buggy requiring office interop assemblies , o...