Reputation: 2641
From time to time we all need to print a document from our .NET programs. Let's say a simple one page document with some text and image.
So far I know 2 ways to do it:
First way I don't like because it takes a lot of time to write all these routines for handling events and standard PrintPreviewDialog is just ugly. Beside that you need to generate and scale 2 different documents on print preview and actual printing.
Second way bothers me because these free components quite often are limited and poorly documented.
What other solutions for printing do you know?
Upvotes: 2
Views: 380
Reputation: 3095
I have tried to analyze possible options in the article pdf reports in c#.
Long story short. I was not satisfied with the current options and developed jsreport as a solution for designing and printing pdf reports. Check it out, it's free.
Upvotes: 1
Reputation: 14098
I haven't seen an elegant printing solution in .NET yet, except for WPF and XPS. In that case, you can just create a UI in Xaml and print it. But XPS isn't often a viable option. I've worked with XSL-FO also (using NFop and later FO.Net - the latter is better because newer and it doesn't require Visual J#), which works but has a moderately steep learning curve.
Upvotes: 1