Telerik Forums
Reporting Forum
5 answers
1.8K+ views
When I try to set formatting to (###) ###-#### for a textbox, it still returns an unformatted string.

I would appreciate it, if you could let me know how I can set the formatting for telephone number in the report textbox.
dave
Top achievements
Rank 1
Iron
 answered on 12 May 2023
2 answers
397 views

Hi everyone,

I have a report design as the image below. I have set conditional formatting for the empty data will be hidden

But it has empty space when hiding many cells on the table

I have read many topics for this issue on the forum by using Group Explorer, Binding, and Designing the Basic Layout,.... but it does not work exactly

Hope to hear your solution

Thanks

son
Top achievements
Rank 1
Iron
Iron
 answered on 11 May 2023
1 answer
148 views

The html viewer stopped working for one of our customers. The site has not been updated since Feb 2023. At first, I thought that the issue was related to CORS, but after changing the project to allow all methods, all origins, basically accepting all requests, the viewer continued to throw the exception attached.

Any guidance as to what to review on the clients browsers to troubleshoot this issue will be highly appreciated. When trying from different locations, the same report works as expected. I think that something is blocking the CORS headers somehow.

The front-end is an angular application, backend is on an azure app service. This exception is only happening for just a set of users. we have used Chrome, Edge and Firefox. 

The error is also happening from an Ipad when using Chrome and Safari.

Todor
Telerik team
 answered on 10 May 2023
1 answer
242 views

We have a  WPF desktop application that displays reports using the report viewer and we also have our own print dialog where the user can input the number of copies to be printed. The print dialog also gets the default printer configured in our app. Previously, we display and print using InstanceReportSource but we want to now use Report Server for more consistent reports. We have successfully displayed the report from the report server in the report viewer but having problems with printing. Is there a way to override the print dialog of the report viewer or at least pass the parameters that we want (number of copies and default printer)? Another way that we are thinking of is if there is a way to extract the report from the report viewer and use that for our print dialog but ReportViewer.Report is null even though it is displaying the report.

 

Telerik.Reporting, Telerik.ReportViewer.Wpf (15.2.21.1110)

Dimitar
Telerik team
 answered on 10 May 2023
1 answer
109 views
Telerik reporting - which is more efficient? Binding rules or conditional formatting?
Todor
Telerik team
 answered on 10 May 2023
1 answer
107 views

I have exported a report template or "User Template" from the standalone designer and can place it in a "Templates" sub-directory of the standalone designer app directory.

So far I have not found a way to use a *.trtx template in the Web Designer. Will I have to use the *.trdp as a template instead?

Ivan Hristov
Telerik team
 answered on 01 May 2023
1 answer
300 views

I have a parameter in my report called "AvailableTables", which is bound to a CSV datasource with:

"table1",1

"table2",2

and the Value is bound to the digits, and the Label is bound to the "table1","table2"

I have a table in my report named firstTable which Visibility = False.  On that table, I have set up a conditional formatting rule such that when the value of a Report Parameter =1, it applys a format where visible is checked.

Similarly, I have a table in my report named secondTable which Visibility = False.  On that table, I have set up a conditional formatting rule such that when the value of a Report Parameter =2, it applys a format where visible is checked.

 

However, when I run my report, and change the report parameter, the "firstTable" and the "secondTable" never become visible.  I know the databinds are correct, as if I set Visible = True on that table, the data shows itself.  I also know that the Report Parameter is outputting the value of "1" and "2", as it is displayed in a textbox in my header.

Does telerik reporting support conditional formatting of visibility of a table based on report parameters?

 

I have attached a zipped TRDP file which illustrates the behavior in the standalone report designer.

Ivan Hristov
Telerik team
 answered on 29 Apr 2023
1 answer
122 views

I have a main report (A) which loads and embeds a 2nd report (B) as a subreport.

Report B can also be loaded on its own, without being contained in report A. 

I would like to hide (or blank out the value) in a Textbox on Report B if it has been loaded on its own. How do I do this?

Mike
Top achievements
Rank 1
Iron
 answered on 24 Apr 2023
1 answer
257 views

ReportXmlSerializer().Serialize() throws unexpected System.ArgumentException:
'Invalid name character in 'MyData[]'. The '[' character, hexadecimal value 0x5B, cannot be included in a name.'

How can I prevent this?
- Or -
What other way can I save the data with the report?
private void CreateReport() {
    var report = new Telerik.Reporting.Report();
    report.Name = "MyReport";
    var detail = new Telerik.Reporting.DetailSection();
    report.Items.Add(detail);
    var textBox = new Telerik.Reporting.TextBox();
    textBox.Value = "Hello World!";
    detail.Items.Add(textBox);

    var dataSource = new ObjectDataSource();
    dataSource.Name = "MyData";
    dataSource.DataSource = MyData.Sample;

    report.DataSource = dataSource;

    var reportPath = @"C:\develop\Temp\MyReport.trdp";
    new ReportXmlSerializer().Serialize(reportPath, report);
}

public class MyData {
    public static readonly MyData[] Sample = { new() { Text = "Foo", Number = 42 }, new() { Text = "Bar", Number = 21 } };

    public string Text { get; set; }
    public int Number { get; set; }
}

Dimitar
Telerik team
 answered on 19 Apr 2023
1 answer
188 views

Our app interacts with the user asking for datasource and let the user select columns, sorting, groups etc und presents the resulting data in a DataGrid.  Now we want to display the data in a report that is created by the user. 
We use .NET 6.0, WPF and Telerik.Reporting 17
I have searched for a solution, but there are too mutch examples which no longer function at all.
- I did not find a solution using embeded ReportDesigner because apparently no embedded designer exists anymore
- I did not find a solution with the external ReportDesigner because I could not transfer the data from the app to the designer.
How can I accomplish my task?

Dimitar
Telerik team
 answered on 19 Apr 2023
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?