Guide for C#
Core Document Formats
Mobile Viewer
Additional Features

C# Word - Create Word Mobile Viewer

View, Process and Save Word Document within C# Word Mobile Viewer

Visual C#
Home > .NET Imaging SDK > C# > Create Word Mobile Viewer
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

With this .NET, C#.NET Imaging Viewer SDK integrated into your program, developers and end users are enabled with the abilities to create Word document mobile viewer in C# project for viewing & loading MS Word doc, navigating Word through different pages, adding annotation in docx page, processing & editing, saving and printing Word document in mobile devices. compress tiff image c#, how to add page numbers in pdf using itextsharp c#, c# convert pdf to jpg, c# create editable pdf, c# pdfsharp compression, c# combine tiff files into one.
Related .net document control helps: document viewer control: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS... annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C# mvc text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint tiff viewer control: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control edit pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C# edit pdf text color: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
This viewer is just a part of the RasterEdge .NET Image SDK, a complete and mature image processing library toolkit, which includes several powerful component DLLs for image manipulation (jpeg, png, gif, bmp and tiff); PDF, Microsoft Word and multi-page TIFF document processing & editing. pdf to jpg, pdf to tiff converter, c# populate pdf form fields, c# print windows form to pdf, edit pdf, c# itext combine pdf, c# pdfsharp table. To build this Word mobile viewer, you will use most of the libraries mentioned for the powerful functions for the viewer.
In this tutorial article, you can learn how to build a C# mobile viewer for MS Word through the following sections:
  • Word mobile viewer feature list for Visual C#.NET
  • How to create Word mobile viewer in Visual C#.NET application
  • More C# user manuals for Word doc image processing in .NET projects
If you are not interested in building a Word mobile viewer, perhaps you are looking for tutorials to create a Web viewer or Windows viewer for Microsoft Office Word document. RasterEdge provides you with detailed guide & complete Visual C# sample codes for C# imaging Word web viewer creation and C# imaging Word Windows viewer creation. Please go to corresponding pages to get more details.
C#.NET Word Mobile Viewer Feature List
Create Word Mobile Viewer in C#.NET Imaging
Before getting started with building your own Word document mobile viewer, you need to download RasterEdge DocImage SDK for .NET package first and finish license activation. Here is the detailed user guide to activate .NET Imaging SDK license. In addition, please make sure that you have installed Microsoft Visual Studio 2005/2008/2010 and .NET Framework 2.0 or greater. When all the preparation is done, you can start now by following the detailed guiding steps below:
  1. Create a Visual C# Website project in Visual Studio 2005 and name it "WebFormWordMobileViewerDemo";
  2. Add all the following assemblies to your project by right-clicking "Add Reference...";
    • RasterEdge.Imaging.Annotation.dll
    • RasterEdge.Imaging.Basic.dll
    • RasterEdge.Imaging.Drawing.dll
    • RasterEdge.Imaging.TIFF.dll
    • RasterEdge.Imaging.Processing.dll
    • RasterEdge.Imaging.WebViewer.dll
    • RasterEdge.Imaging.TWAIN.dll
  3. Copy package folder "RasterEdge_Imaging_Files" to the Website Application you have created previously;
  4. Add "RasterEdge.css" and "RasterEdge.js" to Visual Studio "Default.aspx" head tag:
    <link href="RasterEdge_Imaging_Files/RasterEdge.css" rel="stylesheet" type="text/css"/>
    <script src="RasterEdge_Imaging_Files/RasterEdge.js" type="text/javascript"></script>
  5. Copy package folder "Demo_Docs" to the created website project folder;
  6. Add a new Web.Config: right click "Add New Item...", click "Web Configuration File", and name it "Web.config";
  7. Copy package file "Web.config" content to the created Web.config;
  8. Replace the content of created website Default.aspx with corresponding content of the downloaded package Default.aspx;
  9. Add "REWebViewer" to Visual Studio "Toolbox" under "General" tab: right-click in "General" tab, select "Choose Items...", select "Browse" in the popup window, locate and select "RasterEdge.Imaging.WebViewer.dll";
  10. Drag "REWebViewer" into Defaul.aspx and drop:
    <div id="_tblImgs" style="width:100%" > <cc1:REWebViewer ID="REWebViewer1" runat="server" />
  11. In Default.aspx.cs, please set "fileUrl" and add "ImageUrl", "DocWidth", "DocHeight", "ThumbWidth", "ThumbHeight" to the above REWebViewer1. See as below:
    public string FileUrl;
    public string SessionId;
    public float ThumbHeight = 100;
    public float ThumbWidth = 80;
    public float DocHieght = 640;
    public float DocWidth = 819;
    protected void Page_Load(object sender, EventArgs e)
    this.FileUrl = Server.MapPath("./Demo_Docs/").Replace("\\", "/") +
    this.SessionId = Session.SessionID;
    this.REWebViewer1.ImageUrl = FileUrl;
    this.REWebViewer1.DocWidth = DocWidth;
    this.REWebViewer1.DocHeight = DocHieght;
    this.REWebViewer1.ThumbWidth = ThumbWidth;
    this.REWebViewer1.ThumbHeight = ThumbHieght;
    this.REWebViewer1.Rnd = SessionId;
  12. In Default.aspx, add a reference to the path in JavaScript like below:
    <script type="text/javascript">
    _fileUrl = "<%=FileUrl%>";
    _docWidth = "<%=DocWidth%>";
    _docHeight = "<%=DocHieght%>";
    _thumbWidth = "<%=ThumbWidth%>";
    _thumbHeight = "<%=ThumbHieght%>";
    _rnd = "<%=SessionId%>";
    TextAnnoStyle = new AnnoStyle({FillColor: "White", ShowedText: "double click to
    , TextColor: "Black", TextFont: "Arial", TextSize: 12, TextStyle :"Italic"});
    FreehandAnnoStyle = new AnnoStyle({OutLineColor: "Red", OutLineWidth: 3.0});
    HighlightAnnoStyle = new AnnoStyle({FillColor: "Yellow"});
    RectangleAnnoStyle = new AnnoStyle({OutLineColor: "Black", OutLineWidth: 3.0});
    FilledRectangleAnnoStyle = new AnnoStyle({OutLineColor: "Black", OutLineWidth:
    3.0, FillColor: "Black"});
    EllipseAnnoStyle = new AnnoStyle({FillColor: "Pink"});
    RubberStampAnnoStyle = new AnnoStyle({OutLineColor: "Bule", OutLineWidth: 3.0,
    FillColor: "Red", ShowedText: "Stamp annotation can show text here", TextColor: "DarkBule",
    TextFont: "Arial", TextSize: 12, TextStyle: "Italic"});
    PolygonLinesAnnoStyle = new AnnoStyle({OutLineColor: "Red", OutLineWidth: 3.0});
    PolygonAnnoStyle = new AnnoStyle({OutLineColor: "OrangeRed", OutLineWidth: 3.0,
    FillColor: "OrangeRed"});
    LineAnnoStyle = new AnnoStyle({OutLineColor: "Red", OutLineWidth: 3.0});
  13. Now you have successfully created a C# Mobile Viewer for Microsoft Word document.
See More C# MS Word Tutorials

Recommend this to Google+ is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2024 Raster