Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# - Templated Printing from Object(s)

Tags:

I'm in need of a solution to print or export (pdf/doc) from C#. I want to be able to design a template with place holders, bind an object (or xml) to this template, and get out a finished document.

I'm not really sure if this is a reporting solution or not.

I also don't want to have to roll my own printing / graphics code -- I'd like all display concerns handled in a template.

I initially think of this as something Crystal Reports can do (although I've never used CR), but I'm not sure if I'm abusing the system here -- I'm not really interested in binding ADO.NET datasets at the moment (screw datasets). Can Crystal deal with binding to objects?

Does SSRS or WPF play in this field too?

like image 315
anonymous Avatar asked Feb 27 '09 20:02

anonymous


1 Answers

A subset of WPF-P is XPS which can be used to present your objects via databinding. One of the best choices if you are already using WPF.

Google Keywords: XPS, FixedDocument, FlowDocument, WPF Printing

like image 159
Sven Hecht Avatar answered Sep 30 '22 15:09

Sven Hecht