如何在 .net 中打印文本文件 [英] How do I print a text file in .net

查看:53
本文介绍了如何在 .net 中打印文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 vb.net 中打印 .txt 文件?希望不使用任何第三方.

How do I print a .txt file in vb.net? Hopefully without using any third parties.

推荐答案

看看这个关于如何使用 VB.Net 打印文件的例子:MSDN 如何:在 Windows 窗体中打印多页文本文件

Have a look at this example on how to print files with VB.Net: MSDN How to: Print a Multi-Page Text File in Windows Forms

您需要的最重要的类是 PrintDocument.除了 .Net-Framework(> 1.1) 中的 System.Drawing 和 System.IO Namespace 之外,不需要任何第三方工具或 Dll.

The most important class you need is PrintDocument. No third party tools or Dll's other than in System.Drawing and System.IO Namespace in .Net-Framework(> 1.1) are needed.

这篇关于如何在 .net 中打印文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆