- namespace C1FlexGridTest01
- {
- public partial class FlyFile : Form
- {
- public FlyFile()
- {
- InitializeComponent();
- }
-
- private void FlyFile_Load(object sender, EventArgs e)
- {
- this.c1PrintDocument1.StartDoc();
- C1.C1Preview.RenderTable theader = new C1.C1Preview.RenderTable(this.c1PrintDocument1);
- theader.Cells[0, 0].Style.TextAlignHorz = C1.C1Preview.AlignHorzEnum.Left;
- theader.Cells[0, 2].Style.TextAlignHorz = C1.C1Preview.AlignHorzEnum.Right;
- theader.CellStyle.Font = new Font("Arial", 8, FontStyle.Italic);
- theader.Cells[0, 0].Text = "中国南方航空";
- theader.Cells[0, 2].Text = "飞行文件";
- this.c1PrintDocument1.RenderBlock(theader);
- this.c1PrintDocument1.RenderInlineText("武汉(ZHHH)-北京(ZBAA)航空气象情报", new Font("", 20, FontStyle.Bold), Color.FromArgb(0, 0, 125));
- this.c1PrintDocument1.RenderInlineEnd();
- this.c1PrintDocument1.RenderInlineText("METAR ZBAA 140730Z VRB02MPS CAVOK 27/01 Q1006 NOSIG= ", new Font("", 12, FontStyle.Regular), Color.Black);
- this.c1PrintDocument1.RenderInlineEnd();
- this.c1PrintDocument1.EndDoc();
- }
- }
- }
复制代码
窗体就 c1PrintPreviewControl1 和 c1PrintDocument1控件 怎么能让一行文字居中?
还有就是怎么放一张或者多张图片上去?(每张图需要打印成一张A4大小,需要让图片旋转90度,铺满A4纸)
我的文本内容都是存在List里面的
|