Telerik Forums
Reporting Forum
1 answer
213 views

Good morning,

Every time I hit this button, I get a NullReferenceException:

As I don't actually need to have search capability, I'd like to just remove this button. Is there a way to do this and/or intercept the handler so I can suppress the action and/or is there a simple fix?

My XAML declaration is just:

Thanks!

Dimitar
Telerik team
 answered on 21 Apr 2022
1 answer
403 views

안녕하세요, 보고서 디자이너에서 subReport를 검색하는 방법으로 CSVDataSource를 사용하고 있습니다. CSVDataSource는 메인 리포트의 ReportParameter를 이용하여 값을 지정하므로 subReport의 ReportSource는 '=Parameters.SubReport Value'가 됩니다. 또한 Telerik에서 제공하는 ReportConnectionStringManager 클래스를 사용하여 소스 코드의 ConnectionString도 변경하려고 합니다. ReportConnectionStringManager 클래스는 SubReport의 ReportSource를 사용하지만 실제 매개변수 값을 가져오지 못하고 '= Parameters.SubReport.Value' 문자열을 가져와서 오류가 발생합니다. 문제를 처리하는 방법을 회신해 주시면 감사하겠습니다. 고맙습니다.

 

CC :  https://docs.telerik.com/reporting/knowledge-base/change-the-connection-string-dynamically-according-to-runtime-data#description

1 answer
722 views

Hello,

 

We have WPF app running on .NET Core 6 and Telerik.Reporting.16.0.22.225, Nuget package is installed. We are using VS 2022.

Now we are getting the error while adding Telerik Reporting R1 2022 new item into the project:

"The reference System.Drawing, Version=4.0.0.0 could not be loaded to the project"

As a result the Telerik Reporting Designer could not be opened

 

Do you have an idea how to resolve it?

 

Regards,
Yurii

Dimitar
Telerik team
 answered on 18 Apr 2022
1 answer
172 views

Report Services Are work 

 

[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLS","localizedName":"Excel 97-2003"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"MHTML","localizedName":"Web Archive"},{"name":"XPS","localizedName":"XPS Document"}]

 

but when we call from react js

Dimitar
Telerik team
 answered on 15 Apr 2022
0 answers
106 views
I have two tables in my detail section with the different data sources. The report preview itself is fine and it displays the contents of the tables separately, table 1 at the top and table 2 at the bottom, as expected. But when I want to export it to CSV format it shows the content of table 1 and the content of table 2 in the same row. Is there a way to display the content of the tables in separate rows? 
0 answers
169 views

I have a report with two data sources. There is not anything complicated about my report, but I do have 18 Report Parameters. The report takes a good 5 minutes to generate. When I performed a SQL trace, the first query is sent to the server repeatedly, (this is the slow-down) whereas the the other query is sent just once. Why is it doing this? Report is attached.

Thanks!

0 answers
101 views

I'm trying to achieve something in a report, and I'm getting nowhere and beginning to wonder whether I'm doing this all wrong.

As a data source for my report, I have a CLR object; It has the following structure (specifically the Bundle object):

 public class Bundle
    {
        public uint BatchId { get; set; }
        public uint BundleId { get; set; }
        public List<BundleItem> Items { get; set; } = new List<BundleItem>();
    }

    public class BundleItem
    {
        public uint CheckNo { get; set; }
        public string ReceivedFrom { get; set; }
        public string Bank { get; set; }
        public string Memo { get; set; }
        public decimal Amount { get; set; }
        public ushort AccountNo { get; set; }
        public string AccountDescription { get; set; }
#if NET6_0
        public DateOnly ContribDate {get;set;}
#else
        public string ContribDate { get; set; }
#endif
        public ushort PaymentType { get; set; }
        public DateTime EntryDateTime { get; set; }
    }

I'm able to instantiate that object, and want to pass it off to a report to render; it's a complicated scenario regarding how that CLR object is instantiated, so I'm not able to use something like a SqlDataSource, so I'm assuming the correct data source type to use is an objectDataSource. That side of things so far is working (as best as I can tell):

I need to build two different reports from this data: one that aggregates the BundleItems (contained in the Items property), and one that displays the list of BundleItems and their fields. I can drag-drop [= Fields.BatchId] and [= Fields.BundleId] to the report designer (I'm using VS integrated designer) and that works fine. I'm binding the datasource to the report via:

BundleReport report = new ();
report.DataSource = (object)_detailsList;
ReportViewer1.ReportSource = report;
ReportViewer1.ViewMode = ViewMode.PrintPreview;
ReportViewer1.RefreshReport();

That causes the report to open and display successfully. Success so far! 

The problems I'm having are related to the List<BundleItems>; no matter what I do the ReportViewer is just (I'm guessing) calling .ToString() on the list and getting back the type name. This has left me to wonder if I'm trying to do something that's just not supported; is there a way for me to visualize a List<BundleItem> in a report directly? Does it have to be done via a sub report? I'm feeling lost - and wondering if I'm just trying to achieve something that it's not really designed for (I know the old ReportViewer WinForm control hated working with anything other than DataSets).

Any guidance is greatly appreciated!

0 answers
179 views

Good Day

I have a report with 15 page, and when I scroll down it seems to hit pages where it won't continue loading.

On Chrome: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36, the limits seems to be on a 5 page boundary, page 5, 10, 15, etc...  On Firefox: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0, I get stuck on a 6 page boundary 6, 12, etc...

Oddly, my coworker doesn't run into this often on Chrome: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36.  When he did run into it, it didn't seem to have a defined page boundary.

Has anything one else seen this happen?

We're using: @progress/telerik-angular-report-viewer: 14.21.915

Thanks

Andrew
Top achievements
Rank 1
 asked on 12 Apr 2022
0 answers
187 views

We use the standalone Telerik report designer to create reports. When we preview them in the html5 viewer, everything looks good. I export the report to PDF and everything shows as expected. However, if I were to examine the text properties, the horizontal scaling is set to -100. I was able to see the horizontal scaling using the free version of PDF XChange Viewer. So while the PDF shows correctly in most places, we have run into rendering problems in certain areas of our software. Other PDF files generated by other software seem to use 100% scaling and they all work as expected. Where is this -100 horizontal scaling setting coming from? Is this part of the report and if so, can it be changed? Or is this the way Telerik generates the PDF?

Appreciate any help on this!

Igor
Top achievements
Rank 1
 asked on 11 Apr 2022
0 answers
198 views

Hello,

 

I can see that for the react sample that you have in your website you are consuming the report from this url https://demos.telerik.com/reporting/api/reportdesigner/reports/Barcodes%20report.trdx/ My question is how do you generate that json in order to display the report? Thanks

Here is the code:

export default class ReportDesigner extends Component {
    componentDidMount() {
        window.jQuery('#reportDesigner1')
            .telerik_WebReportDesigner({
                toolboxArea: {
                    layout: "list" //Change to "grid" to display the contents of the Components area in a flow grid layout.
                },
                serviceUrl: "https://demos.telerik.com/reporting/api/reportdesigner/",
                report: "Barcodes report.trdx"
            }).data("telerik_WebDesigner");
    }
    render() {
        return <div id="reportDesigner1"></div>
    }

}

 

Daniela
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 08 Apr 2022
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?