From c37952b58c2af06069197e9864fb06050c9d7b12 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 2 Feb 2010 20:53:11 +0000 Subject: [PATCH] Added Printing/Length to Config --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index da13c24f..0dc86609 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -297,7 +297,7 @@ namespace VEPROMS.CSLA.Library _MyFile = new FileInfo(value); } } - public void SaveFile() + public void SaveFile(float length) { // TODO: Add Try & Catch logic if (_MyDocument == null) return; @@ -309,6 +309,9 @@ namespace VEPROMS.CSLA.Library doc.FileExtension = MyFile.Extension; doc.DocContent = buf; doc.UpdateDocAscii(_MyFile.FullName); + DocumentConfig cfg = new DocumentConfig(doc); + cfg.Printing_Length = length; + doc.Config = cfg.ToString(); doc.UserID = Environment.UserName; doc.DTS = _MyFile.LastWriteTime; doc.Save();