Reputation: 18067
How can I add regular printing functionality to my application so that I can create a custom report (say, in an RTF format) to print? Also, is it somehow possible to combine print preview with this?
UPDATE: Oh and also, what is built-in in the .NET Framework in terms of printing?
Upvotes: 1
Views: 2889
Reputation: 5745
You could try the ReportViewer that is shipped with Visual Studio. It covers both Windows Forms and Web Forms. http://msdn.microsoft.com/en-us/library/ms251671(VS.80).aspx
Upvotes: 1
Reputation:
I'd use a 3rd party as Pratik mentioned, Active reports is quite simple, or if need a more robust can use SSRS.
Upvotes: 0
Reputation: 11066
Take a look at some commercial packages like the Xtra Reports suite from DevExpress
Upvotes: 0
Reputation: 7169
You will open yourself up to a world of pain here, and this problem has been solved before.
What are you trying to print? I'll assume you have a win-forms application.
When you say custom, do you mean the user will be entering the rtf or html code themselves (either manually, or with an editor such as WMD or tinyMCE)
You could drop in an Internet Explorer control, and invoke a print from there. Or there are plenty of other options.
Upvotes: 0