.net printing using templates [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question 开发者_如何学编程I'm currently printing in .NET using the PrintDocument class, and it's allright, but the output is rather hard coded. Instead, I'd like to give my users a way to setup something like a template document, with static and dynamic fields. Then my code would keep the static fields (images, fixed text, etc) and fill in the dynamic ones.
What are my options?
Thanks.
I know it's blatant advertising, but I suggest using List & Label.
Disclaimer: I just like that product, I am not affiliated with them ;-)
It really depends on the requirement, ie if you need to print reports I would look at the various reporting tools avalable (eg Telerik / Active Reports)
If you want to produce page based templating for print, I would look at the various PDF generation libraries available as ultimately PDF format is what you should be aiming for. (eg: iTextSharp, TallComponents, many others)
精彩评论