Rendering of watermark text

Jump to: Board indexJS, Java, PHP, FlexStimulsoft Reports.JS

Stimulsoft Reports.JS discussion

Rendering of watermark text

Post Wed Feb 07, 2018 3:41 pm

Hello,
I want to use different previews, a pdf-export and perhaps a direct print-function of a report with own watermark text. But the presentation changes dependent from view.
- Using StiPdfExportService with javascript ... all things seem to be ok.
- In a html-div (using javascript function StiViewer.renderHtml) I get different views dependent from zoom (setting StiViewerOptions.toolbar.zoom by javascript).
It seems that watermark isn't zoomed / scaled. Additionally watermark appears in the background and therefore parts of watermark are hidden (maybe because of the first issue).
- Watermark is not visible if I call StiReport.print().
- unimportant: In the preview of installed "Stimulsoft-Designer-2018.1.6-JS" (german language) the watermark text appears behind a data band (but with correct xy-position).

I'm using Chrome-Browser / Windows10.

Thanks
Lars
 
Posts: 2
Joined: Wed Feb 07, 2018 12:12 pm

Re: Rendering of watermark text

Post Sat Feb 10, 2018 1:32 pm

Hello.

Code: Select all
- In a html-div (using javascript function StiViewer.renderHtml) I get different views dependent from zoom (setting StiViewerOptions.toolbar.zoom by javascript).
It seems that watermark isn't zoomed / scaled. Additionally watermark appears in the background and therefore parts of watermark are hidden (maybe because of the first issue).

Do you use text watermark or image? We know about the issue with image, but can't reproduce the issue with text.

Code: Select all
- Watermark is not visible if I call StiReport.print().

Sorry, we can't reproduce the issue too. Could you send us more detailed description of the issue with samples?

Code: Select all
- unimportant: In the preview of installed "Stimulsoft-Designer-2018.1.6-JS" (german language) the watermark text appears behind a data band (but with correct xy-position).

Yes, the watermark is shown on the background. If you get any issue with this let us know.

Thank you.
HighAley
 
Posts: 7664
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rendering of watermark text

Post Tue Feb 13, 2018 1:36 pm

Hello,
I'm using a text watermark.
I created a small test-project now (based on current Stimulsoft-js-example), my attachment contains changed files only.

Additionally:
- In screenshot you can see a small (scaled) text "Trial" and a big (not scaled) text "Entwurf" after setting zoom=25%.
- Text "Trial" is in front but text "Entwurf" is behind data band (but it should be in front of the table).
- Quick-and-dirty-test of report.print(): If I insert into Stimulsoft-js-example after
Code: Select all
report.render();
additional code
Code: Select all
report.print();
then text "Entwurf" is not visible in print preview of chrome. In my own project (with typescript) I have a separate button and make a single call report.print() only, and the report is shown in preview window without "Entwurf".

Thank you
Attachments
ViewWithWatermark.png
Watermark with not scaled text "Entwurf" behind data band
ViewWithWatermark.png (20.28 KiB) Viewed 56 times
ChangesInStimulsoftJsExample.zip
Changed files of Stimulsoft-js-example
(7.92 KiB) Downloaded 8 times
Lars
 
Posts: 2
Joined: Wed Feb 07, 2018 12:12 pm


Return to Stimulsoft Reports.JS

Who is online

Users browsing this forum: No registered users and 2 guests