I'm looking for best practices regarding printing from the WinForms application.
In my special case, I have an existing WinForms application that needs to be expanded with print functionality, the program should not just print the content on the screen, but some data form Should be taken in and put in a template.
Thank you, Egil.
There are two main ways of printing in .Net widely. The original printing API, which repeats the callback on a method and you are setting the logic (HzmorePage) correctly to argue whether there are more pages to print. It is too much or nothing to use this API.
The second is included in the use of WPF and the opposite of the previous API. These are complex levels of complexity ranging from using the print visual method on the elements of the WPF form to the level of control in the regular printing API.
The third option, especially for WinForms, is to use printer compatibility. The Library from VB Power Pack 3.0 restores the simplicity of the older methods of Visual Basic. Despite this the view can be focused on BASIC.NET, it can be referenced from any .NET language.
Another option uses something like crystal reports for your printing.
Comments
Post a Comment