如何从C#打印带有Campany徽标的印刷品 [英] How to give print from C# with a campany Logo
问题描述
亲爱的所有人
我正在创建一个从SQL对数据进行加注的软件,并希望在带有Company Logo的文件中进行打印.就像我要打印的内容一样,它应该出现在纸的中间,而应该放在CompanyLogo的纸上.请帮助我创建此类软件.他们在Image中为我提供了徽标.
结构是这样的:
_________________________________________________________________
________
||| LOGO |
________
产品名称:药物名称
价格:25.25
增值税:56%
_______
打印
________________________________________________________________
现在我要打印这个:
请提前帮助我.
Dear all
I am creating a software fatching data from SQL and want to Print in a paper with Company Logo . Like whatever i want to print it should come in mid of a paper and top of the paper CompanyLogo . Kindly help me to create this kind of software .They give me there logo in Image.
structure is like this:
_________________________________________________________________
________
|||LOGO|
________
Name of product: Mediction name
Price : 25.25
vat : 56%
_______
Print
________________________________________________________________
Now i want to print this :
Please help me thanks in advance.
推荐答案
尝试使用此URL .................. 使用OpenOffice Writer从C#打印文档 [
Try this URL.....................Printing Documents from C# using OpenOffice Writer[^]
使用 ^ ]-该链接提供了一个示例.
Use a PrintDocument Class[^] - the link provides an example.
此example-[C#打印图像文件] [
This example-[C# Printing an Image File][^] will help you.
Image photo = Image.FromFile("YourImageFile");
PrintDocument printDoc = new PrintDocument();
printDoc.PrintPage += new PrintPageEventHandler(printDoc_PrintPage);
printDoc.Print();
这篇关于如何从C#打印带有Campany徽标的印刷品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!