Page 1 of 4
Watermark problem in the viewer
Posted: Thu Nov 29, 2018 8:42 am
by Kline
Hi,
I'm valuating to buy your product and I found this problem: when I add an image as a watermark this is not correctly displayed in the viewer, it randomly appears when I browse the pages. I tried to use images with lower resolution but the result it's the same. The watermark text is always displayed.
I'm using report.js version 2018.3.5.
Please check the attached file.
Thank you
Re: Watermark problem in the viewer
Posted: Sat Dec 01, 2018 9:01 pm
by HighAley
Hello, Kline.
By default, the report is shown in HTML table mode.
There are some problems with overlapping components.
You could change it to the Div mode.
Please, try to set the next option:
Code: Select all
//for Designer
designerOptions.viewerOptions.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Div;
//for Viewer
options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Div;
Thank you.
Re: Watermark problem in the viewer
Posted: Mon Dec 03, 2018 8:32 am
by Kline
Hello,
I tried to change the option but the result it's the same
Re: Watermark problem in the viewer
Posted: Fri Dec 07, 2018 9:06 am
by Lech Kulikowski
Hello,
Please try to png format for the image.
Thank you.
Re: Watermark problem in the viewer
Posted: Mon Dec 10, 2018 8:29 am
by Kline
I tried but nothing has changed
Re: Watermark problem in the viewer
Posted: Mon Dec 10, 2018 1:47 pm
by Lech Kulikowski
Hello,
Please send the modified report and image.
Thank you.
Re: Watermark problem in the viewer
Posted: Mon Dec 10, 2018 2:03 pm
by Kline
Hi,
I added the report and the image, the watermark with png is in the second page of the report
Thank you
Re: Watermark problem in the viewer
Posted: Tue Dec 11, 2018 8:00 pm
by Lech Kulikowski
Hello,
We couldn't reproduce the issue.
Thank you.
Re: Watermark problem in the viewer
Posted: Wed Dec 12, 2018 9:19 am
by Kline
Hi,
I try to give you more details: I load datasources in an asynchronous way using a rest call, when the datasources are setted I load the template from a json and then i use the follwing code:
var options = new Stimulsoft.Viewer.StiViewerOptions();
options.appearance.fullScreenMode = true;
options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Div;
var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.report = report;
// "viewerContent" is the name of the div where the viewer is displayed
viewer.renderHtml("viewerContent");
When I watch the preview from the designer, the watermark is always displayed, the problem is only with the viewer.
Thank you
Re: Watermark problem in the viewer
Posted: Thu Dec 13, 2018 7:28 pm
by Lech Kulikowski
Hello,
Please send us a sample project which reproduces the issue for analysis
Thank you.