ARTICLE

AJAX Document Management - AJAX Document Viewer

Posted by Christopher Krause Articles | ASP.NET AJAX in VB.NET December 20, 2006
AJAX (Asynchronous JavaScript and XML), is a web development technique for creating interactive web applications. The intention of AJAX is to exchange small pieces of data with the server without the necessity of reloading the entire web page.
Reader Level:

Forms are an essential part of many business or administration processes: Tax declarations, travel expense reports or an annual budget request. They offer a simple means of structuring data entered by an end user.

More and more frequently nowadays, companies and governments are using the Internet to deploy web-based applications and services. Forms are published on the Internet, thus making them available for download to potential applicants.

An ASP.NET 2.0 sample implementation of The Imaging Source illustrates how to display a document in the browser, without any plug-ins, such as Acrobat Reader or an MS Word viewer. In this web-based application, TX Text Control .NET Server is used as the central document engine to create images from single pages of the document. These optimized images are displayed in the browser, thus enabling the end user to see a preview of the document.

Responsive interfaces with AJAX

AJAX technology (shorthand for Asynchronous JavaScript and XML) enables developers to create more interactive web interfaces. Web pages deploying AJAX feel more responsive, as the entire page does not have to be completely reloaded with every interaction. This sample application uses AJAX to provide the user a rich featured document viewer.

The end user is able to open a specific document from a list of files. After opening a document, s/he can browse through all pages at varying zoom levels. Additionally, it is possible to search within the current page. The search results are highlighted in yellow throughout the document. The complete document can be downloaded as an Adobe PDF file, an MS Word, or RTF document.

Technically, TX Text Control .NET Server is getting a request from the client via AJAX JavaScript. It creates an image of the current page and returns the image path and some additional information, such as the total number of pages of the selected document. Thanks to AJAX, this data can be updated on-the-fly, without having to reload the complete HTML page. The AJAX technology enables this kind of interface and makes this document viewer really usable.

This document viewer is another sample that illustrates the flexibility of TX Text Control .NET Server. It can be used as a core component in all kind of word processing processes. TX Text Control .NET Server can be used to create images from the document pages, to convert documents or to create complete forms server-side.

Find a out more about the AJAX Document Viewer here.

NOTE: THIS ARTICLE IS CONVERTED FROM C# TO VB.NET USING A CONVERSION TOOL. ORIGINAL ARTICLE CAN BE FOUND ON C# CORNER (http://www.c-sharpcorner.com/).

share this article :
post comment
 
Nevron Diagram
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Nevron Diagram
Become a Sponsor