Telerik Forums
Reporting Forum
0 answers
112 views

 

I'm trying to do a report with one table composed with 2 rows of diferent information. Table seems to get the correct values for both rows but after creating the render pdf file all the columns have the same values.

There's the code I use:

            ObjectDataSource dataSource = new ObjectDataSource();
            dataSource.DataSource = typeof(ReportInformation);
            dataSource.DataMember = "Member";
            _Table.DataSource = dataSource;

           

 // -------------------- First I configure the column header  ----------------------------- //

            ColumnsDataModel columns = GetColumnsByUser();
            int numFields = columns.Count;
            for (int ii = 0; ii < numFields; ii++)
            {
                ColumnsInformation column = columns.Fields[ii];
                _Table.Body.Columns.Add(new TableBodyColumn(Unit.Pixel(column.Width)));

                TableGroup tableGroup = new TableGroup();
                TextBox tb = new TextBox()
                {
                    Value = columns.Fields[ii].Name,
                    Size = new SizeU(Unit.Cm(6.0), Unit.Cm(1.0))
                };
                tableGroup.ReportItem = tb;
                _Table.ColumnGroups.Add(tableGroup);
                _Table.Items.Add(tb);
            }

            TableGroup rowGroup = new TableGroup();
           
            // ----------------- Then the table body (Rows) ------------------- //


            for (int jj = 0; jj <rows.Count ; jj++)
            {
                rowGroup.Groupings.Add(new Grouping(null));
                _Table.RowGroups.Add(rowGroup);
                _Table.Body.Rows.Add(new TableBodyRow(Unit.Cm(0.6)));

                for (int ii = 0; ii < numFields; ii++)
                {
                
                    TextBox tb = new TextBox();
                    tb.Size = new SizeU(Unit.Cm(6.0), Unit.Cm(0.6));
                    tb.Value = cell_value;
                    
                    _Table.Items.Add(tb);
                    _Table.Body.SetCellContent(jj, ii, tb);
                }
            }
        }

Strangelly If I change that "jj" in SetCellContent for a 0 it displays one row twice and "jj" displays the other one twice

Best regards

Roger
Top achievements
Rank 1
 asked on 26 Nov 2018
5 answers
204 views
There is a setting in page layout where you can set the page width from automatic to 1 page, 2 page. Can we use this feature while exporting the telerik report to excel. This will enable the report to be printed on a single page.
Silviya
Telerik team
 answered on 26 Nov 2018
5 answers
451 views

Hi,

we are evaluating if we can use your reporting system for our software.

 

As we are printing many labels directly to label printers (e.g. cab a4+ 200 dpi) we have to know how do you transfer the barcodes of reports to the printer. Are barcodes directly sent using barcode fonts, or are barcodes preprocessed and transfered as images to the printer? Our experience has shown, that if barcodes are sent as image to the barcode printers, that some barcode readers (especially old ones) are not able to read the barcodes.

 

Thanks!

Nasko
Telerik team
 answered on 22 Nov 2018
2 answers
532 views
Hi,

We have identified that CDbl function work as intended only when the data (number) is according to the format of the machine region.

eg: If a number is 33165,25 Norwegian region, CDbl will work only if the machine region is set to Norway, otherwise it will throw an error.

Is there any workaround for a scenario where we need to use data formatted according to a different region setting compared to the machine region.

Thanks.
Rajika
Top achievements
Rank 1
 answered on 21 Nov 2018
1 answer
282 views

I have two project used Telerik Reportting and host on one computer. When I export report then show error. 

 

 

Silviya
Telerik team
 answered on 21 Nov 2018
5 answers
442 views
From the report designer, I've created a connection to the reporting server successfully. I created a new report and testing it with web preview works as expected. However, when I attempt to publish the report, I get an error message stating "Publish operation failed". I see no other details to understand why it would not publish. Any ideas where I can look for more details or is there something I should be doing prior to publish?
Silviya
Telerik team
 answered on 20 Nov 2018
1 answer
98 views

developing a report in VS and upon running only produces data in column 1 and doesn't return all the records.  (See picture 1).  I imported the report into Report Designer connected the connection to an Access DB and run the report and returns records as they should. (See Picture 2).  I am not sure what is happening. I copied all the header columns and detail columns from Report Designer and pasted in my VB project.  

There isn't anything wrong with the SQL as it produces all records if running the query on its own.  

Silviya
Telerik team
 answered on 20 Nov 2018
1 answer
234 views
Am new to Telerik reporting. Have tried creating a report where data source accesses SQL Server stored procedure that uses sp_executesql command. There are no temporary tables in this sql. The resulting data source does not show any of the columns from the stored procedure. Is there a work-around for dealing with this? Thanks
Silviya
Telerik team
 answered on 20 Nov 2018
1 answer
87 views

With the Pie Graph in Telerik reporting, the Pie looks kind of blah when we compare it to our Pie graph we use with Kendo UI.

The designer would like to see the same roundedBevel treatment in the Reporting too.

See attached. 

Possible?

 

 

Silviya
Telerik team
 answered on 20 Nov 2018
1 answer
107 views

Hi All!

I want to build a graph with time values:

YAxis - Numeric (i convert TimeSpan to integer with TimeSpan.TotalSeconds and and use this number in the graph)

XAxis - Category

please see the attached screen.

How i can replace numeric values with Time values? I tried formatting and it does not help. probably need to listen to events, but I could not find an example.

I really need your help.

Nasko
Telerik team
 answered on 19 Nov 2018
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?