Render report with bookmark and links

Stimulsoft Reports.JS discussion
Post Reply
a.delbrocco@swen.it
Posts: 4
Joined: Sat May 18, 2019 5:17 am

Render report with bookmark and links

Post by a.delbrocco@swen.it »

Hi,

I've created a Report with Stimulsoft Editor using bookmarks and Hyperlink. In the preview all goes right. I can see bookmarks and navigate internal Hyperlink (link to bookmark). When I deploy to nodejs and export the PDF using Stimulsoft.Reports.JS, all bookmarks and hyperlink disappear.

To export in PDF I'm using this code:
report.render();
const pdfData = report.exportDocument(Stimulsoft.Report.StiExportFormat.Pdf);

Has anyone encountered this problem? If yes, how did you solve it?

Thanks in advance

Andrea Del Brocco.
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Render report with bookmark and links

Post by Lech Kulikowski »

Hello,

Please check the last release 2020.2.3, bookmarks and hyperlinks were added in the last build.

Thank you.
Arbia
Posts: 3
Joined: Fri Feb 18, 2022 6:48 am

Re: Render report with bookmark and links

Post by Arbia »

Hi,

I have the same problem, when using an image as Hyperlink in the Sti report. It disappears when export to PDF from .NET core code.
Can anyone help me, please ?

Thank you in advance.
Arbia.
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Render report with bookmark and links

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.

Thank you.
Arbia
Posts: 3
Joined: Fri Feb 18, 2022 6:48 am

Re: Render report with bookmark and links

Post by Arbia »

Hi,

Thank you for your reply.
I created a StiReport with Stimulsoft designer using ASP.NET Core and I attached an image as Hyperlink. Then, when I tried to export my report to pdf, the image disappeared.
This is my code:

public ActionResult ExportReport(int id, string extention)
{
StiReport stiReport = CreateReport(id);
stiReport.Compile();
stiReport.Render();

MemoryStream ms = new MemoryStream();
switch (extention)
{
case "pdf":
stiReport.ExportDocument(StiExportFormat.Pdf, ms);
break;
case "docx":
stiReport.ExportDocument(StiExportFormat.Word2007, ms);
break;

case "xlsx":
stiReport.ExportDocument(StiExportFormat.Excel2007, ms);
break;
}
return File(ms.ToArray(), "application/x-msdownload", "report.pdf");
}

I hope, it's clear.
Thanks.
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Render report with bookmark and links

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue on our samples.
Please send us a sample project that reproduces the issue for analysis.

Also, please clarify which version are you use?

Thank you.
Arbia
Posts: 3
Joined: Fri Feb 18, 2022 6:48 am

Re: Render report with bookmark and links

Post by Arbia »

Hi,

We use the package Stimulsoft.Reports.Web.NetCore , version 2021.3.7 .

SORRY, I can not send a sample project, because I'm working on a big project for a company but I already described to you what I want and what I did.
What I did in my previous post:
1. Load report
2. Compile report
3. render report
4. export to pdf

The report contains an hyperlink to an image.
Thank you.
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Render report with bookmark and links

Post by Lech Kulikowski »

Hello,

Please check the last release build 2022.1.6

Thank you.
Post Reply