I have to generate winword document for badges printing application.
Basic scenario is the following: User selects employees from list, click “print badges”, winword appears to allow user make some editions before printing. Badges should be represented as table with some columns. Every table cell has image background (badge), some text (company, year), user name & user photo upon the badge background. It’s also required to have badge template editable for user via winword.
I’m not very fond of MS Word automation COM interfaces because they are pretty slow, tends to hang. May be I should play with winword XML document content via XML DOM. May be there is a good free library that wraps winword DOM or some libraries provided with Studio 2010 out of the box? What will you suggest?
Thank you in advance!
I’d go with Visual Studio Tools for Office for this one. You can soogle (that means “search SO” – I just made it up) the VSTO Tag on SO for it. There are pros and cons of it, like anything, but for your situation, it’s exactly what you need. This page has many good articles on it the subject.