Telerik Forums
Reporting Forum
2 answers
999 views

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.

Todor
Telerik team
 answered on 06 Nov 2020
5 answers
252 views

Stand Alone Q2 2016

We need to include a value from the first data set record in the page header of reports.  In other report writers (Crystal) you siply put the field into the header and the value in the first record shows up file.

In Telerik it looks like we need to use pageExec and reference a scope.  I am using the following expression in a text field in the header and it is showing up in the report fine.  The scope "ReportHeaderName" is the label of another text field located in the table that is in our detail section. 

[=pageExec("ReportHeaderName",first(Fields.ReportHeaderName))]

The problem I am having is that the field does not get exported to Excel. 

How do I resolve the problem?

Neli
Telerik team
 answered on 06 Nov 2020
10 answers
1.1K+ views

Hi All, 

Format type in excel for the date and number fields is showing as 'General' and 'Custom'.

How to convert the excel format to 'Short Date' and 'Number' format type from report side.

Please find the attached files.

Thanks

Vikram

Todor
Telerik team
 answered on 06 Nov 2020
1 answer
243 views

Hello everyone,

i have some questions concerning the filter option in tables.

I used the filter on rows (table groups in group explorer) -I cannot find this feature anymore. Using filter on the Detail group (in the group explorer) don´t seem to work -i cannot get any result if i´m using it there.

Also my example file which has / had row filters implemented does not work anymore?

Adding a external group seems to have an effect on new row groups - but also adds new lines in the table which i don´t need?

Is this feature gone?

How can i get to filter rows?

Regards Alex

Neli
Telerik team
 answered on 04 Nov 2020
3 answers
273 views
How do I create a report book in a .net core 3.1 application. I've got single reports working and I tried to create a custom resolver, but the documentation doesn't seem to fully apply to .net core. It really shouldn't be this hard. I've got several reports working, I just want to put them into a single document based on several conditions.
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 03 Nov 2020
1 answer
1.1K+ views

Hi,

 

I have created one Standalone report with an Object Person (Which contains properties Name, Number and DOB).

 

Then, I'm using below code to generate PDF from this report.

 

            var reportProcessor = new ReportProcessor();
            var deviceInfo = new System.Collections.Hashtable();

            var reportSource1 = new UriReportSource();
            reportSource1.Uri = "/report.trdp";
            var reportSource = new InstanceReportSource();
            var report = new Telerik.Reporting.Report();
            var objectDataSource1 = new Telerik.Reporting.ObjectDataSource();
            objectDataSource1.DataSource = new Person() { DOB = DateTime.Now, Number = 1293737, Name = "test" };
            objectDataSource1.Name = "PersonDataSet";
            report.DataSource = objectDataSource1;
            reportSource.ReportDocument = report;
            reportSource.ReportDocument.ReportSources.Append(reportSource1);

            RenderingResult result = reportProcessor.RenderReport("PDF", reportSource, deviceInfo);

            string fileName = result.DocumentName + "." + result.Extension;
            string path = System.IO.Path.GetTempPath();
            string filePath = System.IO.Path.Combine(path, fileName);

            using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
            {
                fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
            }
        }

 

But, It generates only empty report.

 

Can anyone help me to resolve this?

 

Thanks,

Aravindh 

Mads
Telerik team
 answered on 02 Nov 2020
3 answers
256 views
Hello people. Thanks for reading my post.

I am working for some time on a C# Windows Form app with Teleriks Reports as a part of it.

It worked some time, and now when i try to test it, i only get this error on the teleriks report, trying to load it, create it or even create it from another new project:


To prevent possible data loss before loading the designer, the following errors must be resolved:
1 Error
Why am I seeing this page?
Object reference not set to an instance of an object.
 
Instances of this error (1)
1.
at System.Drawing.Printing.PrinterSettings.GetModeField(ModeField field, Int16 defaultValue, IntPtr modeHandle)
at System.Drawing.Printing.PageSettings.get_Landscape()
at Telerik.Reporting.Drawing.PageSettings..ctor(PageSettings pageSettings, PrinterSettings printerSettings)
at Telerik.Reporting.Drawing.PageSettings.GetPrinterPageSettings()
at Telerik.Reporting.Drawing.PageSettings.get_DefaultPageSettings()
at Telerik.Reporting.Report..ctor()
 
Help with this error
 
Forum posts about this error
 
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 30 Oct 2020
1 answer
146 views

Hi,

i am new to telerik reporting. i tried to generate reports through API libraries in C# provided by telerik. In local , I am able to build the webapplication and generate report. But when try doing same in server .I am unable to. I am getting error that "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"

 

 

 

        <add key="connectionString" value="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XXXXXX)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xxxx)));User Id=xxx;Password=xxx" />
        <add key ="providerName" value="Oracle.ManagedDataAccess.Client" />

 

I have put following entries "manage.config" file in both the systems

    <system.data>
      <DbProviderFactories>
      <remove invariant="Oracle.ManagedDataAccess.Client" />
      <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=xxxxxx" />
   </DbProviderFactories>
    </system.data>

 

Please find the details of local as well as server

Local-

   OS - windows10 Pro , 64 bit

Server

OS- windows server 2012 standard 64 bit

 

I take build on webapplication visual studio 2019

Target platform : .NetFramework 4.6.1, x86, ConsoleApplication

I copy the same files(which are generated in build) to server and run the exe file. 

There other java applications connecting to above database on server.

Kindly help me here.

 

 

 

 

Todor
Telerik team
 answered on 30 Oct 2020
1 answer
149 views

Hi,

I am new to telerik reporting.   I have designed sample report.

i have added a crosstab , linegraph in detail section .

My datasource has 3 rows  I get 6 pages of output.

But I am expecting only single page output.

Kindly help me here.

 

Mads
Telerik team
 answered on 30 Oct 2020
3 answers
559 views

Hello,

Can someone please point me to some sample code having a master/detail section such as is found on a purchase order or invoice that is using ASP.NET Core 3.1 or better? I can't quite seem to see how to get both of the data source hooked up properly when using an ObjectDataSource.

 

Thank you,

Scott

Todor
Telerik team
 answered on 29 Oct 2020
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?