Esempio n. 1
0
 public CurrentHandle(DocxToFlowDocumentConverter converter, TextElement current)
 {
     this.converter = converter;
     this.converter.AddChild(current);
     this.previous          = this.converter.current;
     this.converter.current = current;
 }
Esempio n. 2
0
 private void ReadDocx(string path)
 {
     using (var stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
     {
         var flowDocumentConverter = new DocxToFlowDocumentConverter(stream);
         flowDocumentConverter.Read();
         FlowDocumentScrollViewer.Document = flowDocumentConverter.Document;
         this.Title = Path.GetFileName(path);
     }
 }