如何编写打印文件时逐步显示的日志文件 [英] How Should I Write A Log File That Shows Step By Step Process While Printing Files

查看:71
本文介绍了如何编写打印文件时逐步显示的日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

如何在打印文件的同时编写显示逐步处理的日志文件。

我在不同的文件夹中有一些PDF文件...我正在尝试从不同的文件夹中打印一些PDF文件。

但我正在打印PDF文件正在打印时,即打印1个Pdf文件并丢失下一个PDF文件..

但在调试模式下打印所有给定路径的PDF文件..

从文件夹打印Pdf文件..我使用过程类从不同文件夹打印PDF文件路径..



我想知道为什么它在调试模式下运行良好......但不是在发布模式下。

所以我需要一个日志文件来了解从文件夹中取文件和打印PDF文件的内部过程...



我不知道如何写日志文件,因为我更新鲜到.NET



请一个人帮助我....



提前谢谢你

Hi Friends,
How Should I Write A Log File That Shows Step By Step Process While Printing Files.
I have Some PDf Files In Different Folders...And I Am Trying To Print Some PDF Files From Different Folders.
But While I Am Printing The PDF Files Are Printing Alternatively i.e,Printing 1 Pdf File And Missing The Next PDF file..
But In Debug Mode It Is Printing All The PDF Files OF The Given Paths..
To Print The Pdf Files From Folder..i Had Used Process Class To Print PDF Files From Different Folder Paths..

I Want to Know That Why It Is Working Good In Debug Mode...but Not In Release Mode.
So I Need A Log File To Know About The Inner Process OF Taking Files From Folder And Printing The PDf Files...

I Don''t Know How To Write The Log File As I Am Fresher To .NET

Please Some One Help Me....

Thanking You In Advance

解决方案

这里给出了新生的好例子,看看:

http://www.itauthor.com/2007/08/21/writing-to-a-log-file-in-c / [ ^ ]
Very good example for freshers is given over here, take a look :
http://www.itauthor.com/2007/08/21/writing-to-a-log-file-in-c/[^]


这篇关于如何编写打印文件时逐步显示的日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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