Options to use when loading CSV files.
public class CodecsCsvLoadOptions Public Class CodecsCsvLoadOptions public:ref class CodecsCsvLoadOptions
CSV files have no physical width or height in pixels but you can use the CodecsRasterizeDocumentOptions to control how the final document is rendered as a raster or SVG image. For more information, refer to CodecsRasterizeDocumentLoadOptions.
LEADTOOLS renders CSV files as a table with rows and cells. CodecsCsvLoadOptions contains properties to control the font, color, and size of the output.
using Leadtools;using Leadtools.Codecs;public static void CodecsCsvOptions_Example(){string csvFileName = Path.Combine(LEAD_VARS.ImagesDir, "sample.csv");string pngFileName = Path.Combine(LEAD_VARS.ImagesDir, "sample-csv.png");using (RasterCodecs codecs = new RasterCodecs()){// Change some CSV optionsCodecsCsvLoadOptions csvOptions = codecs.Options.Csv.Load;csvOptions.HeaderFontItalic = true;csvOptions.BodyFontName = "Arial";csvOptions.TableBorderColor = RasterColor.FromKnownColor(RasterKnownColor.Red);// Load the first page from a CSV fileusing (RasterImage image = codecs.Load(csvFileName, 1)){// Save it as PNGcodecs.Save(image, pngFileName, RasterImageFormat.Png, 0);}}}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS21\Resources\Images";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
