This question is locked. New answers and comments are not allowed.
I am trying to load a document into radtextbox so i can print it out.
I used some code from your sample.
But am getting an error on XamlFormatProvider , i don't know what namespace and reference i need for this.
Inteli sense from Visual Studio is not recognising it.
I used some code from your sample.
private const string TemplateDocumentPath = "Template Files/bt_timesheet_print.xaml"; private RadDocument LoadDocument() { RadDocument document = new RadDocument(); using (Stream stream = Application.GetResourceStream(GetResourceUri(TemplateDocumentPath)).Stream) { document = new XamlFormatProvider().Import(stream); document.LayoutMode = DocumentLayoutMode.Flow; } return document; } private Uri GetResourceUri(string resource) { AssemblyName assemblyName = new AssemblyName(this.GetType().Assembly.FullName); string resourcePath = "/" + assemblyName.Name + ";component/" + resource; Uri resourceUri = new Uri(resourcePath, UriKind.Relative); return resourceUri; }But am getting an error on XamlFormatProvider , i don't know what namespace and reference i need for this.
Inteli sense from Visual Studio is not recognising it.