Add Printing/Length as Documents are converted

This commit is contained in:
Rich 2010-02-02 20:49:34 +00:00
parent 0465438b86
commit b80775a454

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