using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace FEQ0000 { public partial class rpt_equipmentIng : Form { string pdate = string.Empty; public rpt_equipmentIng(string dateStr) { //SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory); InitializeComponent(); pdate = dateStr; } private void rpt_equipment_Load(object sender, EventArgs e) { this.Text = string.Format("Data Report({0})","잉여장비"); this.Show(); Application.DoEvents(); this.rpv1.PageCountMode = Microsoft.Reporting.WinForms.PageCountMode.Actual; this.rpv1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth; //Set DataSource Microsoft.Reporting.WinForms.ReportDataSource DsEQ = new Microsoft.Reporting.WinForms.ReportDataSource(); DsEQ.Name = "DataSet1"; this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.Equipment.ReportF.rdlc"; taF.Fill(this.dsEQ.vEquStockF, this.pdate); DsEQ.Value = this.dsEQ.vEquStockF; this.rpv1.LocalReport.DataSources.Add(DsEQ); this.rpv1.RefreshReport(); } } }