fixed problem saving margins in word attachment – can’t do if in a frame

sometines would get a weird file name for the opened word attachment
This commit is contained in:
2012-04-05 19:45:28 +00:00
parent bff0666d85
commit da009a15eb
2 changed files with 23 additions and 6 deletions

View File

@@ -324,7 +324,11 @@ namespace Volian.Controls.Library
return;
}
LBDocumentClass doc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
string tmp = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
if (System.IO.File.Exists(tmp))
MyDSOFile.FullName = tmp;
else
_MyLog.FatalFormat("File does not exist {0}\r\nFile was {1}", tmp, MyDSOFile.FullName);
// if this was a library document, ask user if it should be saved for all usages.
bool cvtLibDoc = false;
EntryInfo myei = MyDisplayTabItem.MyItemInfo.MyContent.MyEntry;