This is a migrated thread and some comments may be shown as answers.

RadRichTextBox as Xps File Viewer

1 Answer 203 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Joel Palmer
Top achievements
Rank 2
Joel Palmer asked on 14 Feb 2012, 08:42 PM
Before I do a bunch of work, I thought I'd verify a statement I've heard in other (older) posts.

I need to be able to open and print Xps files from a WPF application.  Does the RTB fully support this?  Also, these are the only functions we want available.  So, is there a way to hide the RTB tool bar except these functions?

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 17 Feb 2012, 09:07 AM
Hi Joel,

Unfortunately, RadRichTextBox does not support XPS as one of the file formats it can import/export. There is a list of all available formats in this article

Judging from your description, a more suitable control for your scenario would be the just-introduced RadPdfViewer for WPF. It can open only PDF files, but if you find a suitable XPS to PDF converter (which are both fixed documents, it should be just what you need. You can take a glimpse of it in the Click-once demos or in the Silverlight demos, where functionality is the same.
You can also use directly DocumentViewer class to visualize the XPS document and print it as described here and here.

Regards,
Iva Toteva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
RichTextBox
Asked by
Joel Palmer
Top achievements
Rank 2
Answers by
Iva Toteva
Telerik team
Share this question
or