Add Printing/Length as Documents are converted

This commit is contained in:
Rich committed 2010-02-02 20:49:34 +00:00
1 parent 0465438b86
commit b80775a454
1 file changed
+3
+3
View File
@@ -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);
}