From b80775a454ddb823cb979c0635046bba41c7c6cf Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 2 Feb 2010 20:49:34 +0000 Subject: [PATCH] Add Printing/Length as Documents are converted --- PROMS/DataLoader/Documents.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PROMS/DataLoader/Documents.cs b/PROMS/DataLoader/Documents.cs index 6a883179..d435f380 100644 --- a/PROMS/DataLoader/Documents.cs +++ b/PROMS/DataLoader/Documents.cs @@ -106,8 +106,11 @@ namespace DataLoader } string temppath = Path.GetTempFileName(); string s = d.Save(temppath); + float docLen = d.Length; d.Close(); WaitMS(wms); + if (ci == null) ci = new ConfigInfo(null); + ci.AddItem("Printing", "Length", string.Format("{0:0.0000}",docLen)); docid = SaveDoc(temppath, title, ci); File.Delete(temppath); }