现在需要做这么一个功能,客户自己定制的票据,一式五联的,要用平推的压杆打印机打印,这个数据由我做的系统提供打印,用我的系统打印,各位做过的大侠给点思路,顶者有分,大家一块说说
解决方案 »
- winform 调用chm帮助文件提示找不到文件
- 服务器名
- C# 2个 webbrowser 打开相同的网页,怎么把验证码不变
- 怎样把一个字符串转换成一个DateTime类型呢?
- c#中如何调用dll中的char*参数,报错:尝试读取或写入受保护的内存。 这通常指示其他内存已损坏
- 为什么System.Diagnostics.Process.star()执行不成功?
- jmail控件问题求助!30分!
- 请教!!!!!!!!!!!
- 如何实现输入“I am Tom”,输出“Tom am I”
- 自定义消息,如果没有消息处理函数,为什么不行呢?
- textBlock内容更新后,如何让滚动条跟随textBlock的内容自动滚动?
- 为什么WPF的TextBlock的滚动条不成功?下面这代码有什么问题吗?
{
printDialog1.AllowPrintToFile = true;
printDialog1.AllowCurrentPage = true;
printDialog1.AllowSomePages = true;
printDialog1.Document = this.printDocument1;
if (printDialog1.ShowDialog() == DialogResult.OK)
{
if (MessageBox.Show("是否要预览打印文档", "打印预览", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
this.printPreviewDialog1.UseAntiAlias = true;
this.printPreviewDialog1.Document = this.printDocument1;
this.printPreviewDialog1.ShowDialog();
}
else
{
printDocument1.Print();
}
}
} private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
//打印
e.Graphics.DrawString("ttttttttttttttttttttttttttttttttttttttttttttt",new Font("宋体",20),Brushes.Black,80,80);
}