Embedding external file into the final report

Stimulsoft Reports.JS discussion
Post Reply
husein
Posts: 5
Joined: Wed Apr 24, 2019 2:45 pm

Embedding external file into the final report

Post by husein »

Hi,

Is it possible to embed an external PDF, DOCX or Excel file(s) into the report and have them available once the report is exported as PDF? I found on your web site that you mentioned that such an option would be available with 2016.2 version. I am using 2018.3.5 at the moment but cannot seem to get this to work.

Best regards,
Husein
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Embedding external file into the final report

Post by Andrew »

Hello,

Yes, you can use report resources. Please check the video at https://www.youtube.com/watch?v=orReVKB ... 6tRIUW6Ye7
Please use the latest version 2019.2.3.

Thank you.
husein
Posts: 5
Joined: Wed Apr 24, 2019 2:45 pm

Re: Embedding external file into the final report

Post by husein »

Hi Andrew,

I had a look at the video but I have a different requirement. Basically I need to dynamically add files using C# code and then in the report to access these files using a hyperlink or some other mechanism. I have a questionnaire and each response has different file(s).There can be 100+ questions and answers and file(s) need to be enumerated after the answer.

I tried adding a test file to the Resources, but I cannot open the file using a hyperlink. Could you help me out with these issues please? Should I use report.Dictionary.Resources.Add() to add the files dynamically? Considering that I will know which file is added to which answer, how can I reference the file in a hyperlink?

Best regards,
Husein
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

Re: Embedding external file into the final report

Post by Lech Kulikowski »

Hello,

Unfortunately, in the JS version, it is not possible to open a file by hyperlink.

Thank you.
husein
Posts: 5
Joined: Wed Apr 24, 2019 2:45 pm

Re: Embedding external file into the final report

Post by husein »

So, how can I access embedded files once a PDF is generated?
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

Re: Embedding external file into the final report

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
husein
Posts: 5
Joined: Wed Apr 24, 2019 2:45 pm

Re: Embedding external file into the final report

Post by husein »

Basically, the thing is like this. The application that I am building collects answers to the questions and as part of the answer there is a need for an evidence to be attached. Evidence(s) is a file or collection of files. When the report is generated with the answers provided by a user, I need to embed all the files that were attached in a questionnaire. After each answer I need to list these attached files for that answer so that a reader can click on the embedded file and open it.
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

Re: Embedding external file into the final report

Post by Lech Kulikowski »

Hello,

Unfortunately, this feature is not available.

Thank you.
Post Reply