Guide for C#
Save or Print Document
Core Document Formats
Additional Features

C# Imaging - Save or Print Doc/Image in Web Viewer

.NET Web Viewer Allows C# Developers to Save, Convert and Print Image or Doc

Visual C#
VB.NET
Home > .NET Imaging SDK > C# > Save or Print Document in Web Viewer

"This online guide content is Out Dated!
    Please get the latest XDoc.HTML5 Viewer C# Developer Guide here.
"

RasterEdge Web Viewer DLL for C#.NET excels in web document and image viewing, annotating and redacting. In addition, after all these operations, C# users are capable of saving all changes on document or image in its original file format, converting it to PDF or TIFF file, and then printing it out. And on this page, these aspects will be discussed detailedly.
Related .net document control helps:
asp.net mvc text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net tiff viewer control: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net open word document in browser: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net document viewer control: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net edit pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net excel web viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
Document and Image Saving in C# Web Viewer
After you viewing, annotating and redacting loaded web viewer document or image, you can easily save the changes to the file in its original format. In all, commonly used documents and images are supportive by our C#.NET Web Viewer DLL Library, including documents TIFF, PDF, Excel, Word, PowerPoint, Dicom and images Bitmap, PNG, GIF, JPEG, JPEG2000 and JIBIG2.
In your C# web application, you may find the following code in the Default.aspx.cs file.
string fileName = Request.Form["saveFileName"];
string fid = Request.Form["Fid"];
Response.Clear();
Response.Write(fileName);
Response.End();
This C#.NET code snippet is user-defined. FileName is the preserved file name combined with path on the server namely RasterEdge_Cache/fid/output/fileName. RasterEdge WebViewer will open this document with browser after saving the file. C# developers can modify the code according to own needs.
If you run the C#.NET project webviewer sample in download package, you will have better understanding about file saving in web viewer. In details, by clicking save button on viewer, your loaded web document or image will be saved on above mentioned path on server. And you can have access to the saved file based on the file path and then do further manipulation.
Document and Image Printing in C# Web Viewer
If you have the need of printing web document or image, then our C#.NET Web Viewer SDK also helps with this. During the process, your web file will be automatically convert to PDF or TIFF file and then be printed out.
  • Please make sure there's a printer hard driver installed on your computer. Then, your C# web project document or image can be directly transmitted to the printer.
  • If there's no printer connected or your web browser doesn't support document or image printing, you can only preview it on web viewer in PDF or TIFF format.
Other C# Online Guides for Web Viewer
You may directly refer to other C# tutorials for how to use .NET Web Viewer DLL by clicking on the following links.


Recommend this to Google+


RasterEdge.com 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-2017 Raster Edge.com