如何创建打印文档? [英] How do I create a document for printing?

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

问题描述

我已经写了一个记录高尔夫比赛得分的应用程序。

数据在本地保存在数据表中,然后在比赛结束时保存为三个CSV文件。

我创建了一个数据视图的数据视图,当按照获胜顺序排序时,会创建结果表的基础。

我现在想以正确的格式生成结果表并显示它在打印前显示在显示器上。我还会将结果表的副本保存为PDF文件,以便稍后在WEB站点上显示。



我的问题是我不知道创建结果表的最佳方法?



我尝试使用Windows窗体,但结果表的长度大于表格高度。

结果表还包括一张图片作为结果表的标题。

I have written an application to record the scores of a golf competition.
The data is held locally in a datatables before being saved as three CSV files when the competition is closed.
I have created a dataview of one of the datatables which when sorted into winning order creates the basis for the results sheet.
I now want to produce the result sheet in the right format and display it on the monitor before printing. I will also save a copy of the results sheet as a PDF file to be displayed later on a WEB site.

My problem I have is that I do not know the best method for creating the results sheet ?

I tried using a windows form but the length of the results sheet is greater than the form height.
The results sheet will also include a picture as the header of the results sheet.

推荐答案

如果您使用的是WinForms,则可以使用 PrintDocument Class(System.Drawing.Printing) [ ^ ]。< br b> b b b b b b b b b b b b b b b b b b b b b b b b b .com / zh-CN / library / aa287920%28v = vs.71%29.aspx> Crystal Reports [ ^ ]

ReportViewer [ ^ ]
If you're using WinForms, you can use PrintDocument Class (System.Drawing.Printing)[^].

If you would like to use reporting tools, you may be interested in:
Crystal Reports[^]
ReportViewer[^]


您正在使用excel - 创建excel电子表单表单并使用c或vb填写数据。
You are using excel -- creat an excel spread sheet form and using c or vb fill in the data.


这篇关于如何创建打印文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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