ActiveReports 18 .NET Edition
Developers / Create Designer and Viewer Applications / ASP.NET WebViewer Application / Customize Export Settings
In This Topic
    Customize Export Settings
    In This Topic

    The export settings in the export panel of WebViewer (HTML) can now be preset via code as well as from the Properties panel in the design view of the viewer. The topic provides a complete description of the properties and the code sample of each of these. Along with presetting the export panel, the export settings can also be selectively opted to be hidden from the panel.

    Excel 2003 (.xls)

    Name Type Description
    Both rdlx and rpx
    MultiSheet Boolean

    Indicate whether to generate single-sheet or multi-sheet Excel document. Default for rpx is 'False' and rdlx is 'True'.

    SheetName String The name of the Excel sheet. Default is 'Sheet'.
    UseDefaultPalette Boolean

    Indicate whether to export the Excel document with Excel default palette.

    Remark:

    Setting this value to 'True', the application will use the color which is in default palette and is closest to pre-defined custom color of the control's fore color and back color. Default is 'False'.

    Orientation Default|Portrait|Landscape The orientation of the Excel document pages, to be printed in portrait or landscape.
    PaperSize Default|Letter|LetterSmall|Tabloid|
    Ledger|Legal|Statement|Executive|
    A3|A4|A4Small|A5|B4|B5
    Size of the Excel document.
    Password String The password required to open the Excel document.
    ProtectedBy String User Name responsible to password protect the Excel document.
    ReadOnlyRecommended Boolean

    Indicate if the Excel document was saved as read only recommended. Default is 'False'.

    WritePassword String The password required to edit the document.
    FileName String Name of the Excel document.
    Only rpx
    FileFormat Xls97Plus|Xls95 The file format version the exported Excel document should support. Default is 'Xls97Plus'.
    AutoRowHeight Boolean Indicate whether to set the row heights in the Excel document according to the content in the rows. Choose carefully since it may affect pagination. Default is 'False'.
    DisplayGridLines Boolean Indicate whether to display grid lines in the Excel document. Default is 'True'.
    Pagination Boolean Indicate if pagination should be used for the resulting Excel document. Default is 'True'.
    Only rdlx
    EnableToggles Boolean Indicate whether to export toggles from table details or groups to collapsible rows. Default is 'False'.
    LayoutMode Galley (default)|Paginated The layout mode to use for the exported Excel document.
    RightToLeft Boolean Indicate whether to show the mirror image of sheets, that is, if sheets should be exported right to left. Note that content is not mirrored. Default is 'False'.

    Customizing .xls Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication4.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <XlsExportSettings>    
                        <%-- only rdlx --%>
                        <FileFormat Value="Xls97Plus" />
                        <EnableToggles Value="True" />
                        <LayoutMode Value="Galley" />
                        <%-- only rpx --%>
                         <%-- both (rdlx and rpx) --%>
                        <MultiSheet Value="False" />
                        <SheetName Value="Sheet_xls" />
                        <UseDefaultPalette Value="True" />
                        <Orientation Value="Landscape" />
                        <PaperSize Value="A5" />
                        <AutoRowHeight Value="True" />
                        <DisplayGridLines Value="True" />
                        <Pagination Value="False" />
                        <RightToLeft Value="False" />
                        <Password Value="123456" />
                        <ProtectedBy Value="USER" />
                        <ReadOnlyRecommended Value="True" />
                        <WritePassword Value="1234567" />
                        <FileName Value="ar" />
                    </XlsExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    Excel (.xlsx)

    Name Type Description
    Both rdlx and rpx
    MultiSheet Boolean Indicate whether to generate single-sheet or multi-sheet Excel document. Default for rpx is 'False' and rdlx is 'True'.
    SheetName String The name of the Excel sheet. Default is 'Sheet'.
    UseDefaultPalette Boolean

    Indicate whether to export the Excel document with Excel default palette.

    Remark:

    Setting this value to 'True', application will use the color which is in default palette and is closest to the predefined custom color of the control's fore color and back color. Default is 'False'.

    OutputFormat Transitional|Strict
    UseCompression Boolean Indicate whether to use compression on exporting with Xlsx file format. Default is 'True'.
    Orientation Default|Portrait|Landscape The orientation of the Excel document pages, to be printed in portrait or landscape.
    PaperSize Default|Letter|LetterSmall|Tabloid|
    Ledger|Legal|Statement|Executive|
    A3|A4|A4Small|A5|B4|B5
    Size of the Excel document.
    Password String The password required to open the Excel document.
    ProtectedBy String User Name responsible to password protect the Excel document.
    ReadOnlyRecommended Boolean Indicate if the Excel document was saved as read-only recommended. Default is 'False'.
    WritePassword String The password required to edit the document.
    FileName String The name of the Excel document.
    Only rpx
    AutoRowHeight Boolean Indicate whether to set the row heights in the Excel document according to the content in the rows. Choose carefully since it may affect pagination. Default is 'False'
    DisplayGridLines Boolean Indicate whether to display grid lines in the Excel document. Default is 'True'.
    Pagination Boolean Indicate if pagination should be used for resulting Excel document. Default is 'True'.
    OpenXmlStandard Transitional (default)|Strict The level of Open XML document conformance on exporting in Xlsx file format. The Excel document generated using Strict cannot be viewed on iOS devices.
    Only rdlx
    EnableToggles Boolean Indicate whether to export toggles from table details or groups to collapsible rows. Default is 'False'.
    LayoutMode Galley|Paginated The layout mode to use for the exported Excel document.
    RightToLeft Boolean Show sheets right to left to show mirror image of sheets. Note that content is not mirrored. Default is 'False'.

    Customizing .xlsx Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <XlsxExportSettings>
                        <OutputFormat Value="OpenXmlStrict" />
                        <UseCompression Value="False" />
                        <OpenXmlStandard Value="Strict" />
                        <EnableToggles Value="True" />
                        <MultiSheet Value="True" />
                        <LayoutMode Value="Galley" />
                        <SheetName Value="Sheet_xlsx" />
                        <UseDefaultPalette Value="True" />
                        <Orientation Value="Landscape" />
                        <PaperSize Value="A5" />
                        <AutoRowHeight Value="True" />
                        <DisplayGridLines Value="False" />
                        <Pagination Value="False" />
                        <RightToLeft Value="True" />
                        <Password Value="123456" />
                        <ProtectedBy Value="USER" />
                        <ReadOnlyRecommended Value="True" />
                        <WritePassword Value="123456" />
                        <FileName Value="ar_xlsx" />
                    </XlsxExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    Word 2003 (.doc)

    Export to Word 2003 is available for Page and RDLX reports only.

    Name Type Description
    Author String The name of the author of the Word document.
    BaseHref String The Base Url for the relative hyperlinks used in the Word document.
    Generator String The identity of the generator of the Word document.
    PageHeight Integer The height of the page of the Word document.
    PageWidth Integer The width of the page of the Word document
    Title String The title of the Word document.
    FileName String The name of the Word document.

    Customizing .doc Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <DocExportSettings>
                        <Author Value="USER" Visible="True" />
                        <BaseHref Value="www.com" Visible="True" />
                        <Generator Value="Created by USER" Visible="True" />
                        <PageHeight Value="10" Visible="True" />
                        <PageWidth Value="5" Visible="True" />
                        <Title Value="TITLE_01" Visible="True"></Title>
                        <FileName Value="ar_doc" Visible="True" />
                    </DocExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    Word (.docx)

    Export to Word is available for Page and RDLX reports only.

    Name Type Description
    Author String The name of the author of the Word document that appears in Word document properties.
    CompanyName String The name of the company to appear in the Word document properties.
    DocumentCompatibilityVersion Word2007|Word2010|Word2013 (default) The version in which the Word document should open.
    DpiX Integer The horizontal resolution of the custom report items. Default is '96'.
    DpiY Integer The vertical resolution of the custom report items. Default is '96'.
    Title String The title of the Word document that appears in the Word document properties.
    TOCAutoUpdate Boolean Indicate whether macros are inserted in the document to automatically update the TOC control on opening the Word document. Default is 'False'.
    Orientation Default|Portrait|Landscape The orientation of the Word document.
    PaperSize Default|Letter|LetterSmall|Tabloid|
    Ledger|Legal| Statement|Executive|
    A3|A4|A4Small|A5|B4|B5
    The size of the Word document.
    Password String The password required to open the document.
    ReadOnlyRecommended Boolean Indicate if the Word document was saved as read only recommended. Default is 'False'.
    WritePassword String The password required to edit the Word document.
    FileName String The name of the Word document.

    Customizing .docx Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <DocxExportSettings>
                        <Author Value="USER" />
                        <CompanyName Value="USER_COMPANY" />
                        <DocumentCompatibilityVersion Value="Word2010" />
                        <DpiX Value="80" />
                        <DpiY Value="80" />
                        <Orientation Value="Landscape" />
                        <PaperSize Value="A5" />
                        <Password Value="123456"  />
                        <ReadOnlyRecommended Value="True" />
                        <WritePassword Value="123456" />
                        <Title Value="TITLE_01" Visible="True"></Title>
                        <TOCAutoUpdate Value="True" />
                        <FileName Value="ar_docx" />
                    </DocxExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    PDF (.pdf)

    Name Type Description
    Both rdlx and rpx
    Title String The title of the PDF document that appears in the document meta data.
    Author String The name of the author of the PDF document that appears in the document meta data.
    Subject String The subject of the PDF document displayed that appears in the document meta data.
    Keywords String The keywords associated with the document that appear as the document meta data.
    Application String The string value for the 'Application' field that appears in the document meta data.
    EmbedFonts Partial (default)|All|None Indicate how the fonts used in the report should be embedded in the PDF document.
    Version

    PDF-1.2|PDF-1.3|PDF-1.4 (default)|PDF-1.5|
    PDF-1.6|PDF-1.7|PDF-2.0|PDF/A-1a|PDF/A-1b|PDF/A-2a|
    PDF/A-2b|PDF/A-2u|PDF/A-3a|PDF/A-3b|PDF/A-3u|PDF/UA-1

    The version of the PDF format the exported document is saved in.
    UserPassword String The password required to open the document.
    OwnerPassword String The owner password to be entered in the PDF reader that permits full access to the document regardless of the specified user permissions
    Encrypt Boolean The value indicating whether the document is encrypted or not. Default is 'False'.
    FileName String The name of the PDF document.
    Only rpx
    ConvertMetaToPng Boolean Indicate whether Windows metafiles are converted to PNG files in the exported PDF document. Default is 'False'.
    ExportBookmarks Boolean Indicate whether bookmarks are exported to the PDF document. Default is 'True'.
    ImageInterpolation None (default)| Auto The image interpolation value.
    ImageQuality Medium (default)|Lowest|Highest The quality used for any images that are converted by ActiveReports. Note that if a JPG image is used in the report, it is written directly to PDF without any conversion. Other image formats may incur a conversion, which this value will affect.

    Customizing .pdf Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <PdfExportSettings>
                        <Title Value="Document"></Title>
                        <Author Value="USER" />
                        <Subject Value="PDF1" />
                        <Keywords Value="PDF export" />
                        <Application Value="AR" />
                        <EmbedFonts Value="All" />
                        <Version Value="Pdf15" />
                        <UserPassword Value="userpsswd" />
                        <OwnerPassword Value="ownerpsswd" />
                        <Encrypt Value="True" />
                        <ConvertMetaToPng Value="True" />
                        <ExportBookmarks Value="False" />
                        <ImageInterpolation Value="Auto" />
                        <ImageQuality Value="Highest" Visible="False"/>
                        <FileName Value="ar_pdf" Visible="False"/>
                    </PdfExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    CSV (.csv)

    Export to CSV is available for Page and RDLX reports only.

    Name Type Description
    ColumnsDelimiter (default)|. The text to be placed between fields in data row.
    Encoding Unicode (UTF-8) (default)|US-ASCII|Unicode The encoding schema for the output.
    NoHeader Boolean Indicate whether CSV Header should be omitted. Default is 'False'.
    QuotationMode Auto quote (default)|Always quote The quotations to be added on the exported values, whether to quote only simple values or all exported values.
    QuotationSymbol " (default)|\ The quotation symbol or the qualifier character to put around the results.
    RowsDelimiter \r\n (default)|\\r\\n\\r\\n

    The string to be placed between data rows.

    DateTimeFormat String

    Default format for date time values, for example 'MM/dd/yyyy H:mm'.

    NumericFormat String Default format for numeric values, for example '0.####'.
    FileName String The name of the CSV document.

    Customizing .csv Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <CsvExportSettings>
                        <DateTimeFormat Value="MM/dd/yyyy H:mm" Visible="True" />
                        <NumericFormat Value="money" Visible="True" />
                        <ColumnsDelimiter Value="." Visible="True" />
                        <Encoding Value="us_ascii" Visible="True" />
                        <NoHeader Value="True" Visible="True" />
                        <QuotationSymbol Value="\'" Visible="True" />
                        <QuotationMode Value="AlwaysQuote" Visible="True" />
                        <RowsDelimiter Value="\\r\\n\\r\\n" Visible="True" />
                        <FileName Value="ar_CSV" Visible="True" />
                    </CsvExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    JSON (.json)

    Export to JSON is available for Page and RDLX reports only.

    Name Type Description
    Formatted Boolean Indicate if the file name should be formatted with tabs and spaces for readability. Default is 'True'.
    QuotePropertyNames Boolean Indicate if the property names should be enclosed in quotation marks. Default is 'False'.
    FileName String The name of the JSON document.

    Customizing .json Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <JsonExportSettings>
                        <Formatted Value="False" Visible="True" />
                        <QuotePropertyNames Value="True" Visible="True" />
                        <FileName Value="ar_json" Visible="True" />
                    </JsonExportSettings
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    XML (.xml)

    Export to XML is available for Page and RDLX reports only.

    Name Type Description
    Encoding UTF-8 (default)|ASCII|Unicode The encoding schema for the output.
    FileName String The name of the XML document.

    Customizing .xml Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <XmlExportSettings>
                        <Encoding Value="ASCII" Visible="True" />
                        <FileName Value="ar_xml" Visible="True" />
                    </XmlExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    Tagged Image (.tiff)

    Name Type Description
    Both rpx and rdlx
    Dither Boolean The encoding schema for the output. Default is 'False'.
    DpiX Integer The horizontal resolution of the rendered images. Default is '200'.
    DpiY Integer The vertical resolution of the rendered images. Default is '196'.
    FileName String The name of the TIFF image.
    Only rpx
    Pagination Boolean Indicate if pagination should be used, that is, whether to render the entire report as a single image or each page of the report as separate images. Default is 'True'.
    CompressionScheme Ccitt3 (default)| None | Rle | Ccitt4 | Lzw The type of compression scheme to use for the reports rendered as TIFF images.
    Only rdlx
    Compression Ccitt3 (default)| None | Rle | Ccitt4 | Lzw The type of compression to use for the reports rendered as TIFF images.

    Customizing .tiff Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <TiffExportSettings>
                        <Compression Value="None" Visible="True" />
                        <Dither Value="True" Visible="True" />
                        <DpiX Value="150" Visible="True" />
                        <DpiY Value="140" Visible="True" />
                        <Pagination Value="False" Visible="True" />
                        <CompressionScheme Value="None" Visible="True" />
                        <FileName Value="ar_tiff" Visible="True" />
                    </TiffExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    RTF (.rtf)

    Export to RTF is available for Section Report only.

    Name Type Description
    EnableShapes Boolean Indicate whether to export the Shapes and Lines to RTF format. You will require Microsoft Word to view them correctly. Default is 'False'.
    Pagination Boolean Indicate if the property names should be enclosed in quotation marks. Default is 'True'.
    FileName String The name of the RTF document.

    Customizing .rtf Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rpx">
                    <DefaultExportSettings>                
                    <RtfExportSettings>
                        <EnableShapes Value="True" Visible="True"/>
                        <Pagination Value="False" Visible="True"/>
                        <FileName Value="ar_rtf" Visible="True"/>
                    </RtfExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    Web Archive (.mht)

    Name Type Description
    Both rpx and rdlx
    FileName String The name of the MHT document.
    Only rpx
    BookmarkStyle Html (default) | None

    Specify Html to generate bookmarks if the report has the bookmarks.


     

    CharacterSet UnicodeUtf8 (default) | Big5 | EucJp | HzGb2312 | Ibm850 | Iso2022Jp | Iso8859_1 | Iso8859_2 | Iso8859_5 | Iso8859_6 | Koi8r | ShiftJis | UnicodeUtf16 The character set encoding to use for the outputted HTML pages. This property only takes effect if the IncludeHtmlHeader property is set to 'True'
    CreateFramesetPage Boolean Indicate whether to generate a set of frames that display a page of bookmarks (if available) in the left frame and the report document in the right frame. The HTML output uses the specified filename with the extension .frame.html. Default is 'False'.
    IncludeHtmlHeader Boolean Indicate whether to embed the HTML output in another HTML document. Otherwise, the HTML output includes the usual HTML, HEAD, and BODY elements. Default is 'True'.
    IncludePageMargins Boolean Indicate whether to include the report margins in the HTML output. Default is 'False'.
    MultiPage Boolean Indicate whether to generate multiple HTML pages for the document. Default is 'False'.
    OutputType DynamicHtml (default) | LegacyHtml The type of HTML output.
    Pagination Boolean Indicate whether to use pagination in the HTML output. Default is 'True'.

    RemoveVerticalSpace

    Boolean Indicate whether to remove empty vertical space from the output. Default is 'False'.
    Title String The tile used in the HEAD of the HTML pages.
    Only rdlx
    Fragment Boolean Indicate whether to return only the contents inside the body tags so that you can embed it on the Web page. 'False' returns the full HTML text.
    OutputTOC Boolean Indicate if the table of contents should be included in the output if it is available in the report. Default is 'True'.
    LinkTarget _blank (default) | [window_name]: _self | _parent | _top

    The value for a target for hyperlinks contained inside the report. A value of

    • _blank opens a new window
    • _self opens the same window
    • _top opens the new page to load in the full body of the window
    • _parent similar to '_top' but refers to the immediate parent of a frame in case of nested frames
    Mode Paginated (default) | Galley The layout mode to use for the exported document. Paginated renders each page as a section inside the HTML document with Page headers and footers.
    Galley renders one page with a single page header and footer.

    Customizing .mht Export Settings

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>                
                    <MhtExportSettings>
                        <Fragment Value="True" Visible="True" />
                        <OutputTOC Value="False" Visible="True" />
                        <LinkTarget Value="_top" Visible="True" />
                        <Mode Value="Galley" Visible="True" />
                        <BookmarkStyle Value="None" Visible="True" />
                        <CharacterSet Value="Big5" Visible="True" />
                        <CreateFramesetPage Value="True" Visible="True" />
                        <IncludeHtmlHeader Value="False" Visible="True" />
                        <IncludePageMargins Value="True" Visible="True" />
                        <MultiPage Value="True" Visible="True" />
                        <OutputType Value="LegacyHtml" Visible="True" />
                        <Pagination Value="False" Visible="True" />
                        <RemoveVerticalSpace Value="True" Visible="True" />
                        <Title Value="TITLE_01" Visible="True"></Title>
                        <FileName Value="ar_mht" Visible="True" />
                    </MhtExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>
    

    Hide Export Settings

    To hide an export setting, you need to specify the Visible property as 'False' along with the Value property.

    For example. the following code hides all the .doc export settings.

    WebForm1.aspx
    Copy Code
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
    <%@ Register Assembly="MESCIUS.ActiveReports.Web" namespace="GrapeCity.ActiveReports.Web" tagprefix="ActiveReportsWeb" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="height: 219px">
        <form id="form1" runat="server">
            <div>
                <activeReportsweb:WebViewer ID="WebViewer1" runat="server" Style="z-index: 102; left: 9px; position: absolute; top: 33px; height: calc(100%)" Width="95%" ReportName="Report.rdlx">
                    <DefaultExportSettings>  
    <%--hide all doc export settings--%>              
                    <DocExportSettings>
                        <Author Value="USER" Visible="False" />
                        <BaseHref Value="www.com" Visible="False" />
                        <Generator Value="Created by USER" Visible="False" />
                        <PageHeight Value="10" Visible="False" />
                        <PageWidth Value="5" Visible="False" />
                        <Title Value="TITLE_01" Visible="False"></Title>
                        <FileName Value="ar_doc" Visible="False" />
                    </DocExportSettings>
                </DefaultExportSettings>
                </activeReportsweb:WebViewer>
            </div>
        </form>
    </body>
    </html>