コード例 #1
0
 public Chart(IDocument document, XElement node, XElement parentNode) : base(parentNode, document)
 {
     Node        = node;
     Styles      = new StyleCollection();
     ChartStyles = new ChartStyles(this);
     Document.EmbedObjects.Add(this);
     Document.DocumentMetadata.ObjectCount += 1;
     InitStandards();
 }
コード例 #2
0
 public Chart(Table table, string styleName) : base(table.Document)
 {
     TableData.table = table;
     Document        = table.Document;
     Styles          = new StyleCollection();
     ChartStyles     = new ChartStyles(this);
     ChartDoc        = new XDocument();
     NewXmlNode(styleName);
     ObjectType = "chart";
     Document.DocumentMetadata.ObjectCount += 1;
     ObjectName = "Object " + Document.DocumentMetadata.ObjectCount;
     New();
     Document.EmbedObjects.Add(this);
 }
コード例 #3
0
 public static void ApplyVisualStyle(C1Chart chart, ChartStyles style)
 {
     if (style == ChartStyles.Gallery)
     {
         chart.BackColor = Color.FromArgb(153, 180, 209);
         chart.ForeColor = Color.Black;
         chart.ChartArea.PlotArea.BackColor     = Color.White;
         chart.ChartArea.PlotArea.BackColor2    = Color.FromArgb(215, 228, 242);
         chart.ChartArea.PlotArea.GradientStyle = GradientStyleEnum.None;
         chart.Style.BackColor                  = Color.FromArgb(153, 180, 209);
         chart.Style.BackColor2                 = Color.FromArgb(215, 228, 242);
         chart.Style.GradientStyle              = GradientStyleEnum.DiagonalCenter;
         chart.Style.Border.BorderStyle         = BorderStyleEnum.Solid;
         chart.Style.Border.Color               = Color.DarkGray;
         chart.Style.Border.Thickness           = 1;
         chart.Style.Border.Rounding.All        = 0;
         chart.ChartArea.AxisX.ForeColor        = Color.DimGray;
         chart.ChartArea.AxisX.Thickness        = 2;
         chart.ChartArea.AxisX.GridMajor.Color  = Color.LightGray;
         chart.ChartArea.AxisX.GridMinor.Color  = Color.LightGray;
         chart.ChartArea.AxisY.ForeColor        = Color.DimGray;
         chart.ChartArea.AxisY.Thickness        = 1;
         chart.ChartArea.AxisY.GridMajor.Color  = Color.LightGray;
         chart.ChartArea.AxisY.GridMinor.Color  = Color.LightGray;
         chart.Footer.Style.ForeColor           = Color.Black;
         chart.Footer.Style.BackColor           = Color.FromArgb(153, 180, 209);
         chart.Footer.Style.BackColor2          = Color.FromArgb(215, 228, 242);
         chart.Footer.Style.GradientStyle       = GradientStyleEnum.DiagonalCenter;
         chart.Footer.Style.Border.Color        = Color.Transparent;
         chart.Footer.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Footer.Style.Border.Rounding.All = 0;
         chart.Header.Style.ForeColor           = Color.Black;
         chart.Header.Style.BackColor           = Color.Transparent;
         chart.Header.Style.BackColor2          = Color.Transparent;
         chart.Header.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Header.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Header.Style.Border.Rounding.All = 0;
         chart.Header.Style.Opaque              = false;
         chart.Legend.Style.BackColor           = Color.FromArgb(153, 180, 209);
         chart.Legend.Style.BackColor2          = Color.FromArgb(215, 228, 242);
         chart.Legend.Style.GradientStyle       = GradientStyleEnum.DiagonalCenter;
         chart.Legend.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Legend.Style.Border.Rounding.All = 0;
         chart.Legend.Style.Border.Color        = Color.Transparent;
         chart.Legend.Style.Border.Thickness    = 1;
         chart.Legend.Style.ForeColor           = Color.Black;
         chart.ColorGeneration                  = ColorGeneration.Custom;
     }
     else if (style == ChartStyles.MediaPlayer)
     {
         chart.BackColor = Color.FromArgb(18, 23, 38);
         chart.ForeColor = Color.FromArgb(21, 66, 139);
         chart.ChartArea.PlotArea.BackColor     = Color.FromArgb(234, 238, 245);
         chart.ChartArea.PlotArea.GradientStyle = GradientStyleEnum.None;
         chart.Style.BackColor                  = Color.FromArgb(234, 238, 245);
         chart.Style.GradientStyle              = GradientStyleEnum.None;
         chart.Style.Border.BorderStyle         = BorderStyleEnum.Solid;
         chart.Style.Border.Color               = Color.FromArgb(104, 112, 134);
         chart.Style.Border.Thickness           = 1;
         chart.Style.Border.Rounding.All        = 3;
         chart.ChartArea.AxisX.ForeColor        = Color.FromArgb(21, 66, 139);
         chart.ChartArea.AxisX.Thickness        = 1;
         chart.ChartArea.AxisX.GridMajor.Color  = Color.FromArgb(200, 203, 206);
         chart.ChartArea.AxisX.GridMinor.Color  = Color.FromArgb(200, 203, 206);
         chart.ChartArea.AxisY.ForeColor        = Color.FromArgb(21, 66, 139);
         chart.ChartArea.AxisY.Thickness        = 1;
         chart.ChartArea.AxisY.GridMajor.Color  = Color.FromArgb(200, 203, 206);
         chart.ChartArea.AxisY.GridMinor.Color  = Color.FromArgb(200, 203, 206);
         chart.Footer.Style.ForeColor           = Color.FromArgb(234, 238, 245);
         chart.Footer.Style.BackColor           = Color.Transparent;
         chart.Footer.Style.BackColor2          = Color.Transparent;
         chart.Footer.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Footer.Style.Border.Color        = Color.FromArgb(28, 42, 118);
         chart.Footer.Style.Border.BorderStyle  = BorderStyleEnum.Solid;
         chart.Footer.Style.Border.Rounding.All = 3;
         chart.Header.Style.ForeColor           = Color.FromArgb(234, 238, 245);
         chart.Header.Style.BackColor           = Color.FromArgb(96, 106, 134);
         chart.Header.Style.BackColor2          = Color.FromArgb(64, 72, 88);
         chart.Header.Style.GradientStyle       = GradientStyleEnum.Vertical;
         chart.Header.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Header.Style.Border.Rounding.All = 3;
         chart.Header.Style.Opaque              = true;
         chart.Legend.Style.BackColor           = Color.Transparent;
         chart.Legend.Style.BackColor2          = Color.Transparent;
         chart.Legend.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Legend.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Legend.Style.ForeColor           = Color.FromArgb(21, 66, 139);
         chart.ColorGeneration                  = ColorGeneration.Flow;
     }
     else if (style == ChartStyles.Office2007Blue)
     {
         chart.BackColor = Color.FromArgb(202, 218, 237);
         chart.ForeColor = Color.FromArgb(21, 66, 139);
         chart.ChartArea.PlotArea.BackColor     = Color.FromArgb(247, 250, 253);
         chart.ChartArea.PlotArea.GradientStyle = GradientStyleEnum.None;
         chart.Style.BackColor                  = Color.FromArgb(237, 242, 249);
         chart.Style.BackColor2                 = Color.FromArgb(242, 249, 254);
         chart.Style.GradientStyle              = GradientStyleEnum.Vertical;
         chart.Style.Border.BorderStyle         = BorderStyleEnum.Solid;
         chart.Style.Border.Color               = Color.FromArgb(147, 186, 219);
         chart.Style.Border.Thickness           = 1;
         chart.Style.Border.Rounding.All        = 3;
         chart.ChartArea.AxisX.ForeColor        = Color.FromArgb(21, 66, 139);
         chart.ChartArea.AxisX.Thickness        = 1;
         chart.ChartArea.AxisX.GridMajor.Color  = Color.FromArgb(198, 199, 201);
         chart.ChartArea.AxisX.GridMinor.Color  = Color.FromArgb(198, 199, 201);
         chart.ChartArea.AxisY.ForeColor        = Color.FromArgb(21, 66, 139);
         chart.ChartArea.AxisY.Thickness        = 1;
         chart.ChartArea.AxisY.GridMajor.Color  = Color.FromArgb(198, 199, 201);
         chart.ChartArea.AxisY.GridMinor.Color  = Color.FromArgb(198, 199, 201);
         chart.Footer.Style.ForeColor           = Color.FromArgb(21, 66, 139);
         chart.Footer.Style.BackColor           = Color.Transparent;
         chart.Footer.Style.BackColor2          = Color.Transparent;
         chart.Footer.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Footer.Style.Border.Color        = Color.FromArgb(28, 42, 118);
         chart.Footer.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Footer.Style.Border.Rounding.All = 3;
         chart.Header.Style.ForeColor           = Color.FromArgb(21, 66, 139);
         chart.Header.Style.BackColor           = Color.FromArgb(218, 229, 244);
         chart.Header.Style.BackColor2          = Color.FromArgb(207, 221, 239);
         chart.Header.Style.GradientStyle       = GradientStyleEnum.Vertical;
         chart.Header.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Header.Style.Border.Rounding.All = 3;
         chart.Header.Style.Opaque              = true;
         chart.Legend.Style.BackColor           = Color.FromArgb(219, 233, 250);
         chart.Legend.Style.BackColor2          = Color.FromArgb(219, 233, 250);
         chart.Legend.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Legend.Style.Border.BorderStyle  = BorderStyleEnum.Solid;
         chart.Legend.Style.Border.Rounding.All = 3;
         chart.Legend.Style.Border.Color        = Color.FromArgb(135, 178, 213);
         chart.Legend.Style.Border.Thickness    = 1;
         chart.Legend.Style.ForeColor           = Color.FromArgb(21, 66, 139);
         chart.ColorGeneration                  = ColorGeneration.Office;
     }
     else if (style == ChartStyles.Office2007Black)
     {
         chart.BackColor = Color.FromArgb(181, 188, 198);
         chart.ForeColor = Color.FromArgb(70, 70, 70);
         chart.ChartArea.PlotArea.BackColor     = Color.FromArgb(242, 243, 245);
         chart.ChartArea.PlotArea.GradientStyle = GradientStyleEnum.None;
         chart.Style.BackColor                  = Color.FromArgb(235, 237, 240);
         chart.Style.BackColor2                 = Color.WhiteSmoke;
         chart.Style.GradientStyle              = GradientStyleEnum.Vertical;
         chart.Style.Border.BorderStyle         = BorderStyleEnum.Solid;
         chart.Style.Border.Color               = Color.FromArgb(149, 150, 151);
         chart.Style.Border.Thickness           = 1;
         chart.Style.Border.Rounding.All        = 3;
         chart.ChartArea.AxisX.ForeColor        = Color.FromArgb(70, 70, 70);
         chart.ChartArea.AxisX.Thickness        = 1;
         chart.ChartArea.AxisX.GridMajor.Color  = Color.FromArgb(188, 188, 188);
         chart.ChartArea.AxisX.GridMinor.Color  = Color.FromArgb(188, 188, 188);
         chart.ChartArea.AxisY.ForeColor        = Color.FromArgb(70, 70, 70);
         chart.ChartArea.AxisY.Thickness        = 1;
         chart.ChartArea.AxisY.GridMajor.Color  = Color.FromArgb(188, 188, 188);
         chart.ChartArea.AxisY.GridMinor.Color  = Color.FromArgb(188, 188, 188);
         chart.Footer.Style.ForeColor           = Color.FromArgb(70, 70, 70);
         chart.Footer.Style.BackColor           = Color.Transparent;
         chart.Footer.Style.BackColor2          = Color.Transparent;
         chart.Footer.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Footer.Style.Border.Color        = Color.FromArgb(28, 42, 118);
         chart.Footer.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Footer.Style.Border.Rounding.All = 3;
         chart.Header.Style.ForeColor           = Color.FromArgb(70, 70, 70);
         chart.Header.Style.BackColor           = Color.FromArgb(214, 218, 224);
         chart.Header.Style.BackColor2          = Color.FromArgb(193, 198, 207);
         chart.Header.Style.GradientStyle       = GradientStyleEnum.Vertical;
         chart.Header.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Header.Style.Border.Rounding.All = 3;
         chart.Header.Style.Opaque              = true;
         chart.Legend.Style.BackColor           = Color.FromArgb(202, 208, 214);
         chart.Legend.Style.BackColor2          = Color.FromArgb(202, 208, 214);
         chart.Legend.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Legend.Style.Border.BorderStyle  = BorderStyleEnum.Solid;
         chart.Legend.Style.Border.Rounding.All = 3;
         chart.Legend.Style.Border.Color        = Color.FromArgb(152, 153, 155);
         chart.Legend.Style.Border.Thickness    = 1;
         chart.Legend.Style.ForeColor           = Color.FromArgb(70, 70, 70);
         chart.ColorGeneration                  = ColorGeneration.Office;
     }
     else if (style == ChartStyles.Office2007Silver)
     {
         chart.BackColor = Color.FromArgb(225, 233, 240);
         chart.ForeColor = Color.FromArgb(76, 83, 92);
         chart.ChartArea.PlotArea.BackColor     = Color.FromArgb(245, 248, 248);
         chart.ChartArea.PlotArea.GradientStyle = GradientStyleEnum.None;
         chart.Style.BackColor                  = Color.FromArgb(242, 245, 247);
         chart.Style.BackColor2                 = Color.FromArgb(247, 249, 249);
         chart.Style.GradientStyle              = GradientStyleEnum.Vertical;
         chart.Style.Border.BorderStyle         = BorderStyleEnum.Solid;
         chart.Style.Border.Color               = Color.FromArgb(162, 163, 163);
         chart.Style.Border.Thickness           = 1;
         chart.Style.Border.Rounding.All        = 3;
         chart.ChartArea.AxisX.ForeColor        = Color.FromArgb(76, 83, 92);
         chart.ChartArea.AxisX.Thickness        = 1;
         chart.ChartArea.AxisX.GridMajor.Color  = Color.FromArgb(198, 199, 199);
         chart.ChartArea.AxisX.GridMinor.Color  = Color.FromArgb(198, 199, 199);
         chart.ChartArea.AxisY.ForeColor        = Color.FromArgb(76, 83, 92);
         chart.ChartArea.AxisY.Thickness        = 1;
         chart.ChartArea.AxisY.GridMajor.Color  = Color.FromArgb(198, 199, 199);
         chart.ChartArea.AxisY.GridMinor.Color  = Color.FromArgb(198, 199, 199);
         chart.Footer.Style.ForeColor           = Color.FromArgb(76, 83, 92);
         chart.Footer.Style.BackColor           = Color.Transparent;
         chart.Footer.Style.BackColor2          = Color.Transparent;
         chart.Footer.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Footer.Style.Border.Color        = Color.FromArgb(28, 42, 118);
         chart.Footer.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Footer.Style.Border.Rounding.All = 3;
         chart.Header.Style.ForeColor           = Color.FromArgb(76, 83, 92);
         chart.Header.Style.BackColor           = Color.FromArgb(242, 244, 248);
         chart.Header.Style.BackColor2          = Color.FromArgb(193, 198, 207);
         chart.Header.Style.GradientStyle       = GradientStyleEnum.Vertical;
         chart.Header.Style.Border.BorderStyle  = BorderStyleEnum.None;
         chart.Header.Style.Border.Rounding.All = 3;
         chart.Header.Style.Opaque              = true;
         chart.Legend.Style.BackColor           = Color.FromArgb(242, 244, 247);
         chart.Legend.Style.BackColor2          = Color.FromArgb(242, 244, 247);
         chart.Legend.Style.GradientStyle       = GradientStyleEnum.None;
         chart.Legend.Style.Border.BorderStyle  = BorderStyleEnum.Solid;
         chart.Legend.Style.Border.Rounding.All = 3;
         chart.Legend.Style.Border.Color        = Color.FromArgb(151, 152, 153);
         chart.Legend.Style.Border.Thickness    = 1;
         chart.Legend.Style.ForeColor           = Color.FromArgb(76, 83, 92);
         chart.ColorGeneration                  = ColorGeneration.Office;
     }
 }
コード例 #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page != null)
        {
            string appDirectory = HttpContext.Current.Server.MapPath(string.Empty);

            // Определяем выбранный отчёт
            string keyValue = Page.Request.QueryString.Get("reportname");
            if (keyValue == null)
            {
                keyValue = "SimpleList";
            }

            StiReport report   = new StiReport();
            string    text     = string.Empty;
            bool      isRender = false;
            switch (keyValue)
            {
            // Basic Reports
            case "SimpleList": report = new SimpleList(); text = "The sample demonstrates how to create a simple list report."; isRender = true; break;

            case "TwoSimpleLists": report = new TwoSimpleLists(); text = "The sample demonstrates how to create two simple list reports."; isRender = true; break;

            case "HighlightCondition": report = new HighlightCondition(); text = "The sample demonstrates how to use highlight condition to create a report."; isRender = true; break;

            case "Shapes": report = new Shapes(); text = "The sample demonstrates how to create a report with shapes."; isRender = true; break;

            case "Images": report = new Images(); text = "The sample demonstrates how to create a report with images."; isRender = true; break;

            case "Watermark": report = new Watermark(); text = "The sample demonstrates how to create a report with watermark."; isRender = true; break;

            case "BarCodes": report = new BarCodes(); text = "The sample demonstrates how to create a report with BarCodes."; isRender = true; break;

            case "Invoice": report = new Invoice(); text = "A simple invoice."; isRender = true; break;

            case "Indicators": report.Load(appDirectory + "\\Reports\\Indicators.mrt"); text = "This sample shows how to use indicators in the report."; break;

            // Reports with Columns
            case "MultiColumnList": report = new MultiColumnList(); text = "The sample demonstrates how to create a report with multiple columns. To create a report with columns set the Columns property of a page in two or more."; isRender = true; break;

            case "MultiColumnBandsAcrossThenDown": report = new MultiColumnBandsAcrossThenDown(); text = "The sample demonstrates how to create a report with multiple columns on the bands. Multicolumn direction - across then down."; isRender = true; break;

            case "MultiColumnBandsDownThenAcross": report = new MultiColumnBandsDownThenAcross(); text = "The sample demonstrates how to create a report with multiple columns on the bands. Multicolumn direction - down then across."; isRender = true; break;

            case "Labels": report = new Labels(); text = "The sample demonstrates how to create a report with labels."; isRender = true; break;

            // Master-Detail Reports
            case "MasterDetail": report = new MasterDetail(); text = "The sample demonstrates how to create a Master-Detail report."; isRender = true; break;

            case "MasterDetailSubdetail": report = new MasterDetailSubdetail(); text = "The sample demonstrates how to create a Master-Detail-Subdetail report."; isRender = true; break;

            case "MasterDetailWithColumns": report = new MasterDetailWithColumns(); text = "The sample demonstrates how to create a Master-Detail report with columns."; isRender = true; break;

            case "TwoMastersOnOneDetail": report = new TwoMastersOnOneDetail(); text = "The sample demonstrates how to create a report with two master-detail links. And detail for both links is the same."; isRender = true; break;

            case "MasterDetailWithZeroHeight": report = new MasterDetailWithZeroHeight(); text = "The sample demonstrates how to create a Master-Detail report in which one of the bands has the zero height."; isRender = true; break;

            case "MasterDetailOnDataBand": report = new MasterDetailOnDataBand(); text = "The sample demonstrates how to create a Master-Detail report in which one of the bands placed on other."; isRender = true; break;

            // Reports with Groups
            case "SimpleGroup": report = new SimpleGroup(); text = "The sample demonstrates how to create a simple group report with one group."; isRender = true; break;

            case "NestedGroups": report = new NestedGroups(); text = "The sample demonstrates how to create a report using several groups."; isRender = true; break;

            case "GroupsTopSales": report = new GroupsTopSales(); text = "This sample demonstrates how to sort group by its totals."; isRender = true; break;

            case "MasterDetailWithGroups": report = new MasterDetailWithGroups(); text = "The sample demonstrates how to create a Master-Detail report with groups."; isRender = true; break;

            case "MultiColumnGroup": report = new MultiColumnGroup(); text = "The sample demonstrates how to create a simple group report with two columns on page."; isRender = true; break;

            case "GroupsWithRanges": report = new GroupsWithRanges(); text = "The sample demonstrates how to create groups with ranges in report."; isRender = true; break;

            case "SimpleGroupWithColumns": report = new SimpleGroupWithColumns(); text = "The sample demonstrates how to create a simple group report with multiple columns on the bands. Multicolumn direction - across then down."; isRender = true; break;

            case "AllGroupFootersAtEnd": report = new AllGroupFootersAtEnd(); text = "This sample shows all group footers at the bottom of Report."; isRender = true; break;

            case "InvoiceWithGroups": report = new InvoiceWithGroups(); text = "An invoice with categories."; isRender = true; break;

            case "SalesInvoice": report = new SalesInvoice(); text = "Sales invoice."; isRender = true; break;

            // Hierarchical Reports
            case "Tree": report = new Tree(); text = "The sample demonstrates how to create hierarchical report."; isRender = true; break;

            case "TreeWithHeadersFooters": report = new TreeWithHeadersFooters(); text = "The sample demonstrates how to create hierarchical wiith headers and footers."; isRender = true; break;

            case "TreeWithTotals": report = new TreeWithTotals(); text = "The sample demonstrates how to create hierarchical report with totals."; isRender = true; break;

            case "TreeWithTotalsAllLevels": report = new TreeWithTotalsAllLevels(); text = "The sample demonstrates how to create hierarchical report with totals which include all sub-levels of tree."; isRender = true; break;

            case "TreeWithLockedComponents": report = new TreeWithLockedComponents(); text = "The sample demonstrates how to create hierarchical report with locked components."; isRender = true; break;

            // Parameters
            case "ParametersDetailedCategories": report.Load(appDirectory + "\\Reports\\ParametersDetailedCategories.mrt"); text = "Detailing by selected category of products."; break;

            case "ParametersDetailedOrders": report.Load(appDirectory + "\\Reports\\ParametersDetailedOrders.mrt"); text = "Detailing of the list of orders by specified number."; break;

            case "ParametersHighlightCondition": report.Load(appDirectory + "\\Reports\\ParametersHighlightCondition.mrt"); text = "Highlighting data rows by selected conditions."; break;

            //case "ParametersSelectingCountry": report.Load(appDirectory + "\\Reports\\ParametersSelectingCountry.mrt"); text = "Showing data only by selected countries."; break;
            //case "ParametersDateRange": report.Load(appDirectory + "\\Reports\\ParametersDateRange.mrt"); text = "Selecting the date range for printing data."; break;
            case "ParametersInvoice": report.Load(appDirectory + "\\Reports\\ParametersInvoice.mrt"); text = "This sample requests parameters for printing an invoice."; break;

            // Interactive Reports
            case "DrillDownListOfProducts": report.Load(appDirectory + "\\Reports\\DrillDownListOfProducts.mrt"); text = "The sample demonstrates how to use drill-down reports."; break;

            case "DrillDownGroupWithCollapsing": report.Load(appDirectory + "\\Reports\\DrillDownGroupWithCollapsing.mrt"); text = "The sample demonstrates how to use GroupHeaderBand without GroupFooterBand."; break;

            case "DrillDownSorting": report.Load(appDirectory + "\\Reports\\DrillDownSorting.mrt"); text = "The sample demonstrates how to use interactive sorting."; break;

            case "DrillDownGroupWithCollapsingWithoutFooter": report.Load(appDirectory + "\\Reports\\DrillDownGroupWithCollapsingWithoutFooter.mrt"); text = "The sample demonstrates how to use GroupHeaderBand without GroupFooterBand."; break;

            case "DrillDownMasterDetailWithCollapsing": report.Load(appDirectory + "\\Reports\\DrillDownMasterDetailWithCollapsing.mrt"); text = "The sample demonstrates how to use Master-Detail report with collapsing."; break;

            case "EditableReport": report.Load(appDirectory + "\\Reports\\EditableReport.mrt"); text = "The sample demonstrates how to edit a rendered report in the Preview Window."; break;

            case "BookmarksHyperlinks": report.Load(appDirectory + "\\Reports\\BookmarksHyperlinks.mrt"); text = "The sample demonstrates how to use bookmarks and hyperlinks."; break;

            case "Anchors": report.Load(appDirectory + "\\Reports\\Anchors.mrt"); text = "The sample demonstrates how to use anchors."; break;

            // Charts
            case "ChartColumnsAndBars": report = new ChartColumnsAndBars(); text = "This sample demonstrates Column and Bar chart types."; isRender = true; break;

            case "ChartLinesAndSplines": report = new ChartLinesAndSplines(); text = "This sample demonstrates Line and Spline chart types."; isRender = true; break;

            case "ChartAreas": report = new ChartAreas(); text = "This sample demonstrates Areas chart types."; isRender = true; break;

            case "ChartPieAndDoughnut": report = new ChartPieAndDoughnut(); text = "This sample demonstrates Pie and Doughnut chart types."; isRender = true; break;

            case "ChartStyles": report = new ChartStyles(); text = "This sample demonstrates different chart styles."; isRender = true; break;

            case "ChartOnDataband": report = new ChartOnDataband(); text = "This sample demonstrates how to use a chart with DataBand."; isRender = true; break;

            // Reports with EmptyBand
            case "SimpleListWithEmptyLines": report = new SimpleListWithEmptyLines(); text = "The sample demonstrates how to create a simple list report with empty lines on the bottom of a page."; isRender = true; break;

            case "MasterDetailWithEmptyLines": report = new MasterDetailWithEmptyLines(); text = "The sample demonstrates how to create a Master-Detail report with empty lines on the bottom of a page."; isRender = true; break;

            case "InvoiceWithEmptyBand": report = new InvoiceWithEmptyBand(); text = "An invoice created using an Empty Band."; isRender = true; break;

            // Containers
            case "SideBySideListWithContainers": report = new SideBySideListWithContainers(); text = "The sample demonstrates how to create a report that contains two side by side lists with containers."; isRender = true; break;

            case "SideBySideGroupWithContainers": report = new SideBySideGroupWithContainers(); text = "The sample demonstrates how to create a report that contains two side by side groups with containers."; isRender = true; break;

            case "MultiColumnListContainers": report = new MultiColumnListContainers(); text = "The sample demonstrates how to create a report with multiple columns using containers."; isRender = true; break;

            case "MasterDetailCards": report = new MasterDetailCards(); text = "The sample demonstrates how to create a Master-Detail report which data are grouped as cards."; isRender = true; break;

                // SubReports
                //case "SideBySideListWithSubReports": report = new SideBySideListWithSubReports(); text = "The sample demonstrates how to create a report that contains two side by side lists with SubReports."; isRender = true; break;
                //case "SideBySideGroupWithSubReports": report = new StiSideBySideGroupWithSubReportsReport(); text = "The sample demonstrates how to create a report that contains two side by side groups with SubReports."; break;
                //case "MasterDetailWithSubReports": report = new StiMasterDetailWithSubReportsReport(); text = "The sample demonstrates how to create a Master-Detail report with SubReports."; break;
            }

            //report = new StiReport();
            //report.Load(appDirectory + "\\Reports\\shapes.mrt");
            LabelText.Text = text;

            RenderReport(report, isRender);
            StiWebViewerSL1.Report = report;
        }
    }