Add Printing/Length to Documents.Config as Documents are saved
This commit is contained in:
parent
5f2e90ad6b
commit
673acb6ecd
@ -152,6 +152,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
public void FindSearchString()
|
public void FindSearchString()
|
||||||
{
|
{
|
||||||
|
if (SearchString == null) return;
|
||||||
// Get the Document
|
// Get the Document
|
||||||
LBDocumentClass wordDoc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
|
LBDocumentClass wordDoc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
|
||||||
//LBSelection sel = wordDoc.Application.Selection;
|
//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);
|
MessageBox.Show("Currently in VIEW mode,\r\n cannot Save " + _MyDisplayTabItem.Tooltip);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
LBDocumentClass doc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
|
||||||
MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
|
MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
|
||||||
MyDSOFile.SaveFile();
|
MyDSOFile.SaveFile(doc.Length);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Before a document closes check to see if it's contents should be saved.
|
/// Before a document closes check to see if it's contents should be saved.
|
||||||
@ -329,8 +331,9 @@ namespace Volian.Controls.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_MyDSOFramer.Save();
|
_MyDSOFramer.Save();
|
||||||
|
LBDocumentClass doc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
|
||||||
MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
|
MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
|
||||||
MyDSOFile.SaveFile();
|
MyDSOFile.SaveFile(doc.Length);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user