public string GetDocument() { DispatchService.AssertGuiThread(); string doc = ""; System.Diagnostics.Trace.WriteLine("Persisting document."); doc = host.PersistDocument(); return(doc); }