文檔金喜正規買球>>Aspose中文文檔>>擴展并促進 CRM 重復檢測
擴展并促進 CRM 重復檢測
Aspose.Words是一種高級Word文檔處理API,用于執行各種文檔管理和操作任務。API支持生成,修改,轉換,呈現和打印文檔,而無需在跨平臺應用程序中直接使用Microsoft Word。
Aspose技術交流群(761297826)
您可以在以下位置下載最新的源代碼:
- GitHub
在這種情況下,我們使用 Aspose.Words.dll 從模板生成文檔。我們已經定義了一個自定義工作流程序集,可以與 CRM 中的工作流和對話框一起使用。
Document Result = new Document(); DocumentBuilder ResultWriter = new DocumentBuilder(Result); // Read Attachment in Aspose byte[] DocumentBody = Convert.FromBase64String(Note["documentbody"].ToString()); MemoryStream fileStream = new MemoryStream(DocumentBody); Document doc = new Document(fileStream); ResultWriter.Writeln("Comparing Document: " + FileName); ResultWriter.StartTable(); // Read Attachment in Aspose byte[] OtherDocumentBody = Convert.FromBase64String(OtherNote["documentbody"].ToString()); MemoryStream fileStream2 = new MemoryStream(OtherDocumentBody); Document doc2 = new Document(fileStream); ResultWriter.InsertCell(); ResultWriter.Write(OtherFileName); // Comparing document with other attachments doc.Compare(doc2, "a", DateTime.Now); if (doc.Revisions.Count == 0) { // If documents are same ResultWriter.InsertCell(); ResultWriter.Write("Duplicate Documents"); } ResultWriter.EndRow(); ResultWriter.EndTable();