Telerik Forums
Reporting Forum
0 answers
4.3K+ views

Hi,

We just installed Visual Studio 2022 and none of our Telerik Reports load in the designer (just a blank screen).  We are using R3 2016 SP1 (10.2.16.1025).   This is a legacy winforms app using .net framework 4.5.2.  Am I missing something or is 2016 not supported in 2022?  If it is not supported, can you tell me what the earliest version of Telerik Reporting is supported in Visual Studio 2022?  I would like to minimize the conversion process.

Thank you,

David Adams

2 answers
608 views

Hi,

I am trying to implement the Web Report Designer using version 16.1.22.511 under .NET Framework 4.8.

I have a custom IDefinitionStorage, but the behaviour is exactly the same using the native FileDefinitionStorage.

I have only one report named Report1.trdp. When I try and upload two reports in the Assets Manager, Report2.trdp and Report1.trdp, the following method gets called twice.

Task<ResourceFileModel> GetModelAsync(string uri)

Please see 1_upload_report1.png and 2_upload_report2.png to see what it returns, and 3_upload_results.png to see the result (it successfully uploaded Report2.trdp, and failed to upload Report1.trdp because it already exists).

 

Now I would have expected the same kind of behaviour when trying to create new reports, ie allow reports that don't match by name an existing one and reject reports that do or at least warn the user.

When I try and create a new report named Report2.trdp, the following method is called (see 4_new_report2.png)

Task<byte[]> GetAsync(string resourceName)

It returns null because no such report already exists, then the following method is called

Task<ResourceFileModel> SaveAsync(SaveResourceModel model, byte[] resource)

When I try and create Report1.trdp however, the first method (GetAsync) returns an actual byte[] (see 5_new_report1.png) and an exception is thrown by Telerik.WebReportDesigner.Services (see 6_new_report1.png). If I continue the execution, the second method (SaveAsync) eventually gets called, and my Report1.trdp gets overwritten by the new report.

I've also included some details, see 7_new_report1.png.

Thanks in advance,

Arthur

Arthur
Top achievements
Rank 1
Veteran
Iron
 answered on 28 Jun 2022
4 answers
292 views
Hi,
some of our corporate reports have editable text fields where data can be entered into the pdf document and printed (but not saved).
Does Telerik Reporting have this functionality for it's text controls?

Regards
Roger
Todor
Telerik team
 answered on 28 Jun 2022
1 answer
203 views

Hello 

Please find the attached files,  Is there any workaround for this, the numbers in Arabic text always misplaced. This is very important if you are using for certificates.

Culture is set to Default. and i have tried changing the culture but same result.

Can anyone advice, what are the preferable settings for this. 

Thank you.

n/a
Top achievements
Rank 1
Iron
Iron
 answered on 25 Jun 2022
0 answers
175 views

Hi,

 

I am using the HTML5 viewer under .Net 6. I have 2 parameters CICAreaFilter and SubReportVisible.

I am using this Javascript to pass values to these parameters:

        $(document).ready(function () {

            $("#reportViewer1")
                .telerik_ReportViewer({
                    serviceUrl: "api/reports",
                    reportSource: { report: "First Attempt.trdp" },
                    parameters: [ { CICAreaFilter: 'GEN' }, { SubReportVisible: true }],
                    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
                    scale: 1.0
                });
        });

The parameters are not being set in the report. What do I need to change to get these parameters to work? I have tried 1 parameter and it also does not work.

 

Thanks.

 

Lloyd.

Lloyd
Top achievements
Rank 1
 asked on 22 Jun 2022
1 answer
401 views

I have a relatively simple report.  Four columns, three of which will contain little data, but the fourth could contain a large amount (see figure attached).

How do I get the row bottoms of the first three columns to align with the fourth?

All columns have Behavior defined as:
Culture                 (default)
Keep Together   TrueMultiline              True
Visible                 True

All have Appearance.TextWrap True

The detail section that they are in has Behavior defined as:
CanShrink            False
Keep Together   TruePageBreak           None
Visible                 True

Report is created with standalone designer version 16.1.22.511

 

Dimitar
Telerik team
 answered on 22 Jun 2022
24 answers
1.5K+ views
Using released, licensed version 1.0 of the report component, I follow (closely enough, I should think) the instructions in the help file's quickstart for creating a simple report. I connect to the AdventureWorks database, and enter a SQL statement to select all from the Production.Product table using the query builder. When I test, I get 500 +/- rows returned, so I "Finish" and close the datasource configuration wizard.

Step 15: Set the DataSOurce property for the Report component. I click the down-arrow on the datasource property line, and get a message: "Value does not fall within the expected range".

I've tried this with the trial version and the released version on two different machines, against SQL2005 and SQL2005Express. 

What am I missing? Thanks in advance.
FL-Developer
Top achievements
Rank 1
 updated answer on 20 Jun 2022
1 answer
331 views

I am getting an error when attempting to run a WinUI project with the Telerik.ReportViewer.WinUI NuGet package installed.  Project builds without errors, but when I attempt to run the project, I get the following error:

Exception thrown: 'System.IO.FileNotFoundException' in Telerik.ReportViewer.WinUI.Themes.dll

In App.xaml I have added:

<ResourceDictionary Source="ms-appx:///Telerik.ReportViewer.WinUI.Themes/Themes/Generic.xaml"/>

The application target framework is .Net 6.0.  I attempted to following the example projects that were mentioned here.  What am I missing?

I also get the following errors if I add the Telerik.WinUI.Controls (2.0.0) NuGet Package.  The errors are:

PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry.

PRI222: 0x80073b0f - Unspecified error occurred.
Todor
Telerik team
 answered on 20 Jun 2022
2 answers
237 views

Hi,

we have troubles with the excel report creation. We defined a footer with a left, middle and right textbox which renders correctly in a PDF [pdf-Screenshot 2022-06-13 103500.png] but in Excel it renders the left and middle textbox in the left footer in Excel [excel-footer-Screenshot 2022-06-13 103646.png]. Additionally the height of the footer seems to be wrong because the margins won't be setup correctly [excel-height-Screenshot 2022-06-13 103622.png].

This is the code we use to create the reports:


        private static byte[] Render(ReportFormat format, ReportData values)
        {
            var serializerSettings = new JsonSerializerSettings
            {
                ContractResolver = new CamelCasePropertyNamesContractResolver()
            };

            var jsonValues = JsonConvert.SerializeObject(values, serializerSettings);
            var reportPath = Configuration.AppSettings.Read("ReportPath");
            var uriReportSource = new UriReportSource
            {
                Uri = reportPath,
            };
            uriReportSource.Parameters.Add("Parameter1", jsonValues);
            var r = new ReportProcessor();

            var formatString = format switch
            {
                ReportFormat.Excel => "XLSX",
                ReportFormat.Pdf   => "PDF"
            };

            var result = r.RenderReport(formatString, uriReportSource, new Hashtable());
            return result.DocumentBytes;
        }

Greetings

Jan



Jan
Top achievements
Rank 1
Iron
 answered on 20 Jun 2022
9 answers
664 views
in my DB, I have submit date & Due Date field.  I added a textbox & I try to calculate the past due date but it throw me an error
can someone help me with this?

= Fields.Date - Fields.[DueDate]  (I got error here)
Doors
Top achievements
Rank 2
Iron
 answered on 16 Jun 2022
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?