在不同的A4页面上多次打印一些文本 [英] Printing some texts many times on one A4 page diffrent times
问题描述
我想也许你们中的一些人已经在做类似的事了。我需要开发一些代码,这些代码将采用一些文本和公司徽标,并将其放在A4格式纸上,并且不同的数量。所以,让我们说整篇论文只有1或者说4或16等等...用户会定义它们应该在纸上拼出多少。
所以让我们说用户定义:
公司名称:AnyCompany
地址:AnyAddress
符号:AnySymbol
日期:anydate
徽标:图形徽标
所以它看起来像这样一些框架
I wonder maybe some of you already was working on similar thing. I need to develop code that will take some texts and company logo and will place it on the A4 format paper in diffrent count of it. So lets say entire paper got only 1 or lets say 4, or 16 and so on... User would define how many of them should be spliited on paper.
So lets say user define:
Company name: AnyCompany
Address: AnyAddress
Symbol: AnySymbol
Date: anydate
Logo: graphic logo
so it would look like this with some frame around
AnyCompany graphic logo
Symbol
Address Anydate
并根据用户在A4上需要多少这张纸将被分割并调整为A4格式的纸张。
您是否已经开始研究类似的东西了吗?
And based on how many user want it on A4 paper this will be splitted and resized on A4 format paper.
Did you already work on something similar can you support me with that?
推荐答案
WinForms解决方案:
从这里开始:PrintDocument Class [ ^ ]并使用的PrintPage [<一个href =http://msdn.microsoft.com/en-us/library/vstudio/system.drawing.printing.printdocument.printpage%28v=vs.90%29.aspxtarget =_ blanktitle =New窗口> ^ ]事件。点击链接查看示例。
WinForms solution:
Start here: PrintDocument Class[^] and use PrintPage[^] event. Follow the link to see the example.
这篇关于在不同的A4页面上多次打印一些文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!