Telerik Forums
Reporting Forum
1 answer
1.5K+ views

I have Rest Service (ASP.Net Web Application-->Empty-->check MVC)

Result: successed (pictrure: 1.jpg)

I have project Angular and call Rest Service

<tr-viewer [containerStyle]="viewerContainerStyle"
[serviceUrl]="'http://localhost:56342/api/reports'"
[viewMode]="'INTERACTIVE'"
[scaleMode]="'SPECIFIC'"
[scale]="1.0">
</tr-viewer>

Error (picture: 2.jpg)

Error loading the report viewer's templates. 

 

Bob
Top achievements
Rank 2
Veteran
Iron
 answered on 16 Jun 2020
15 answers
1.7K+ views
I have a table that has a column that may or not be visible. When it isn't visible I then need to adjust the proceeding 2 columns, one to put in the now invisible column's space and the second to increase its width. I have been able to get the column to be invisible via formatting but am not sure how to move and adjust the other columns. I had the same issue with rows and had to create a table for each row and keep track of the visibility and location of each row myself.
Daniel
Top achievements
Rank 1
 answered on 15 Jun 2020
3 answers
177 views
We have 2020 R2. I'm trying to implement a ReportSource class but when I try to implement the required Clone method VS 2019 gives me the error "no suitable method found to override". What's going on?
Todor
Telerik team
 answered on 15 Jun 2020
0 answers
155 views

Hi,

I want to generate a pdf report expected to have 8000 pages. As of now I am experiencing Memory Out of Exception. Is it possible to generate the report in batch mode. For example, generate 1000 pages first then the next batches

or 

Is there any other ways to over come this memory out of exception issue.

 

 

Thanks

Mathavan
Top achievements
Rank 1
 asked on 15 Jun 2020
1 answer
245 views

I have a line chart report with only one series and has 4 Legends(Legend A, Legend B, Legend C & Legend D) in it. And I have assigned 4 different color patterns to the chart.

The order is Green, Red, Blue, Yellow.

 

Now, when the Report loads the data for all the Legends, the Colors are mapped correctly. For Example, Legend A = Green, Legend B = Red, Legend C = Blue & Legend D = Yellow in the same order.

There is a scenario where in the report has the data only for 2 legends( Legend B and Legend D). In this case, the report automatically chooses Legend B to be Green and Legend D to be Red.

Is there a way to set or map individual colors to the legends? Like Legend A should always be Green, Legend B as Red, Legend C as Blue & Legend D as Yellow.

I know if we use 4 series in the chart then this is possible, but i do not want to use multiple series.

Todor
Telerik team
 answered on 12 Jun 2020
2 answers
2.7K+ views

Good Day,

I would like to as if it is possible to create a table in the report with a dynamic result table from MSSQL Stored Procedure ?

 

Thank you,

Sherwin

Channah Miriam
Top achievements
Rank 1
 answered on 10 Jun 2020
1 answer
63 views

We use Telerick reporting version 13.0.19.222.

On an aspx page, we have a ReportViewer to display reports, we have the option on the page to switch between Interactive and PrintPreview mode.

When the report runs for parameters that generates a long report (100+ pages), the PrintPreview mode works fine, but the Interactive view basically crashes IE, Or at least, the report never displays and the aspx page gets in a state that makes it un-usable - we then have to reload the page if we need to run the report.

 

 

I could not see any errors coming from IE or the Telerick components, in the debug tools of IE or anywhere else.

 

 

When we try the exact same thing with any other browser (Chrome, Edge, etc...) the report loads fine in Interactive mode or Print Preview mode.

 

 

Is there anyway to fix this issue that you are aware of? Or is there known limitations with IE and the Intercative mode for the ReportViewer ?

Any help will be appreciated.

Thanks.

 

 

 

 

Todor
Telerik team
 answered on 09 Jun 2020
1 answer
597 views

Hi,

I spent hours trying to filter Table data in GroupFooterSection. We need to filter it by group scope, how can we do this? Filter like Fields.code = Exec('group',Fields.code) didn't work. Many thanks in advance.

 

Todor
Telerik team
 answered on 08 Jun 2020
4 answers
181 views
hi,
I created a telerik report with table in which a row is having very large text.When the report is exported to pdf the first page of report is blank and table is shown from the second page.although i kept together as false still i am unable to fix this issue.

here is the code i am using to set datasource to table

   private static Random random = new Random((int)DateTime.Now.Ticks);
        private string RandomString(int size)
        {
            StringBuilder builder = new StringBuilder();
            char ch;
            for (int i = 0; i < size; i++)
            {
                ch = Convert.ToChar(Convert.ToInt32(Math.Floor(26 * random.NextDouble() + 65)));
                builder.Append(ch);
            }

            return builder.ToString();
        }
     
         DataTable GetTable()
        {
          
            DataTable table = new DataTable();
            table.Columns.Add("Dosage", typeof(int));
            table.Columns.Add("Drug", typeof(string));
            table.Columns.Add("Patient", typeof(string));
            table.Columns.Add("Date", typeof(DateTime));
            table.Columns.Add("Desc", typeof(string));
            string test =  RandomString(10000);
            table.Rows.Add(25, "Indocin", "David", DateTime.Now, test);

            return table;
        }

         private void Report1_NeedDataSource(object sender, EventArgs e)
         {
             this.table1.DataSource = GetTable();
         }
Channah Miriam
Top achievements
Rank 1
 answered on 07 Jun 2020
3 answers
80 views

Hi,

So I'm trying to stop our reports from auto-loading and the only viable way seems to be stopping the date parameter from auto loading the current date.

I've tried setting the default value to NULL or random strings in both the report designer and XML (see attachments) to try and cause an error to stop the reports auto loading but it still sets the date to today regardless of what I set the initial value to.

Is there a way to achieve what I'm looking for?

Richard
Top achievements
Rank 1
 answered on 05 Jun 2020
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?