如何使用MFC制作要打印的日志文件 [英] How to make a log files given to print using MFC

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

问题描述

你好,

我正在使用MFC构建应用程序,因此我需要对已打印文件进行日志记录.如果用户要提供任何要打印的文件,则需要记录要打印的文件名.请问有人可以指导我做吗谢谢.

Hello,

i am building an application in MFC, in this i need to make a log of the printed files.If the user is giving any file for printing then i need to log the file name given for print.Kindly can any one guide me to do this.Thank you in advance

推荐答案

您好,在OnDraw的CView控件中或无论您要开始打印的地方,都使用Log4Net组件.

log4Net日志记录框架 [
Hi, in your CView oveeride of OnDraw or wherever your print is being started, use the Log4Net component.

log4Net logging framework[^]

hope this helps you out...


这篇关于如何使用MFC制作要打印的日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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