private void Print_OnExtraExport(object sender, EventArgs e) { if (m_print == null || m_Entity == null) { return; } Print print = new Print(); switch (m_print.FileName) { case "函件发文表单": m_print.BatchAddPicture("函件发文", "函件发文表单", m_Entity); break; } if (this.IsPreview) { //m_Entity = ControlToEntity(false) as EntityLetterSend; } else { m_Entity = ControlToEntity(false) as EntityLetterSend; } if (m_Entity.jinJi) { m_print.WriteByFont(0x0052, 2, "Wingdings 2"); } else { m_print.WriteByFont(0x00A3, 2, "Wingdings 2"); } if (m_Entity.huiZhi) { m_print.WriteByFont(0x0052, 1, "Wingdings 2"); } else { m_print.WriteByFont(0x00A3, 1, "Wingdings 2"); } ArrayList al = new ArrayList(); for (int i = 0; i < m_Entity.FileList.Count; i++) { ArrayList tmp = new ArrayList(); tmp.Add((i + 1).ToString()); tmp.Add(m_Entity.FileList[i].Alias + "." + m_Entity.FileList[i].Type); tmp.Add(m_Entity.FileList[i].Encode /* + " " + m_Entity.FileList[i].Edition*/); tmp.Add(m_Entity.FileList[i].iPage); al.Add(tmp); } m_print.WriteTable(1, 1, al); }