本文整理汇总了C#中Workbook.Copy方法的典型用法代码示例。如果您正苦于以下问题:C# Workbook.Copy方法的具体用法?C# Workbook.Copy怎么用?C# Workbook.Copy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Workbook
的用法示例。
在下文中一共展示了Workbook.Copy方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: wizardPage3_AfterPageDisplayed
private void wizardPage3_AfterPageDisplayed(object sender, WizardPageChangeEventArgs e)
{
this.progressBarX1.Value = 0;
// 讀取畫面上選取教師狀態
switch (cboStudStatus.Text)
{
case "一般":
_StudStatus = K12.Data.TeacherRecord.TeacherStatus.一般;
break;
//case "休學":
// _StudStatus = K12.Data.StudentRecord.StudentStatus.休學;
// break;
//case "輟學":
// _StudStatus = K12.Data.StudentRecord.StudentStatus.輟學;
// break;
//case "畢業或離校":
// _StudStatus = K12.Data.StudentRecord.StudentStatus.畢業或離校;
// break;
case "刪除":
_StudStatus = K12.Data.TeacherRecord.TeacherStatus.刪除;
break;
}
lblWarningCount.Text = lblErrCount.Text = "0";
this.wizardPage3.FinishButtonEnabled = eWizardButtonState.False;
linkLabel1.Visible = false;
labelX2.Text = "資料驗證中";
linkLabel3.Tag = null;
linkLabel3.Visible = false;
Application.DoEvents();
_BKWValidate = new BackgroundWorker();
_BKWValidate.WorkerReportsProgress = true;
_BKWValidate.WorkerSupportsCancellation = true;
_BKWValidate.DoWork += new DoWorkEventHandler(_BKWValidate_DoWork);
_BKWValidate.ProgressChanged += new ProgressChangedEventHandler(_BKWValidate_ProgressChanged);
_BKWValidate.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BKWValidate_RunWorkerCompleted);
List<string> fields = new List<string>();
string fileName = txtFile.Text;
fields.AddRange(_RequiredFields);
foreach (ListViewItem item in listView1.Items)
{
if (item.Checked)
fields.Add(item.Text);
}
_ErrorRows = new Dictionary<RowData, Dictionary<string, string>>();
_WarningRows = new Dictionary<RowData, Dictionary<string, string>>();
Workbook wb = new Workbook();
wb.Copy(_WorkBook);
_BKWValidate.RunWorkerAsync(new object[] { fields, _ImportFields, wb });
}
示例2: linkLabel1_LinkClicked
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Workbook wb = new Workbook();
wb.Copy((Workbook)((Control)sender).Tag);
Completed(_Title + "_驗證", wb);
}