Page 1 of 1
Render report with bookmark and links
Posted: Wed May 06, 2020 11:42 am
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.
Re: Render report with bookmark and links
Posted: Fri May 08, 2020 11:22 am
by Lech Kulikowski
Hello,
Please check the last release 2020.2.3, bookmarks and hyperlinks were added in the last build.
Thank you.
Re: Render report with bookmark and links
Posted: Fri Feb 18, 2022 7:01 am
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.
Re: Render report with bookmark and links
Posted: Fri Feb 18, 2022 7:39 am
by Lech Kulikowski
Hello,
We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Re: Render report with bookmark and links
Posted: Fri Feb 18, 2022 7:50 am
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.
Re: Render report with bookmark and links
Posted: Fri Feb 18, 2022 8:59 am
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.
Re: Render report with bookmark and links
Posted: Fri Feb 18, 2022 9:26 am
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.
Re: Render report with bookmark and links
Posted: Fri Feb 18, 2022 10:39 am
by Lech Kulikowski
Hello,
Please check the last release build 2022.1.6
Thank you.