You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.8 KiB
85 lines
1.8 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using DevExpress.XtraEditors;
|
|
using System.Data.SqlClient;
|
|
using ICSSoft.Frame.APP;
|
|
using System.Configuration;
|
|
using ICSSoft.Frame.APP.Helper;
|
|
using ICSSoft.Frame.APP.Model;
|
|
using DevExpress.XtraGrid.Columns;
|
|
using System.Linq;
|
|
using FastReport;
|
|
using FastReport.Data;
|
|
using FastReport.Design;
|
|
|
|
namespace ICSSoft.Frame.APP
|
|
{
|
|
public partial class FormPreview : DevExpress.XtraEditors.XtraForm
|
|
{
|
|
/// <summary>
|
|
/// 打印模型
|
|
/// </summary>
|
|
private List<PrintModel> model { get; set; }
|
|
|
|
public FormPreview()
|
|
{
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
public FormPreview(List<PrintModel> model)
|
|
{
|
|
InitializeComponent();
|
|
this.model = model;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void FormPreview_Load(object sender, EventArgs e)
|
|
{
|
|
Report report = new Report();
|
|
|
|
report.RegisterData(model, "DataSource");
|
|
report.Load(AppDomain.CurrentDomain.BaseDirectory + "FastReport\\barcodeNew.frx");
|
|
report.Prepare();
|
|
report.Preview = previewControl1;
|
|
report.ShowPrepared();
|
|
}
|
|
|
|
|
|
private void btnCancle_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Cancel;
|
|
this.Close();
|
|
}
|
|
|
|
private void btnClose_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Cancel;
|
|
this.Close();
|
|
}
|
|
|
|
private void previewControl1_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void previewControl1_Load_1(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|