问题描述
嗨
我有一个C#应用程序,通过它可以创建一个文本文件,当我使用记事本打开该文件时,该文件的格式很好.当我使用NotePad的打印选项打印文件时,文件将按照在屏幕上看到的格式进行格式化和打印.
我使用PrintDocument类编写了自己的打印例程,以打印文本文件.当我通过打印例程进行打印时,该文件未格式化.如何编写打印例程,该例程将格式化文件并按照屏幕上的显示进行打印.非常感谢您的帮助.
在此先感谢
K
Hi
I have a C# application through which I create a text file, which is formated nicely when I open it using notepad. When I print the file using NotePad''s print option, the file is formated and printed as I see it on the screen.
I wrote my own print routine using the PrintDocument class to print the text file. When I print it via my print routine, the file is not formatted. How do I write a print routine, which would format the file and print it as it is seen on the screen. Any help is much appreciated.
Thanks in advance
K
推荐答案
这篇关于使用C#应用程序打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!