Watermark problem in the viewer

Stimulsoft Reports.JS discussion
Kline
Posts: 35
Joined: Thu Nov 29, 2018 8:22 am

Watermark problem in the viewer

Post 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
Attachments
test_watermak.mrt
(622.37 KiB) Downloaded 383 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Watermark problem in the viewer

Post 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.
Kline
Posts: 35
Joined: Thu Nov 29, 2018 8:22 am

Re: Watermark problem in the viewer

Post by Kline »

Hello,
I tried to change the option but the result it's the same
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Watermark problem in the viewer

Post by Lech Kulikowski »

Hello,

Please try to png format for the image.

Thank you.
Kline
Posts: 35
Joined: Thu Nov 29, 2018 8:22 am

Re: Watermark problem in the viewer

Post by Kline »

I tried but nothing has changed
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Watermark problem in the viewer

Post by Lech Kulikowski »

Hello,

Please send the modified report and image.

Thank you.
Kline
Posts: 35
Joined: Thu Nov 29, 2018 8:22 am

Re: Watermark problem in the viewer

Post by Kline »

Hi,
I added the report and the image, the watermark with png is in the second page of the report

Thank you
Attachments
test_watermak_png.mrt
(2.34 MiB) Downloaded 720 times
image-0004.png
image-0004.png (1.73 MiB) Viewed 4411 times
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Watermark problem in the viewer

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue.

Thank you.
Attachments
Capture.jpg
Capture.jpg (245.65 KiB) Viewed 4393 times
Kline
Posts: 35
Joined: Thu Nov 29, 2018 8:22 am

Re: Watermark problem in the viewer

Post 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
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Watermark problem in the viewer

Post by Lech Kulikowski »

Hello,

Please send us a sample project which reproduces the issue for analysis

Thank you.
Post Reply