Questions tagged [documentviewer]

A WPF UI control that can host paginated FixedDocument content such as an XpsDocument.

A WPF UI control that can host paginated FixedDocument content such as an XpsDocument.

You can read more about the DocumentViewer on Docs.

185 questions
3
votes
1 answer

XPS viewer "the page cannot be displayed"

I'm creating a custom report using WPF. I'm using DocumentViewer with FixedDocument, and all apparently works, the document I'm creating is visible on the screen and it works on the printer too. But if I try to print using the Microsoft XPS Document…
Felice Pollano
  • 32,832
  • 9
  • 75
  • 115
3
votes
0 answers

Open source html5 document viewer for mobile apps

I am building mobile app for Android and iOS platforms using Phonegap. I want to use a html5 document viewer to display pdf's, ppt's and all in the mobile app. I saw Crocodoc. Its good, but i need to something open source which i can tinker with.…
ghostCoder
  • 1
  • 9
  • 49
  • 72
2
votes
1 answer

DocumentViewer to RichTextBox Binding Error

I have an application with RichTextBox and DocumentViewer (placed in a TabControl), and I want to make something like "hot preview". I've binded DocumentViewer.Document property to RichTextBox.Document Binding:
Artur Michajluk
  • 1,899
  • 2
  • 16
  • 23
2
votes
2 answers

How to allow Google Doc to display hotlinked files?

I have restricted hotlinking my files in using htaccess. But I need those files to be displayed in Google Doc Viewer. In htaccess I allow Google Docs to hotlink my files, but it is not working. Please help me in this Below is the code I used in my…
2
votes
1 answer

HTML5 Document uploader and viewer

I have a website which is developed in PHP which allows users to add and view documents. The upload process and viewer is very basic in that the user manually enters in what they want to upload and then they can view it on a webpage with basic…
gurm
  • 21
  • 1
2
votes
2 answers

CanExecute for KeyBindings to control

I have a reportViewer with default toolbar button for decrease zoom binded to command NavigationCommands.DecreaseZoom. I want to disable it in some situation so i bind CanExecute method to return false for that command which works perfectly fine and…
Rohit Vats
  • 79,502
  • 12
  • 161
  • 185
2
votes
0 answers

SQL FileStream Opening XPS FIle

I am trying to read an XPS file that I have inserted into my database using the Filestream attribute. Here is my code thus far. RewardsDataContext dx = new RewardsDataContext(); var img = (from c in dx.RwProductsTests …
Jonah Kunz
  • 670
  • 8
  • 19
2
votes
1 answer

How can I center my page in the document viewer?

I'm using a document to show a user control. Some people from here helped me: How can I put an user control inside a document viewer? But the user control appers in the corner, and I'd like to print it, but a little bit more central.
oscar.fimbres
  • 1,145
  • 1
  • 13
  • 24
2
votes
1 answer

Microsoft Online Document Viewer ( Office Web Viewer) not working

We are using Microsoft Office Online document viewer to view doc/docx documents from a URL. This was working till yesterday. However the functionality has stopped working from today ( 25th August 2021). Word logo comes up however the document is not…
2
votes
0 answers

strange signs in Documentviewer WPF

I'm adding a document viewer to my WPF project and all seems perfect. But when I try to open another xps file, the documentviewer places some [?] signs in my document. Here's my code : if (xps != null) { …
SgtSpeedy
  • 63
  • 1
  • 7
2
votes
2 answers

How do I set the name of the print job when using DocumentViewer control?

I've using the WPF DocumentViewer control to display an XPS Document like so: viewer.Document = xpsDocument.GetFixedDocumentSequence(); When the print button inside the document viewer is clicked everything prints okay, however the name of the…
Ray
  • 45,695
  • 27
  • 126
  • 169
2
votes
2 answers

Show several FixedDocuments in a DocumentViewer, as if they were a single document

In my WPF app, I have several FixedDocument objects, which I want to display together in a DocumentViewer, as if they were a single document. It's easy to display a single FixedDocument in a document viewer: myDocumentViewer.Document =…
Ross
  • 4,460
  • 2
  • 32
  • 59
2
votes
1 answer

WPF document viewer page size

How to set page size for WPF document viewer in cm mm?
Ievgen
  • 4,261
  • 7
  • 75
  • 124
2
votes
2 answers

How to Collapse the CopyButton in WPF DocumentViewer control tool bar?

I would like to Collapse the Copy button in WPF Documentviewer control toolbar. I added a trigger in style to set visibility to Collapsed.But it didn't work.Any thoughts why?
RaviG
  • 31
  • 4
2
votes
1 answer

Google docs viewer with files requiring authorization?

Google docs viewer is quite good and easy to use tool. It only requires the file's path and renders the document. It also has a lot of additional features like choosing page, rotating, etc. However is there a way to set some authorization or…
user3568791
  • 676
  • 1
  • 7
  • 22