Telerik Forums
Community Forums Forum
1 answer
626 views

Hello every one ,

in this question i just want to create Telerik report with an empty table  and assign table data source from code.

in output window the Telerik Report Show without table

here is my code from window form  :

all this code below written in from load of reportviewerform.cs

var sourceReportSource = new UriReportSource { Uri = @"C:\Users\ali.raza\source\repos\telerick_windowform\telerick_windowform\Reports\SampleReport.trdp" };
            var reportInstance = UnpackageReport(sourceReportSource);
            var report = (Report)reportInstance;
            Telerik.Reporting.Table processingTable = report.Items.Find("table1", true)[0] as Telerik.Reporting.Table;
            //Telerik.Reporting.Processing.Table processingTable = (sender as Telerik.Reporting.Processing.Table);
            this.table2.ColumnGroups.Clear();
            this.table2.Body.Columns.Clear();
            this.table2.Body.Rows.Clear();
            Telerik.Reporting.TextBox textboxGroup;
            Telerik.Reporting.TextBox textBoxTable;
            string connectiostring = "server=win-dc;database=testdb;uid=hrs;password=hrs;Initial Catalog=testdb;Integrated Security= false";
            string selectstring = "select * from tbl_telerik";
            SqlDataAdapter sqlAdapter = new SqlDataAdapter(selectstring, connectiostring);
            DataSet ds = new DataSet();
            sqlAdapter.Fill(ds);
            Telerik.Reporting.TableGroup tableGroupColumn;
            int i = 0;
            foreach (System.Data.DataColumn dc in ds.Tables[0].Columns)
            {
                tableGroupColumn = new Telerik.Reporting.TableGroup();

                this.table2.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Unit.Inch(1)));

                textboxGroup = new Telerik.Reporting.TextBox();
                textboxGroup.Value = dc.ColumnName.ToString();
                textboxGroup.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3));
                tableGroupColumn.ReportItem = textboxGroup;
                table2.ColumnGroups.Add(tableGroupColumn);

                textBoxTable = new Telerik.Reporting.TextBox();
                table2.Body.SetCellContent(0, i++, textBoxTable);
                textBoxTable.Value = "=Fields." + dc.ColumnName;
            }
            Telerik.Reporting.TableGroup tableGroupRow = new Telerik.Reporting.TableGroup();
            this.table2.RowGroups.Add(tableGroupRow);
            tableGroupRow.Grouping.Add(new Telerik.Reporting.Grouping());//new Telerik.Reporting.Data.Grouping());
            processingTable.DataSource = ds.Tables[0];
            var reportSource = CreateInstanceReportSource(reportInstance, sourceReportSource);
            this.reportViewer1.ReportSource = reportSource;
            this.reportViewer1.RefreshReport();

Neli
Telerik team
 answered on 27 Jun 2022
1 answer
959 views
Hi Team,

We have a requirement to display rtf,docx,xls file formats in document viewer which is currently unsupported in any browsers.We are looking in for a library or UI for viewing these unsupported file formats in our Web application.

Our Application details are below:

.NET Framework Version is: 4.8
MVC Application
JS Framework: JQuery, Knockout JS for 2 way binding
Bootstrap & CSS for Design

Thanks


Ivan Danchev
Telerik team
 answered on 24 Jun 2022
1 answer
140 views
1 answer
132 views
In the ClientEvents-OnSelectedIndexChanged would be nice if there was a way to get_oldvalue(). I do it with a hidden field but that would be helpful.
Vessy
Telerik team
 answered on 20 Apr 2022
1 answer
137 views
According to this post: .NET MAUI Popup Documentation | Content | Telerik UI for .NET MAUI, I may want to load the content template of popup dynamically, do you have any example for me?
Antoan
Telerik team
 answered on 12 Apr 2022
1 answer
354 views

I'm new to the development area and I'm doing some tests with telerik.
my problem is as follows
at the moment my application already generates the CSV file and I already have the report layout ready, I would like some path in C# to load this

my pdf is generated without the data source , how do I solve this ?

 



{

            var csvDataSource = new CsvDataSource();
            csvDataSource.Source = new Uri(@"C:\Users\victord.lima\Desktop\Exemplos\31teste.csv");
            csvDataSource.FieldSeparators = new[] { ',' };
            csvDataSource.RecordSeparators = new[] { '\r', '\n' };
            csvDataSource.HasHeaders = true;
            csvDataSource.EscapeFormat = CsvEscapeFormat.Quotes;
            csvDataSource.Quote = '"';



            Telerik.Reporting.Report report = new Telerik.Reporting.Report();
            report.DataSource = csvDataSource;

            System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
            UriReportSource reportSource = new UriReportSource();
            reportSource.Uri = @"C:\Users\victord.lima\Desktop\Exemplos\TermoDeliberacaoDeCargaDeRecebimento.trdx";
            Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
            Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", reportSource, deviceInfo);

            string fileName = result.DocumentName + "b." + result.Extension;
            string path = System.IO.Path.GetTempPath();
            string filePath = System.IO.Path.Combine(path, fileName);

            using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
            {
                fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
            }

                           
Dimitar
Telerik team
 answered on 07 Apr 2022
1 answer
550 views

Our automated builds have started failing, and it does not appear we can connect to the NuGet server.  We're using the v3 URL. 

It also fails when trying to connect from Visual Studio.  Error message in Visual Studio is:

[telerik.com] Failed to retrieve metadata from source 'https://nuget.telerik.com/v3/search?q=&skip=0&take=26&prerelease=false&supportedFramework=.NETStandard,Version=v2.0&supportedFramework=.NETCoreApp,Version=v3.1&supportedFramework=.NETStandard,Version=v2.1&semVerLevel=2.0.0'.
  Response status code does not indicate success: 500 (Internal Server Error).

Any idea when the feed will be back up?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Apr 2022
1 answer
166 views

This morning we started getting these errors in our automated build pipeline from the https://nuget.telerik.com/v3/index.json feed:

  Failed to download package 'Telerik.Documents.ImageUtils.2022.1.217' from 'https://nuget.telerik.com/v3/package/telerik.documents.imageutils/2022.1.217/telerik.documents.imageutils.2022.1.217.nupkg'.
  Response status code does not indicate success: 500 (Internal Server Error)

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Apr 2022
1 answer
161 views

Some clinical studies can take up to 5 years or more, and I want to be able to show an entire study and its sub-tasks.  I want to show periods of time longer than the current maximum of 1 year that is built into Kendo UI for jQuery v2018.3.1017,  is that possible? 

I'd like to be able to show a maximum of 6 years. Ideally the header would change to be able to see Quarter/Year rather than Month.

Is this possible?

 

 
Neli
Telerik team
 answered on 24 Mar 2022
0 answers
132 views
Hello, we are new to this. Can someone please help with a basic guideline rundown to help better our experience? Thank you
Law Offices of Dizengoff and Yost
Top achievements
Rank 1
 asked on 17 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?