Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nivle opened this issue Aug 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nivle
Copy link

nivle commented Aug 9, 2024

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 nivle added the bug Something isn't working label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant