How to C#: Preview Document Content Using XDoc.Excel
Overview for How to Use XDoc.Excel to preview document content without loading entire document in C# .NET Programming Project
RasterEdge XDoc.Excel provide you with APIs to get a thumbnail bitmap of the first page in the Excel document file. You can be able to get a preview of this Excel document without loading or processing the entire document in memory.
convert pdf to word c#,
vb.net pdf generator free,
extract images from pdf c#,
vb.net add text to pdf,
pdf to jpg c# open source,
data matrix code c#.
With the SDK, you can preview the document content according to the preview thumbnail by the ways as following.
Related .net document control helps:
asp.net image viewer jquery: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
asp.net annotate pdf control:
ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net sharepoint document viewer free: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net display tiff images: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net edit pdf page control:
ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net pdf viewer control free: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
C# DLLs: Preview Excel Document without Microsoft Office Installed
Add necessary references:
itextsharp read pdf fields vb.net,
how to add header and footer in pdf using itextsharp in c# with example,
c# convert pdf to bmp,
convert powerpoint to pdf c# interop,
c# draw rectangle on pdf,
c# itextsharp add image to pdf,
c# pdf add background.
RasterEdge.Imaging.Basic.dll
RasterEdge.XDoc.Office.Inner.Common.dll
RasterEdge.Imaging.Drawing.dll
RasterEdge.Imaging.Processing.dll
RasterEdge.XDoc.Office.Inner.Office03.dll
RasterEdge.Imaging.Font.dll
RasterEdge.XDoc.Excel.dll
RasterEdge.XImage.Raster.Core.dll
RasterEdge.XImage.Raster.dll
Using namespaces:
using RasterEdge.Imaging.Basic;
using RasterEdge.XDoc.Excel;
Get Preview From File
You may get document preview image from an existing Excel file in C#.net.
asp.net show excel file in browser,
asp net show word document in browser,
asp.net pdf viewer control,
pdf editor asp.net,
display pdf in iframe mvc,
free asp.net tiff viewer,
asp.net pdf preview.
// Get document preview from Excel file
String inputFilePath1 = Program.RootPath + "\\" + "1.xlsx";
Size size = new Size(200, 200);
Bitmap bmp = XLSXDocument.GetPreviewImage(inputFilePath1, size);
if (bmp == null) throw new Exception("fail to load the document preview");
// ...
|
Get Preview From Stream
You may get document preview image from stream object in C#.net.
// Get document preview from stream object
String inputFilePath1 = Program.RootPath + "\\" + "1.xlsx";
Stream stream = File.Open(intputFilePath, FileMode.Open);
Size size = new Size(200, 200);
Bitmap bmp = XLSXDocument.GetPreviewImage(stream, size);
if (bmp == null) throw new Exception("fail to load the document preview");
// ...
|
Get Preview From Byte Array
You may get document preview image from byte array object in C#.net.
// Get document preview from byte array object
String inputFilePath = Program.RootPath + "\\" + "1.xlsx";
Size size = new Size(200, 200);
Stream stream = File.Open(inputFilePath, FileMode.Open);
byte[] array = new byte[stream.Length];
stream.Read(array, 0, array.Length);
Bitmap bmp = XLSXDocument.GetPreviewImage(inputFilePath1);
if (bmp == null) throw new Exception("fail to load the document preview");
// ...
|