|
@@ -1874,8 +1874,9 @@ namespace OTSIncAReportGrids
|
|
|
{
|
|
|
if (dgV_ParticlesDevidePage.Rows.Count > 100)
|
|
|
{
|
|
|
+
|
|
|
if (i_row%(dgV_ParticlesDevidePage.Rows.Count / 100) == 0)
|
|
|
- m_frm_userprogress.SetProgressValueAndText(((i_row / dgV_ParticlesDevidePage.Rows.Count) / 100), "export:" + i_row + "/total:" + dgV_ParticlesDevidePage.Rows.Count);
|
|
|
+ m_frm_userprogress.SetProgressValueAndText(i_row * 100/ dgV_ParticlesDevidePage.Rows.Count, "export:" + i_row + "/total:" + dgV_ParticlesDevidePage.Rows.Count);
|
|
|
}
|
|
|
row = sheet.CreateRow(2 + i_row);
|
|
|
row.Height = 45 * 20;
|
|
@@ -2007,7 +2008,7 @@ namespace OTSIncAReportGrids
|
|
|
file.Close();
|
|
|
|
|
|
//MessageBox.Show("Export complete!");
|
|
|
- //m_frm_userprogress.SetProgressValueAndText(100, "export:" + dgV_ParticlesDevidePage.Rows.Count + "/total:" + dgV_ParticlesDevidePage.Rows.Count);
|
|
|
+ m_frm_userprogress.SetProgressValueAndText(100, "export:" + dgV_ParticlesDevidePage.Rows.Count + "/total:" + dgV_ParticlesDevidePage.Rows.Count);
|
|
|
//加载完成,关闭进度条
|
|
|
m_frm_userprogress.Close();
|
|
|
|