documentviewer

Any Embeddable Document Viewer

丶灬走出姿态 提交于 2019-12-05 21:13:12
I am looking to include a document viewer in my CakePHP application for uploaded docs. I want a viewer that supports Microsoft Word (.DOC and .DOCX), Microsoft PowerPoint (.PPT and .PPTX) and Adobe Portable Document Format (.PDF). I want my users to be able to view the documents, but not download it. Google document viewer is great, but users can just plug the URL into the address bar and download the document. Is there anyway I can share my docs with users just as readable docs? First you must understand that when the user's browser displays some file/content, it is already on the user's

Tooltip on scrollviewer in documentviewer in case of deferred scrolling

a 夏天 提交于 2019-12-05 20:00:42
I want to show the tooltip on my scrollviewer on page scrolling which shows the current page number in it which i asked here- Tooltip on scrollviewer in documentviewer . I have implemented the answer after making some changes in the proposed solution but i face some problem. If i write this in my scroll_changed event if (Mouse.LeftButton == MouseButtonState.Pressed) it works perfectly fine but if i have a deferred scrolling enabled on my custom document viewer, the popup(tooltip) never appears..:( Is there any workaround for it?? 来源: https://stackoverflow.com/questions/5831514/tooltip-on

Disabling text selection in DocumentViewer

不羁的心 提交于 2019-12-05 10:44:41
Simple question. How do you disable the text selection of DocumentViewer in WPF? This is the feature where an XPS document is displayed by the viewer and then text can be highlighted via mouse. The highlighted text can also be copied but I have already disabled this. I just don't know how to disable the highlighting. Thanks! We have solved this by overriding the ControlTemplate of the ScrollViewer embedded in the DocumentViewer control. Insert the Style below in "Window.Resources": <Style TargetType="{x:Type ScrollViewer}" x:Key="CustomScrollPresenter"> <Setter Property="Template"> <Setter

How do I get WPF's DocumentViewer to release its file lock on the source XPS Document?

丶灬走出姿态 提交于 2019-12-04 19:02:19
问题 After showing an XPS file in the WPF DocumentViewer, and closing the DocumentViewer instance, the XPS file is locked and I cannot delete it. I need to release the lock on the XPS file so I can delete it, write another one with the same name, and optionally display that new XPS file in a new DocumentViewer instance. I need to do this in the same app instance - without having to close the app (this is a Print Preview scenario). In other words, how would I get the following code to run without

Highlight all hits in documentviewer

折月煮酒 提交于 2019-12-04 16:04:16
I know that the wpf-documentviewer supports the searching in the documents, if the document is a xpsdocument. The search only highlights one hit after the other. Is it possible to highlight all hits through the search-box? I have the following code to create and set the document of a DocumentViewer-Control: public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); FixedDocument fixedDocument = CreateTestDocument(); this.documentViewer.Document = BuildFixedDocumentSequence(fixedDocument); } private static FixedDocumentSequence BuildFixedDocumentSequence

How do I get WPF's DocumentViewer to release its file lock on the source XPS Document?

我是研究僧i 提交于 2019-12-03 12:40:49
After showing an XPS file in the WPF DocumentViewer, and closing the DocumentViewer instance, the XPS file is locked and I cannot delete it. I need to release the lock on the XPS file so I can delete it, write another one with the same name, and optionally display that new XPS file in a new DocumentViewer instance. I need to do this in the same app instance - without having to close the app (this is a Print Preview scenario). In other words, how would I get the following code to run without throwing an exception at the "File.Delete(tempXpsFile);" statement? var tempXpsFile = @"c:\path\to

WPF: FixedDocument in Visual Studio 2008 Designer

做~自己de王妃 提交于 2019-12-03 09:45:44
问题 It's a well-known bug that Visual Studio shows an error when you try to construct a FixedDocument in XAML. For example, the following snippet <DocumentViewer> <FixedDocument> <PageContent> <FixedPage Width="21.0cm" Height="29.7cm"> <TextBlock>Hello World!</TextBlock> </FixedPage> </PageContent> </FixedDocument> </DocumentViewer> compiles and runs perfectly fine, but Visual Studio shows an error in the error list ( Property 'Pages' does not support values of type 'PageContent'. ) This is quite

WPF: FixedDocument in Visual Studio 2008 Designer

拜拜、爱过 提交于 2019-12-03 01:27:08
It's a well-known bug that Visual Studio shows an error when you try to construct a FixedDocument in XAML. For example, the following snippet <DocumentViewer> <FixedDocument> <PageContent> <FixedPage Width="21.0cm" Height="29.7cm"> <TextBlock>Hello World!</TextBlock> </FixedPage> </PageContent> </FixedDocument> </DocumentViewer> compiles and runs perfectly fine, but Visual Studio shows an error in the error list ( Property 'Pages' does not support values of type 'PageContent'. ) This is quite annoying. I'm looking for a solution that allows me to construct my documents in a XAML file in Visual

Render PDF using DocumentViewer control?

我的梦境 提交于 2019-11-30 15:25:56
Is it possible to render PDF using DocumentViewer (it's WPF control) ? If it is possible then how ? Code example or link to some code example would be appreciated. Thanks for answers. GreyCloud I don't think it is possible with the DocumentViewer - unless you convert to XPS first. There are a few other threads on displaying PDF in WPF: Display a PDF in WPF Application Please suggest a PDF viewer for WPF http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application/ http://www.codeproject.com/KB/applications/PDFViewerControl.aspx 来源: https://stackoverflow.com/questions/3430177

Flash document viewer

早过忘川 提交于 2019-11-30 14:40:15
Is there a flash based document viewer? I am looking for something similar to iPaper that Scribd.com uses. There's a great open source viewer for PDF2SWF: http://www.devaldi.com/?page_id=260 I've used PDF2SWF in the past to do basic document conversion/viewing in Flash: http://www.swftools.org/pdf2swf.html although I don't think they are as full featured as the iPaper and Scribd viewers - although it is entirely free to use. You can download from here: http://www.swftools.org/download.html It allows you to convert any PDF file into a multi-frame swf. You can optionally embed a viewer into the