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
1
vote
1 answer

Tooltip on scrollviewer in documentviewer

I have a documentviewer which i used in my wpf project to show xps document reports of having around 600 pages which is working great. But from user point of view i like to show the current page number as a tooltip on my scrollviewer while dragging…
Rohit Vats
  • 79,502
  • 12
  • 161
  • 185
1
vote
0 answers

Replacement of Google document viewer in china

I am using the Google document viewer to view the uploaded documents via a browser. It works fine, but the real problem comes from China. Since google services are banned in China, my end users from China cannot able to access the documents via…
VishnuPrasad
  • 1,078
  • 5
  • 17
  • 36
1
vote
0 answers

WPF DocumentViewer crashes when scrolling down to preview the second page of XPS document

I am using the WPF DocumentViewer to preview an XPS document in my application. The code is actually converting from PDF to XPF actually. When I scroll down during preview, it behaves as expected. However, the moment I reach the point where the…
Ray
  • 4,679
  • 10
  • 46
  • 92
1
vote
2 answers

A better file format than PDF or EPUB?

My client wants us to build a custom document viewer for their app. (It really, truly needs to be custom, because there are a ton of application-specific features they need.) We built one for them last year that took PDFs, generated page images,…
ccleve
  • 15,239
  • 27
  • 91
  • 157
1
vote
1 answer

How to adjust path of XPS document for wpf Application to work on another PC?

I have a simple wpf application that contains one window with a document viewer that I use to show an XPS document, I wrote this and it worked. XpsDocument myDoc = new XpsDocument(@"C:\Users\Ahmad …
Ahmed Elsayed
  • 57
  • 1
  • 5
1
vote
2 answers

how to open an Offline pdf in ionic 2 application in adobe reader

Trying the below code to open an offline pdf in ionic 2 application but the code is opening a pdf file in cleverdox viewer instead of adobe reader, how could i set adobe reader by default here to make pdf functional. Thanks in Advance. open() …
supriya chauhan
  • 289
  • 1
  • 5
  • 19
1
vote
1 answer

WPF DocumentViewer enable scroll on touch screen for XPS document

When showing an XPS document in the DocumentViewer control of a WPF application it does not allow you to scroll its content on a touch enabled tablet just my moving your fingers over the screen. Instead it selects the text. The only way of scrolling…
juFo
  • 17,849
  • 10
  • 105
  • 142
1
vote
1 answer

WPF DocumentViewer show document as byte array

This might be a silly question, but I was wondering if it's possible to display a document in WPF's DocumentViewer control from a byte array. If not, could someone provide an example of how the control is normally used to display a document? I can't…
Eutherpy
  • 4,471
  • 7
  • 40
  • 64
1
vote
1 answer

DocumentViewer remove the ToolBar drop shadow

I have read lots of topics for removing toolbar or search bar in a DocumentViewer Control but i can't remove the drop shadow effect of the toolbar.. Do you have an idea ? I have looped into children of the control but it's does not work.
1
vote
0 answers

Navigating to specific place in XPS document viewer VB.net

I've spent 2 days trying to find the solution with no luck. I have a XPS file which I am displaying in a document viewer, and what I want to do, is use a variable that I have, to navigate to a certain place in the document within the…
Navvy
  • 237
  • 3
  • 9
  • 23
1
vote
1 answer

How to remove/disable the print button from the DocumentViewer in code (when on its own thread)?

I am running the following code in a background thread as an STA apartment to provide a Print Preview in a document viewer: // Print Preview public static void PrintPreview(FixedDocument fixeddocument) { MemoryStream ms…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
1
vote
1 answer

documentviewer and backgroundworker

Loading and viewing my xps document works just fine but it takes a long time to load the document and as you know it causes the UI to look inactive. XpsDocument xpsDocument = new XpsDocument(@"Resources\maintManual.xps", FileAccess.Read); …
1
vote
1 answer

Display html MemoryStream in DocumentViewer

I'm in C# WPF. I want to create a print function. First I generate a MemoryStream from an XmlDocument: XmlDocument xmlDoc; XslCompiledTransform _xsl; // Initialized before /* creating Doc */ MemoryStream ms = new…
A.Pissicat
  • 3,023
  • 4
  • 38
  • 93
1
vote
0 answers

View collective.documentviewer generated data in collections

Currently it is possible to upload documents to plone4, and when using the collective.documentviewer add-on, uploaded documents will be shown within the view. It is also possible to create a collection within plone, which basically combines a bunch…
1
vote
3 answers

Opening a PDF file from within a WPF application

I have a WPF application in which the GUI displays a few different aspects of the application to the user, using a different tab for each part of the application. I am now looking to add the functionality to load and view document from within the…
Noble-Surfer
  • 3,052
  • 11
  • 73
  • 118