diff --git a/Source/FastReport.Plugins.Html/App.config b/Source/FastReport.Plugins.Html/App.config
new file mode 100644
index 000000000..193aecc67
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Source/FastReport.Plugins.Html/FastReport.Plugins.Html.csproj b/Source/FastReport.Plugins.Html/FastReport.Plugins.Html.csproj
new file mode 100644
index 000000000..224d97fe7
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/FastReport.Plugins.Html.csproj
@@ -0,0 +1,99 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}
+ WinExe
+ FastReport.Plugins.Html
+ FastReport.Plugins.Html
+ v4.8
+ 512
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ False
+ ..\..\..\..\..\..\..\Program Files (x86)\FastReports\FastReport.Net Trial\Framework 4.0\FastReport.dll
+
+
+ False
+ ..\..\..\..\..\..\..\Program Files (x86)\FastReports\FastReport.Net Trial\Framework 4.0\FastReport.Bars.dll
+
+
+ False
+ ..\..\..\..\..\..\..\Program Files (x86)\FastReports\FastReport.Net Trial\Framework 4.0\FastReport.Editor.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Component
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
+ {1B058920-24B4-4140-8AE7-C8C6C38CA52D}
+ HtmlRenderer.WinForms
+
+
+ {FE611685-391F-4E3E-B27E-D3150E51E49B}
+ HtmlRenderer
+
+
+
+
\ No newline at end of file
diff --git a/Source/FastReport.Plugins.Html/HtmlObject.cs b/Source/FastReport.Plugins.Html/HtmlObject.cs
new file mode 100644
index 000000000..a5f24f494
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/HtmlObject.cs
@@ -0,0 +1,82 @@
+using FastReport.Code;
+using FastReport.Utils;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Drawing.Text;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+using TheArtOfDev.HtmlRenderer.Core;
+using TheArtOfDev.HtmlRenderer.WinForms;
+
+namespace FastReport.Plugins.Html
+{
+ public class HtmlObject : FastReport.HtmlObject
+ {
+ HtmlContainerInt htmlContainer;
+
+ public override void Draw(FRPaintEventArgs e)
+ {
+ if (IsDesigning)
+ {
+ if (IsAncestor)
+ e.Graphics.DrawImage(Res.GetImage(99), (int)(AbsRight * e.ScaleX - 9), (int)(AbsTop * e.ScaleY + 2));
+ }
+ DrawBackground(e);
+ DrawHtml(e);
+ DrawMarkers(e);
+ Border.Draw(e, new RectangleF(AbsLeft, AbsTop, Width, Height));
+ DrawDesign(e);
+ }
+
+ private void DrawHtml(FRPaintEventArgs e)
+ {
+ using (var container = new HtmlContainer())
+ {
+ var state = e.Graphics.Save();
+ try
+ {
+
+ e.Graphics.ScaleTransform(e.ScaleX, e.ScaleY);
+ container.Location = new PointF(AbsLeft , AbsTop );
+ container.MaxSize = new SizeF(Width , Height );
+ container.AvoidAsyncImagesLoading = true;
+ container.AvoidImagesLateLoading = true;
+ container.UseGdiPlusTextRendering = true;
+
+
+
+ //if (stylesheetLoad != null)
+ // container.StylesheetLoad += stylesheetLoad;
+ //if (imageLoad != null)
+ // container.ImageLoad += imageLoad;
+
+ container.SetHtml(Text, null /*cssData*/);
+ container.PerformLayout(e.Graphics);
+ container.PerformPaint(e.Graphics);
+
+ //actualSize = container.ActualSize;
+ }
+ finally
+ {
+ e.Graphics.Restore(state);
+ }
+ }
+ }
+
+ private void DrawDesign(FRPaintEventArgs e)
+ {
+ //DrawDragAcceptFrame(e, Color.Silver);
+ }
+
+
+ public HtmlObject()
+ {
+
+ }
+ }
+}
diff --git a/Source/FastReport.Plugins.Html/Program.cs b/Source/FastReport.Plugins.Html/Program.cs
new file mode 100644
index 000000000..c9b4c7c92
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/Program.cs
@@ -0,0 +1,32 @@
+using FastReport.Utils;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace FastReport.Plugins.Html
+{
+ static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+
+ Config.DesignerSettings.ShowInTaskbar = true;
+ Config.SplashScreenEnabled = true;
+
+
+ using (Report report = new Report())
+ {
+ RegisteredObjects.Add(typeof(HtmlObject), "ReportPage", 246, 18);
+ report.Design();
+ }
+ }
+ }
+}
diff --git a/Source/FastReport.Plugins.Html/Properties/AssemblyInfo.cs b/Source/FastReport.Plugins.Html/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000..b76042ef7
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("FastReport.Plugins.Html")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("FastReport.Plugins.Html")]
+[assembly: AssemblyCopyright("Copyright © 2019")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("b5ede9b6-5930-43c9-a11d-c6e79dd232bd")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Source/FastReport.Plugins.Html/Properties/Resources.Designer.cs b/Source/FastReport.Plugins.Html/Properties/Resources.Designer.cs
new file mode 100644
index 000000000..4f8b7015e
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace FastReport.Plugins.Html.Properties
+{
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FastReport.Plugins.Html.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/Source/FastReport.Plugins.Html/Properties/Resources.resx b/Source/FastReport.Plugins.Html/Properties/Resources.resx
new file mode 100644
index 000000000..af7dbebba
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Source/FastReport.Plugins.Html/Properties/Settings.Designer.cs b/Source/FastReport.Plugins.Html/Properties/Settings.Designer.cs
new file mode 100644
index 000000000..864fae1e1
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace FastReport.Plugins.Html.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/Source/FastReport.Plugins.Html/Properties/Settings.settings b/Source/FastReport.Plugins.Html/Properties/Settings.settings
new file mode 100644
index 000000000..39645652a
--- /dev/null
+++ b/Source/FastReport.Plugins.Html/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Source/HtmlRenderer.sln b/Source/HtmlRenderer.sln
index cf7aaa634..eed435497 100644
--- a/Source/HtmlRenderer.sln
+++ b/Source/HtmlRenderer.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.30501.0
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29318.209
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Demo", "Demo", "{E263EA16-2E6A-4269-A319-AA2F97ADA8E1}"
EndProject
@@ -26,6 +26,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{AA47D1
.nuget\NuGet.targets = .nuget\NuGet.targets
EndProjectSection
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastReport.Plugins.Html", "FastReport.Plugins.Html\FastReport.Plugins.Html.csproj", "{B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -106,6 +108,18 @@ Global
{CA249F5D-9285-40A6-B217-5889EF79FD7E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{CA249F5D-9285-40A6-B217-5889EF79FD7E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{CA249F5D-9285-40A6-B217-5889EF79FD7E}.Release|x86.ActiveCfg = Release|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Debug|x86.Build.0 = Debug|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Release|x86.ActiveCfg = Release|Any CPU
+ {B5EDE9B6-5930-43C9-A11D-C6E79DD232BD}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -115,4 +129,7 @@ Global
{8AD34FE8-8382-4A8A-B3AA-A0392ED42423} = {E263EA16-2E6A-4269-A319-AA2F97ADA8E1}
{F02E0216-4AE3-474F-9381-FCB93411CDB0} = {E263EA16-2E6A-4269-A319-AA2F97ADA8E1}
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {CEF170B6-0BE2-41CE-8E58-BCEB23E6A29F}
+ EndGlobalSection
EndGlobal