Exemplo n.º 1
0
        protected void ExportButton_Click(Object sender, EventArgs e)
        {
            GenericExportManager <SearchTermsSummary> exportManager = GenericExportManager <SearchTermsSummary> .Instance;
            GenericExportOptions <SearchTermsSummary> options       = new GenericExportOptions <SearchTermsSummary>();

            options.CsvFields = new string[] { "SearchTerm", "TotalCount" };

            IList <SearchTermsSummary> reportData = ReportDataSource.LoadSearchTermsSummary("TotalCount DESC");

            options.ExportData = reportData;
            options.FileTag    = "Customer_Search_History";
            exportManager.BeginExport(options);
        }