This commit is contained in:
Kathy Ruffing 2010-07-23 14:11:28 +00:00
parent 7ae193db00
commit 047909f8fe

View File

@ -310,12 +310,14 @@ namespace VEPROMS.CSLA.Library
doc.Config = cfg.ToString();
doc.UserID = Environment.UserName;
doc.DTS = _MyFile.LastWriteTime;
doc.Save();
string pdfTmp = MSWordToPDF.ToPDFReplaceROs(_MyDocument);
FileInfo pdfFile = new FileInfo(pdfTmp);
fs = pdfFile.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
buf = new byte[pdfFile.Length];
fs.Read(buf, 0, buf.Length);
fs.Close();
pdfFile.Delete();
doc.DocPdf = buf;
doc.Save();
}