Telerik Forums
Reporting Forum
0 answers
157 views

I am developing with c# Telerik Winforms.
And I created a .trdp file using Telerik Reporting for label output.
Then I refered to the Telerik Reporting document.

<

Telerik.Reporting.UriReportSource urs= new Telerik.Reporting.UriReportSource();
urs = "Report.trdp";

>

I wrote it like this.
However, <urs = "Report.trdp";> gets the error "Cannot implicitly convert type 'Telerik.Reporting.UriReportSource'.

I want to print it out as a file made through Telerik Reporting, but I don't know what to do.

I made a .trdp file and put the .trdp file in the Report folder of my project.
And I want to send the parameters when I click the button on the cs, and make it output from the default printer right away without a preview.
I have no idea. Help me

 

++++ The designation of the reportSource for the uri was successful.
But the preview won't work.

>> Telerik.Repoting.UriReportSource urs = new Telerik.Reporting.UriReportSource();

urs.uri = @"Report/Report.trdp";

urs.Parameters.Add("Column", data);

 

Telerik.ReportViewer.Winforms.ReportViewer rv = new Telerik.ReportViewer.Winforms.ReportViewer();

rv.ReportEngineConnection = new Telerik.ReportViewer.Common.EmbeddedConnectionInfo().ConnectionString();

rv.ViewMode = Telerik.ReportViewer.Winforms.ViewMode.PrintPreview;

rv.ReportSource = urs;

 

rv.RefreshReport();

rv.ShowPageSetupDialog(); >>>> "There is no Report or the report is not previewed in the viewer"

I can't see how to print and if the value goes into the report.

arbam
Top achievements
Rank 1
Iron
 updated question on 06 Jul 2022
1 answer
279 views

Hello,

1.) I have a requirement to integrate our Web Application with a custom reporting editor just like your Telerik Web Report Designer with which our end users can customize Reports using Toolbox which will contain dynamic images, text statements or some dynamic fields including text box based on our data. In short, Can I populate the toolbox with my stored procedure working behind SQL Server ?

2.) I need the user to design only the layout for eg. the user will only select Questions from Question Bank (listed in toolbox) by dragging and we will get the answers of those questions from our database (SQL Server).

3.) Or, based on the requirement mentioned above if there is any alternative available, Please suggest.

0 answers
164 views

I have StartDate and FinishDate paraemeters and I want their default to always be "this year" so StartDate would always be the 1st of Jan of the current year and FinishDate would be the 31st of Dec of the current year.

Is this possible with the date expressions?

Here are some example I have saved in my notebook but cannot figure out this new requirement :-)

First Day of Last Month

= Today().AddDays(CDbl(1 - Today().Day)).AddMonths(-1)

 

Last Day of Last Month

= Today().AddDays(CDbl(- Today().Day))

 

First Day of This Month

= Today().AddDays(CDbl(1 - Today().Day)).AddMonths(0)

 

First Day of This Month Last Year

= Today().AddDays(CDbl(1 - Today().Day)).AddMonths(-11)

 

Last Day of This Month

= Today().AddDays(CDbl(1 - Today().Day)).AddMonths(0).AddMonths(1).AddDays(CDbl(-1))

Tommy
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 30 Jun 2022
0 answers
4.1K+ 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
496 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
248 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
171 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
150 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
360 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.4K+ 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
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?