Telerik Forums
Reporting Forum
1 answer
278 views

Hello,

I am trying to view a working example of the tr-report viewer, but it does not appear the rest api for the example angular report viewer is working. This is what happens when I run the example application using this serviceUrl: https://demos.telerik.com/reporting/api/reports/

Plamen Mitrev
Telerik team
 answered on 14 Jun 2021
1 answer
265 views

Goal: I want to create a .NET Standard class library with trdx reports so that I can deploy it with projects on various platforms.

I added a trdx file to the new library and made it an embedded resource but could not access it. I then stepped back, simplified, and added the report to a .NET Framework 4.7 Windows Forms app, again as an embedded resource.

        public Form1()
        {
            InitializeComponent();

            var a = System.Reflection.Assembly
                .GetExecutingAssembly()
                .GetManifestResourceStream("Reports.Report1.trdx");

            TypeReportSource reportSource = new TypeReportSource();
            reportSource.TypeName = "Reports.Report1.trdx";

            var reportProcessor = new ReportProcessor();
            RenderingResult result = reportProcessor.RenderReport("PDF", reportSource, null);
        }

a is populated (as a check) but rendering results in: {"Invalid report type"}

Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 11 Jun 2021
1 answer
667 views
As an example, I have a report with two report parameters. The first is year, the second is month. If I have AutoRefresh on, it reruns the query if I pick year OR month. So I disabled the AutoRefresh on the first parameter, so it would only re-run the query after setting the second parameter. However, when I do this, the second parameter does not AutoRefresh, and I have a Preview button.  Is this the way it was designed, or is something wrong??
Todor
Telerik team
 answered on 11 Jun 2021
1 answer
554 views

I have attached the error of the code while trying to integrate it into Core. Image of Report 1 &2 is the actual code, and Error image 3, 4, 5 is the result of the code error.

 

Thanks

Plamen Mitrev
Telerik team
 answered on 10 Jun 2021
2 answers
455 views

Hi!

My datasource includes one field which is a comma separated list of items. What I like to do is display these items in three columns inside my report.

Items: "item1, item2, item3, item4, item5, ... , itemX"
Displayed as

item1     item4    item7
item2    item5    item8
item3    item6    item9

How can I achieve this?

Regards
Heiko

Plamen Mitrev
Telerik team
 answered on 09 Jun 2021
1 answer
245 views

hi,

what is we have to do to distribute Telerik Reporting assemblies and merge them into a single
EXE or DLL that can be used by the custom application.

thx in advance,

Regards

Todor
Telerik team
 answered on 09 Jun 2021
2 answers
393 views

I am using Telerik reporting in a VB.net app.  The reports each preview correctly, but if I print directly to a printer, it comes up blank.  To PDF it saves a blank file.  To a physical printer, it goes through the motions with the driver, but nothing is actually printed.

Telerik.Reporting.dll is version 15.0.21.326.

What am I missing?

code below:

Public Sub SaveReport(ByVal myreport As Telerik.Reporting.Report, filename As String)
       
        Dim reportProcessor As Telerik.Reporting.Processing.ReportProcessor = New Telerik.Reporting.Processing.ReportProcessor()
        Dim instanceReportSource As Telerik.Reporting.InstanceReportSource = New Telerik.Reporting.InstanceReportSource()
        instanceReportSource.ReportDocument = myreport
        Dim renderingResult As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("PDF", instanceReportSource, Nothing)
        Dim fs As FileStream = New FileStream(filename, FileMode.Create)
        fs.Write(renderingResult.DocumentBytes, 0, renderingResult.DocumentBytes.Length)
        fs.Close()
    End Sub

 

Public Sub PrintReport(ByVal myreport As Telerik.Reporting.Report, ByVal Copies As Integer)
        strModErr = "Module1_PrintReport"
        Dim printerSettings As PrinterSettings = New PrinterSettings()
        Dim printController As PrintController = New StandardPrintController()
        Dim reportProcessor As ReportProcessor = New ReportProcessor()
        Dim instanceReportSource As Telerik.Reporting.InstanceReportSource = New Telerik.Reporting.InstanceReportSource()

        Try
            instanceReportSource.ReportDocument = myreport
            printerSettings.PrinterName = My.Settings.DriverLogPrinter
            printerSettings.Copies = Copies
            reportProcessor.PrintController = printController
            reportProcessor.PrintReport(instanceReportSource, printerSettings)
        Catch ex As Exception
            WriteErrorToLog(Err.Number, strModErr + " - " + Err.Description)
            Dim inner As Exception = ex.InnerException
            Do
                If inner IsNot Nothing Then
                    WriteErrorToLog(666, inner.GetType().Name + ": " + inner.Message)
                    inner = inner.InnerException
                End If
            Loop While inner IsNot Nothing

        End Try
    End Sub
   
Phil
Top achievements
Rank 1
Iron
 answered on 09 Jun 2021
2 answers
189 views

Hi,  I need your help please, do you have any idea how can I make this kind of report.

in each page, let say i have 10 rows and i set 3 data per page. The report will show the max row number  ("show 3 of 10 result." in the 1st page and for next page will show "show 6 of 10" )

is it possible? thank you

 

thank you

Neli
Telerik team
 answered on 08 Jun 2021
1 answer
1.1K+ views

I am trying to get the month returned in a string in a report parameter. I currently have

Now().Month

But I suspect it is returning the number of the month because the field is blank when I run the report, which is strange because the other report parameter is

Now().Year
and that works just fine. I tried formatting as a string, but that did not work either. What am I doing wrong?
Plamen Mitrev
Telerik team
 answered on 08 Jun 2021
1 answer
821 views

Hello Team, 

 I am trying to generate a new report in .net core using Telereik Reporting Tool with Object data source. I tried many sample code, by didnt work. Can you please help me how to create a report using object database. It would be greate i f you can provide me a working sample code

 

Thanks

 

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 03 Jun 2021
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?