/// <summary> /// 导出PDF /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnExportPDF_Click(object sender, RoutedEventArgs e) { try { if (File.Exists(IMMCodeEnterEntity.PdfTransferAppName)) { string fileTitle = IMMCodeEnterEntity.ConferenceName + this.title_introduce; string fileNameWord = fileTitle + ".html"; string FileFullName = IMMCodeEnterEntity.FileRoot + "\\" + fileNameWord; string htmlData = this.BuildHtml(fileTitle); FileManage.CreateWPFile_Html(FileFullName, htmlData); string fileNamePDF = fileTitle + ".PDF"; FileManage.CreatePDF(FileFullName, fileNamePDF, IMMCodeEnterEntity.PdfTransferAppName); } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 生成pdf版会议纪要 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnCreatePDF_Click(object sender, RoutedEventArgs e) { try { if (File.Exists(TreeCodeEnterEntity.PdfTransferAppName)) { string fileTitle = TreeCodeEnterEntity.ConferenceName + this.title_introduce; string fileNameWord = fileTitle + ".html"; string FileFullName = TreeCodeEnterEntity.FileRoot + "\\" + fileNameWord; FileManage.CreateWPFile_Web(FileFullName, TreeCodeEnterEntity.webView.WebBrowser, "conferenceComment"); string fileNamePDF = fileTitle + ".PDF"; FileManage.CreatePDF(FileFullName, fileNamePDF, TreeCodeEnterEntity.PdfTransferAppName); } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }