本文整理汇总了C#中GUI.frmBaoCaorpt.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# frmBaoCaorpt.Dispose方法的具体用法?C# frmBaoCaorpt.Dispose怎么用?C# frmBaoCaorpt.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GUI.frmBaoCaorpt
的用法示例。
在下文中一共展示了frmBaoCaorpt.Dispose方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: tsslWord_Click
private void tsslWord_Click(object sender, EventArgs e)
{
try
{
if (i < 0)
return;
disable();
saveFileDialog1.Filter = "Word |*.doc"; saveFileDialog1.FileName = "";
if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string manhomhang = dtgvhienthi["MaNhomHang", i].Value.ToString();
Report.rptXuatNhapHangTheoNhomHang report = new Report.rptXuatNhapHangTheoNhomHang();
report.SetDataSource(ChiTietNhom(manhomhang));
report.SetParameterValue("Ky", thang.ToString() + "-" + nam.ToString());
report.SetParameterValue("TenBaoCao", "Báo Cáo Xuất Nhập Tồn Theo Nhóm Hàng");
frmBaoCaorpt a = new frmBaoCaorpt(report, saveFileDialog1.FileName, Report.ExportCrystalReport.TypeBC.WordForWindows);
a.Dispose();
}
}
catch
{
}
finally
{
enable();
}
}
示例2: tsslPdf_Click
private void tsslPdf_Click(object sender, EventArgs e)
{
try
{
if (i < 0)
return;
disable();
saveFileDialog1.Filter = "PDF |*.pdf"; saveFileDialog1.FileName = "";
if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string maloaihang = dtgvhienthi["MaHangHoa", i].Value.ToString();
Report.rptBaoCaoNhapHangTheoMatHang report = new Report.rptBaoCaoNhapHangTheoMatHang();
report.SetDataSource(ChiTietHang(maloaihang));
report.SetParameterValue("Ky", thang.ToString() + "-" + nam.ToString());
report.SetParameterValue("TenBaoCao", "Báo Cáo Nhập Hàng Theo Hàng Hóa");
frmBaoCaorpt a = new frmBaoCaorpt(report, saveFileDialog1.FileName, Report.ExportCrystalReport.TypeBC.PortableDocFormat);
a.Dispose();
}
}
catch
{
}
finally
{
enable();
}
}