Add Printing/Length to Documents.Config as Documents are saved

This commit is contained in:
Rich 2010-02-02 20:59:48 +00:00
parent 5f2e90ad6b
commit 673acb6ecd

View File

@ -152,6 +152,7 @@ namespace Volian.Controls.Library
}
public void FindSearchString()
{
if (SearchString == null) return;
// Get the Document
LBDocumentClass wordDoc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
//LBSelection sel = wordDoc.Application.Selection;
@ -253,8 +254,9 @@ namespace Volian.Controls.Library
MessageBox.Show("Currently in VIEW mode,\r\n cannot Save " + _MyDisplayTabItem.Tooltip);
return;
}
LBDocumentClass doc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
MyDSOFile.SaveFile();
MyDSOFile.SaveFile(doc.Length);
}
/// <summary>
/// Before a document closes check to see if it's contents should be saved.
@ -329,8 +331,9 @@ namespace Volian.Controls.Library
try
{
_MyDSOFramer.Save();
LBDocumentClass doc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
MyDSOFile.SaveFile();
MyDSOFile.SaveFile(doc.Length);
}
catch (Exception ex)
{