Search Results for

    Show / Hide Table of Contents

    TFlexCelSVGExport Class

    A component for exporting an Excel file to an SVG (Scalable Vector Graphics) image.

    Syntax

    Unit: FlexCel.Render

    TFlexCelSVGExport = class(TFlexCelObject);

    Fields

    Name Description
    FCompress If true, the file will be compressed. This property is just for derived classes, for normal cases use Compress

    Constructors

    Name Description
    Create Overloaded
    Create
    Create(TExcelFile)
    Create(TExcelFile, Boolean)

    Methods

    Name Description
    TotalPagesInSheet Returns the number of pages that the active sheet will use when exported to SVG.
    SaveAsImage Saves the current Excel file on an SVG image stream.

    Properties

    Name Description
    Workbook The ExcelFile to print.
    Compress When true, the pdf file will be compressed.
    HidePrintObjects Select which kind of objects should not be printed or exported to the image.
    ExportSheetBackground​Images If false (the default) then the background images in the sheet won't be exported. Note that Excel doesn't print or export background images, and when it shows them on the screen they look the same no matter the sheet zoom.
    When you set this to true we will try to export the image, but it will grow and shrink when you zoom, making it look different from what Excel shows.
    RasterizeSVGImages If false (the default) then FlexCel will export SVG images inside the Excel file as SVG images inside the generated SVG.
    If true, FlexCel will convert the SVG images to PNG and embed the PNG inside the SVG. This might be more accurate specially if the embedded SVG uses fonts that might not be present in the client machine. See S V G Files Inside Xlsx Files for more information.
    PrintRangeLeft First column to print (1 based). if this or any other PrintRange property is 0, the range will be automatically calculated.
    PrintRangeTop First row to print (1 based). if this or any other PrintRange property is 0, the range will be automatically calculated.
    PrintRangeRight Last column to print (1 based). if this or any other PrintRange property is 0, the range will be automatically calculated.
    PrintRangeBottom Last row to print (1 based). if this or any other PrintRange property is 0, the range will be automatically calculated.
    PageSize Image page size. Set it to null to use the paper size on the xls file.
    AllowOverwriting​Files Determines if FlexCel will automatically delete existing image files or not.
    AllVisibleSheets If true, all visible sheets on the workbook will be printed. See ResetPageNumber​OnEach​Sheet for behavior of the page number when printing multiple sheets.
    ResetPageNumber​OnEach​Sheet This property only makes sense when AllVisibleSheets is true. On that case, if this property is true each sheet of the workbook will have the page number reset. For example if the xls file has 2 sheets and each has 3 pages: When ResetPageNumber​OnEach​Sheet = true then footers will look like "Page 1 of 3". If false, they will look like "Page 5 of 6"
    ExportType How much of the svg will be exported.
    Encoding Encoding used to generate the SVG file. If null, UTF8 without BOM will be used.
    IdPrefix Prefix to be used in all definitions inside the svg file. For normal SVG files you can leave this null, but if you are embedding the files inside an html file, you need to ensure every image has unique identifiers.
    All SVG identifiers from different images inside an html file must be unique.
    LinksInNewWindow IF true, links will be exported to open in a new window. (using the show=new attribute in svg links)
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com