Xtrareport
1,
此报表在设置时,
paperkind
中找不到自定义的纸张,所以我就在事件
beforeprint
中,
this.Margins = new System.Drawing.Printing.Margins(10, 10, 10, 10);
this.PaperKind = System.Drawing.Printing.PaperKind.Custom;
this.PageWidth = 827;
this.PageHeight = 584;
this.PaperName = "21*13"
2.
加载已有模板
xrpt1.LoadLayout(
@"E:\EMS.repx"
);
Developer Express
?/p>
XtraReport
报表预览控件
PrintControl
设置
using System;
02
using System.Collections.Generic;
03
using System.ComponentModel;
04
using System.Data;
05
using System.Drawing;
06
using System.Text;
07
using System.Windows.Forms;
08
using DevExpress.XtraEditors;
09
using DevExpress.XtraReports.UI;
10
using DevExpress.XtraPrinting.Preview;
11
using DevExpress.XtraPrinting;
12
using DevExpress.XtraPrinting.Control;
13
14
namespace WFAXtraReport
15
{
16
public partial class Form1 : Form
17
{
18
public Form1 ()
19
{
20
InitializeComponent();
21
}
22