FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

HTMLExport() does not seem to use WidthUnits = HtmlSizeUnits.Percent, HeightUnits = HtmlSizeUnits.Percent

Open nivle opened this issue 1 year ago • 0 comments

Describe the bug HTMLExport() does not seem to use WidthUnits = HtmlSizeUnits.Percent, HeightUnits = HtmlSizeUnits.Percent

To Reproduce Steps to reproduce the behavior:

Create project, add nuget "FastReport.OpenSource" Version="2024.2.14" to project...

To reproduce, just use html export, basicly use the code below, then place a breakpoint, to catch the html value...

So i want to export my report as responsive html, thus i do this:

HTMLExport hTMLExport = new HTMLExport() { Layers = true, WidthUnits = HtmlSizeUnits.Percent, HeightUnits = HtmlSizeUnits.Percent, EmbedPictures = true, HighQualitySVG = true, SinglePage = true, SubFolder = false };

using MemoryStream htmlMemoryStream = new MemoryStream();

hTMLExport.Export(report, htmlMemoryStream);

string html = Encoding.UTF8.GetString(htmlMemoryStream.ToArray());

but the outcome is the same as if the WidthUnits = HtmlSizeUnits.Percent, HeightUnits = HtmlSizeUnits.Percent were not there.

How do How do i get this to work?

Also, something weird happens with the border if the cell is solid filled with a color, it like vanishes... image

Expected behavior I Expected the html to use percentages instead of pixels. I Expected the borders to look normal in html

Device (please complete the following information):

  • OS: windows
  • Browser chrome
  • Version 2024.2.14

nivle avatar Aug 09 '24 17:08 nivle