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
0
votes
1 answer

wpf documentviewer and simple text

I need to dispay text for user before printing and allow to print it. I try to use DocumentViewer, but can't find example to display simple Text. Only Word or XPS, but it's overgear solutions. Is there any way to print simple multiline text throw…
Json76
  • 175
  • 2
  • 13
0
votes
2 answers

ViewerJS not display contents of ODT and ODS files

I just start using ViewerJS before 1 hour. I tried it with PDF, ODS, ODT, ODP, TXT, XML files, But it only supporting PDF and ODS... All other file formats not opening. For ODT and ODP it showing loading file on top... but contents are not coming…
Keval Patel
  • 925
  • 4
  • 24
  • 46
0
votes
1 answer

WPF DocumentViewer throw exception during scrolling

I've the problem, that the WPF-DocumentViewer throws exceptions during scrolling through the document. The document it self was loaded successful and is shown correctly. I get the following error message: Unkown URI-Prefix. The XPS is generated by…
BendEg
  • 20,098
  • 17
  • 57
  • 131
0
votes
1 answer

WPF Documentviewer Document only updating correctly on mouseinput

I have a pretty specific problem with the documentviewer control. Let me explain: I have a documentviewer that is by default in an invisible grid that sits on top of my data-representation. When i press a specific button (generate report, bound to…
0
votes
1 answer

WPF DocumentViewer - Scroll To Page/Position

I have a DocumentViewer which I am setting the Document property to an XPS file var x = new XpsDocument(tempFile, FileAccess.Read); Document = x.GetFixedDocumentSequence(); x.Close(); Having set the document how can I scroll to Page x…
David Ward
  • 3,739
  • 10
  • 44
  • 66
0
votes
0 answers

wpf inherited DocumentViewer and Frame Navigation

I wrote a class that inherits from DocumentViewer public class MyDocumentViewer : DocumentViewer { public bool Landscape{ get; set; } protected override void OnPrintCommand() { // get a print dialog, defaulted to default printer…
Stefan W.
  • 342
  • 1
  • 9
0
votes
1 answer

How to create content rule to print the current document in Plone 4.1.4?

I have created a workflow with a transition 'To print the current document'. I wish to create a content rule to print the current file which is being viewed using collective.document viewer. I do not see any action where I can specify to print the…
user956424
  • 1,611
  • 2
  • 37
  • 67
0
votes
1 answer

WPF DocumentViewer: Switching between windows makes the window as if it has crashed

I have a WPF application with a custom control, based on DocumentViewer. There is a "Print" button, which leads to printer selection dialog. When I select a certain printer ("novaPDF Lite Server v7") and then press the "Print" button, a dialog box…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
0
votes
2 answers

How to use crocdoc in php

I am using crocdoc in php https://github.com/crocodoc/crocodoc-php i downloaded the files in my local i had my API TOKEN so i pasted it there but it doesnt seems to work and throws error shown below for all 15 examples can any one help me here …
Hitesh
  • 4,098
  • 11
  • 44
  • 82
0
votes
1 answer

Custom DocumentPaginator and DocumentViewer WPF

I have a custom DocumentPaginator, that creates a table with some values and repeats table header in the beginning of every page. (Similar as here.) How can i show pages generated by it in DocumentViewr? I believe first i need to create an…
max_hassen
  • 387
  • 1
  • 5
  • 16
0
votes
0 answers

Override ScrollViewer ContentTemplate WPF

I have a custom ScrollViewer template that I use to customize DocumentViewer control.