.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

XPS, the WPF Document Viewer and extending the WPF Annotation framework

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :WPF

Hi all,

I'm in the design phase of a project at the moment and the client wants a desktop app they can use to view and annotate "any" type of document. I've been doing some research into the WPF document viewer and XPS documents and it seems like a perfect fit because using the XPS document writer, you can print anything to an xps document and easily view it in your WPF app. I've tested this with a few different document types (PDF, web pages, word documents, etc etc) and the results have been very impressive. I wanted to stay away from the Adobe PDF reviewing tool, because dealing with their APIs is likely to be difficult and I wanted to design an all-MS solution if possible.


Another major advantage of XPS is that we can use the WPF annotation framework (System.Windows.Annotations), but my problem is that this framework is a good start, but the client is going to want richer features that the framework doesn't provide, like the following:


·         Ability to draw rectangles o

View Complete Post

More Related Resource Links

Document viewer on a documents Library & Tooltip Bubble on rollover

Hi everybody,
1 - I would like to know, if in Sharepoint 2007 ECM part (Documents Library), there's a downloadable webpart or an application to create a document viewer (pdf, doc, xls, msg...) in an iframe when you point the mousse over a document or something like that...
If it doesn't exist do you have in mind a code sample which can make something like that ? thank you.

2 - It's possible in a documents library to activate balloon tooltips which show us metas of the document (on mousse over), like an option or an application...

Thank you very much.
All the best.
Go I.T.

Extending the Datata Annotation RangeAttribute

Has anyone extended the Range attribute to be able to have a variable range?I have a similar need but I can't make this work:    public class YearRangeAttribute : RangeAttribute        {            public YearRangeAttribute()                : base(typeof(DateTime), DateTime.Now.AddYears(-100).Year.ToString(), DateTime.Now.AddYears(-14).Year.ToString()) { }            }There is nothing on the page when it is rendered to the browser and the code above doesn't work. Any ideas?TIA

document library item viewer

Hi all, How we can make a document library item viewer? More like the document viewer. I have several file extension in a document library: eml, doc, and tiff. I want to put the viewer in the search result page. so when a user click 1 row it will show the item preview, no matter the extension.Best regards, -- Pingkan --

Customize WPF document viewer footer

Hello, Could some one please point me to an article or help me with some information on how to customize the test search bar part of the document viewer control. I want to change it to contain a text box which will contain current page number in a total number of pages. And also a combo box used to show as well as modify the zoom level of the file. TIA.   Regards, Gokul

Extending Document ID Timer Service

I really like new Document ID feature, but I am wondering if the Document ID generation algorithm could be extended. For example, a potential customer might want to generate these IDs in a special sequence or using some special algorithm according to government regulations or something else.

How to show a "document map" in reporting services 2005 report viewer


Hi there,

I am wondering how to show a "document map" in reporting services 2005 report viewer. Under


it is stated that there should be a document map icon that I can click on to show my report map but this icon does not exist. Is there anything I have to do to enable it?

Best wishes



Office document viewer in Winforms


Hi everyone,

I want to open and display office document (word, excel and ppt) in a control in a Winforms.

With PIA, I manage to open a document in a new window. But, I want this windows embedded in my winforms application.

Any ideas?



How to modify Add New Document link in a OOB list viewer webpart


Hi All,

I am using an OOB List viewer webpart to show a document library in a webpart page.

I am getting this link at the end "Add new Document". I would like to customize this link to show some other text.

Can anyone help me in this? Any hint will be highly appreciated.


Rahul Rashu

Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

Creating a Generic Entity Framework 4.0 Repository

With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

Business Modelling and Web Applications and extending UML

UML can be used to model a business, prior to automating it with computers. The same basic UML syntax is used, however, a number of new symbols are added, in order to make the diagrams more relevant to the business process world. A commonly-used set of these symbols is available in current versions of Rational Rose.

ASP.NET 4.0 Dynamic Data and Many to Many Entity Framework Entities

I did not play much with Dynamic Data controls in VS2008 and just made a cool discovery in VS2010 Beta 2. This may not even be new, but as I'm sitting 30,000+ feet over the Atlantic ocean, I don't have access to VS2008 at the moment to check.

SharePoint Document Workspaces for Developers

Office 2003 is being released this month, and a cast of supporting applications is already available. One of these is Windows SharePoint Services 2.0, the free team add-on for Windows Server 2003. If you're not familiar with SharePoint Services basics, take a look at What Developers Need to Know About Windows SharePoint Services. In this article, I'm going to drill into one key place where SharePoint and Office 2003 overlap: document workspaces

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

SharePoint document migration challenges when migrating files and folders

There are several challenges when migrating documents to Microsoft SharePoint. While these challenges can be overcome, they are a real pain if the migration source, content and file systems are not SharePoint friendly.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend