Skip to content

Commit b14dffb

Browse files
authored
Merge pull request #492 from FastReports/sync_branch_2022.3.12
FastReport.OpenSource 2022.3.12
2 parents 6fd4b09 + ebb4704 commit b14dffb

File tree

20 files changed

+1660
-16
lines changed

20 files changed

+1660
-16
lines changed

Demos/OpenSource/FastReport.OpenSource.MVC/Controllers/HomeController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ static HomeController()
4646
continue;
4747
if (folderItem.GetProp("Core") == "false")
4848
continue;
49+
if (folderItem.GetProp("Name") == "Advanced Matrix")
50+
continue;
4951
string culture = System.Globalization.CultureInfo.CurrentCulture.Name;
5052
string text = folderItem.GetProp("Name-" + culture);
5153
if (String.IsNullOrEmpty(text))
@@ -63,6 +65,8 @@ static HomeController()
6365
continue;
6466
if (reportItem.GetProp("Core") == "false")
6567
continue;
68+
if (reportItem.GetProp("File") == "SVG.frx" || reportItem.GetProp("File") == "Interactive Matrix With Chart.frx")
69+
continue;
6670

6771
string file = reportItem.GetProp("File");
6872
string fileName = reportItem.GetProp("Name-" + culture);

Demos/OpenSource/FastReport.OpenSource.Web.MVC/Controllers/HomeController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public IActionResult Index(int? reportIndex = 0)
5656
"Hyperlinks, Bookmarks",
5757
"Outline",
5858
"Complex (Hyperlinks, Outline, TOC)",
59-
"Drill-Down Groups",
60-
"Mail Merge"
59+
"Drill-Down Groups"
6160
},
6261
};
6362

FastReport.Base/Export/Html/HTMLExportLayers.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,8 @@ private void ExportHTMLPageLayeredBegin(HTMLData d)
853853
SolidFill fill = reportPage.Fill as SolidFill;
854854
htmlPage.Append(" background-color:").
855855
Append(fill.IsTransparent ? "transparent" : ExportUtils.HTMLColor(fill.Color));
856+
if (exportMode == ExportType.WebPrint)
857+
htmlPage.Append("color-adjust: exact !important; print-color-adjust: exact !important; -webkit-print-color-adjust: exact !important;");
856858
}
857859
else
858860
{

FastReport.Base/Export/Html/HTMLExportTemplates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public string OutlineTemplate
7777
public string IndexTemplate
7878
{
7979
get { return indexTemplate; }
80-
set { outlineTemplate = value; }
80+
set { indexTemplate = value; }
8181
}
8282
#endregion
8383

FastReport.Base/Import/ComponentsFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public static ChildBand CreateChildBand(BandBase parent)
240240
public static OverlayBand CreateOverlayBand(ReportPage page)
241241
{
242242
OverlayBand overlay = new OverlayBand();
243-
page.Bands.Add(overlay);
243+
page.Overlay = overlay;
244244
overlay.CreateUniqueName();
245245
return overlay;
246246
}

0 commit comments

Comments
 (0)