代码见附件
目的:热敏纸小票打印
过程:C1Report设计好样式后通过C1PrintPreviewControl打印
Report.Layout.PaperSize = PaperKind.Custom;
Report.Layout.CustomHeight = Convert.ToInt32(textBox4.Text) * 1440; // in twips 460800
Report.Layout.CustomWidth = Convert.ToInt32(textBox3.Text) * 1440;// 345600
PrinterSettings ps = new PrinterSettings();
//ps.PrinterName = comboBox1.Text;
ps.DefaultPageSettings.PaperSize = new PaperSize("vvv", Convert.ToInt32(textBox2.Text),
Convert.ToInt32(textBox1.Text));
问题1:以毫米为单位如何进行换算设定
问题2:显示的内容变小了,本想时充满整张纸的
|