资 源 简 介
包括: 预览控件 Preview, 类 PrnCls。
预览控件 Preview 利用 PictureBox 实现对 Printer 的完全模拟。
类 PrnCls 提供统一的界面, 实现一次编写, 同时支持打印机和预览控件 Preview 。
所有对打印对象的编程, 都由类 PrnCls 实现, 正如我们在例子里看到的,
通过不同的 PrintStartDoc 参数, 可以实现打印或预览, 而所有的控制打印的代码完全一样。
复杂的表格成为了可能, 我们可以在调试时, 把输出定向到预览控件 Preview,
而在调试好以后, 输出到打印机, 节省调试时间和打印纸!-Include: preview control Preview, Class PrnCls. Preview Preview use PictureBox controls to achieve the complete simulation Printer. PrnCls category to provide a unified interface, to achieve write once, at the same time to support the printer and preview control Preview. Print all of the programming objects by category PrnCls to achieve, as we saw in the example, through different PrintStartDoc parameters, can print or preview, and all the control of printing exactly the same code. Complex form as possible, we can debug when the output directed to the preview control Preview, good in debugging, the output to the printer, saving time and printing paper debugging!