From f959f883d31a1eb7160e4f9bd9b1944ee0c88878 Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 18 Apr 2011 21:26:03 +0000 Subject: [PATCH] Removed PDF info from Document and Document Config --- PROMS/DataLoader/Documents.cs | 6 +++--- PROMS/DataLoader/Sections.cs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/PROMS/DataLoader/Documents.cs b/PROMS/DataLoader/Documents.cs index be7bb07d..ab6e042e 100644 --- a/PROMS/DataLoader/Documents.cs +++ b/PROMS/DataLoader/Documents.cs @@ -104,8 +104,8 @@ namespace DataLoader { frmMain.AddError("Length Exception {0}\r\n\r\n{1}", ex1.Message, ex1.StackTrace); } - if (ci == null) ci = new ConfigInfo(null); - ci.AddItem("Printing", "Length", string.Format("{0:0.0000}", docLen)); + //if (ci == null) ci = new ConfigInfo(null); + //ci.AddItem("Printing", "Length", string.Format("{0:0.0000}", docLen)); string ascii = myWordDoc.MyWordDoc.Ascii; string s = myWordDoc.Save(temppath); myWordDoc.Close(); @@ -282,7 +282,7 @@ namespace DataLoader int nBytesRead = fs.Read(ByteArray, 0, (int)len); fs.Close(); string t1 = (title == null || title == "") ? null : title; - Document doc = Document.MakeDocument(t1, ByteArray, null, ci == null ? null : ci.ToString(), DateTime.Now, "Migration", ".Doc",null); + Document doc = Document.MakeDocument(t1, ByteArray, null, ci == null ? null : ci.ToString(), DateTime.Now, "Migration", ".Doc"); FileInfo tmpFile = new FileInfo(temppath); string docfile = temppath.Substring(0, temppath.LastIndexOf(".")) + @".doc"; if (File.Exists(docfile)) File.Delete(docfile); diff --git a/PROMS/DataLoader/Sections.cs b/PROMS/DataLoader/Sections.cs index 789caac2..6ba4f8aa 100644 --- a/PROMS/DataLoader/Sections.cs +++ b/PROMS/DataLoader/Sections.cs @@ -81,10 +81,10 @@ namespace DataLoader { if (MissingDocument == null) { - if (ci == null) ci = new ConfigInfo(null); - ci.AddItem("Printing", "Length", string.Format("{0:0.0000}", 0.001)); + //if (ci == null) ci = new ConfigInfo(null); + //ci.AddItem("Printing", "Length", string.Format("{0:0.0000}", 0.001)); Byte[] tstbyte = System.Text.Encoding.Default.GetBytes(""); - MissingDocument = Document.MakeDocument("MISSING FILE IN CONVERSION", tstbyte, null, ci.ToString(), null); + MissingDocument = Document.MakeDocument("MISSING FILE IN CONVERSION", tstbyte, null, null); } Documentid = MissingDocument.DocID; missingDocFile = true; @@ -510,7 +510,7 @@ namespace DataLoader { using (DocumentInfo di = DocumentInfo.Get(secitem.MyContent.MyEntry.DocID)) { - bool success = MSWordToPDF.UpdateDocPdf(di, OverrideColor); + bool success = MSWordToPDF.UpdateDocPdf(di, OverrideColor, seciteminfo); if (!success) { frmMain.AddError("Error in ", "UpdateDocPdf");