Exemple #1
0
        public void PdfExport()
        {
            PdfExportProperties ExportProperties = new PdfExportProperties();

            ExportProperties.FileName = $"Pdf file_{DateTime.Now}.pdf";
            this.DefaultGrid.PdfExport(ExportProperties);
        }
Exemple #2
0
        public void PdfExport()
        {
            var ExportProperties = new PdfExportProperties();
            var Theme            = new PdfTheme();

            var HeaderBorder = new PdfBorder
            {
                Color = "#64FA50"
            };

            var HeaderThemeStyle = new PdfThemeStyle()
            {
                FontColor = "#64FA50",
                FontName  = "Calibri",
                FontSize  = 17,
                Bold      = true,
                Border    = HeaderBorder
            };

            Theme.Header = HeaderThemeStyle;

            var RecordThemeStyle = new PdfThemeStyle()
            {
                FontColor = "#64FA50",
                FontName  = "Calibri",
                FontSize  = 17
            };

            Theme.Record = RecordThemeStyle;

            var CaptionThemeStyle = new PdfThemeStyle()
            {
                FontColor = "#64FA50",
                FontName  = "Calibri",
                FontSize  = 17,
                Bold      = true
            };

            Theme.Caption = CaptionThemeStyle;

            ExportProperties.Theme = Theme;

            DefaultGrid.PdfExport(ExportProperties);
        }