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); }