This is a migrated thread and some comments may be shown as answers.

Generate report from byte array

2 Answers 974 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sg
Top achievements
Rank 1
Veteran
sg asked on 04 Nov 2020, 02:18 AM

Hi,

In my angular program, I am using kendo-angular-upload to allow user upload multiple PDF files or images then uploaded file details (file name, extension, size, content type, file content) are save into database. The file contents are saved in byte array format.

I need a "Print All Files" button to combine all uploaded documents (can be combination of PDF files / images) then user can download / print in one click. So I am thinking to generate all uploaded document in one Telerik Report and user can view / download / print from there.

Below are my questions:

> Is there any way I can generate report from byte array? If can, kindly provide example.

> Is there any way I can combine multiple records of byte array into 1 report? If can, kindly provide example.

Thank you.

2 Answers, 1 is accepted

Sort by
0
sg
Top achievements
Rank 1
Veteran
answered on 06 Nov 2020, 03:35 AM
Correction: the content of PDF / images is stored as varbinary in database
0
Todor
Telerik team
answered on 06 Nov 2020, 01:44 PM

Hi sg,

The Telerik Reporting engine can render data-driven reports with a design described in a Telerik Reporting report definition that is a descriptive report (TRDP or TRDX file), or a CLR class inheriting from the base Telerik.Reporting.Report class - see Designing Reports article.

Our reporting tool cannot generate reports from other documents like PDF files. You may include an image in a report definition through the PictureBox report item. However, this is not possible for a PDF document.

You may try to achieve the requirement with the Telerik Document Processing Libraries.

Regards,
Todor
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
sg
Top achievements
Rank 1
Veteran
Answers by
sg
Top achievements
Rank 1
Veteran
Todor
Telerik team
Share this question
or