Telerik Forums
Reporting Forum
11 answers
1.4K+ views
Hi

I tried to create report dynamically, but showing empty page.

I checked with report by debugging, it shows rows and columns count. But not binding the data.

please find the following code snippet i have used, and the report page attached.

Report1.vb

----------------
Partial Public Class Report1
    Inherits Telerik.Reporting.Report
    Public Sub New()
        InitializeComponent()
        Dim sqlConnection1 As New SqlConnection()
        sqlConnection1.ConnectionString = "Data Source=dbserver;Initial Catalog=StarflighteDecision;User ID=sa;Password=Admin123#"
        sqlConnection1.Open()
        sqlDataAdapter1 = New SqlDataAdapter("exec [daterange_report] '8/25/2009','8/27/2009' ", sqlConnection1)
        Dim dataSet As New DataSet()
        sqlDataAdapter1.Fill(dataSet)
        Me.DataSource = dataSet.Tables(0)
    End Sub
End Class

==========================================================
Default.aspx.vb

----------------------
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      
        Dim report As IReportDocument
        report = New Report1()
        Me.ReportViewer1.Report = report
        ReportViewer1.DataBind()
       
End Sub

Please give any suggestions to solve it.

Thanks in advance.

Regards,
Ragavan

Neli
Telerik team
 answered on 01 May 2019
0 answers
116 views

I need to consume an API and pass parameters using the POST method.

Placing a query via POST
Where I hope in the message body an object with an integer attribute PatioID.

When I configure the datasource, I inform the URL and Parameters via POST, when I command to execute of the error. (415 - unssupported media type )

 

 

Andre
Top achievements
Rank 1
 asked on 30 Apr 2019
1 answer
118 views

Dear All,

 

I created a cross tab report that results in a single grid that is sometimes longer than one page. When it is less than one page, the cross-tab grid begins on page one. But when it is greater than one page, it leaves the first page blank and starts on the second page. How do I make it start on the First page regardless?
I removed the "keep together" in the section expert and I was told about a "Keep Object Together" in the Cross tab expert but I did not find it in there but I did find a "keep columns together". But none of that fix it.
Help?
Thanks.

Ivan Hristov
Telerik team
 answered on 30 Apr 2019
1 answer
547 views

I need to create a chart that contains a column chart and two line charts imposed over the column chart.  The data set that I am working with looks like the one I have attached in the data.jpg image and the chart should look similar to the one in the chart.jpg that is attached.  I have been trying to figure out how to make this work but all to no avail.  If someone has any tips on how to get the chart designed I would appreciate it.

James

Neli
Telerik team
 answered on 25 Apr 2019
1 answer
589 views

This is for a .net core 2.2 razor page.

I've tried rerunning the vsix for vs2019, but nothing seems to work. How to get "The HTML5 Report Viewer item template is available in the Add New Item dialog box under the Web category" referenced in the docs at https://docs.telerik.com/reporting/html5-report-viewer-quick-start to show up?

I have found very little in the way of examples that are razor based. Does such an animal exist?

Thanks .... Ed

 

Silviya
Telerik team
 answered on 25 Apr 2019
3 answers
290 views
Dear Admin,
There is a issue I want to combine give reports in asp.net webforums our plan was to use reoprtbook for it but seems reportbooks is not available for asp.net webforums
http://www.telerik.com/help/reporting/designing-reports-reportbook-web-viewer.html
can you please help me asap how to combine multiple reports in asp.net webforums.

Thanks,
Shakti
Donald McLean
Top achievements
Rank 2
 answered on 24 Apr 2019
1 answer
630 views

I have a question that is frustrating me.  I am trying to get up a column chart using the following query

SELECT COUNT(conversation.id) as total_chats, 
       COUNT(lead.id) as total_leads,
       (SELECT SUM(total_visits) 
FROM site_visit INNER JOIN site ON site.id = site_visit.site_id 
WHERE [date] BETWEEN DATEADD(DAY, DATEDIFF(DAY, 0, conversation.conv_start), 0) AND DATEADD(DAY, 1, DATEADD(DAY, DATEDIFF(DAY, 0, conversation.conv_start), 0)) AND site.client_id = @clientId) AS total_visits,
DATEADD(DAY, DATEDIFF(DAY, 0, conversation.conv_start), 0) as date,
        site.client_id
FROM conversation LEFT OUTER JOIN lead on conversation.lead_id = lead.id
                  INNER JOIN site on site.id = conversation.site_id
WHERE site.client_id = @clientId and conversation.conv_start BETWEEN DATEADD(DAY, 1, DATEADD(MONTH, -6, EOMONTH(@date))) AND DATEADD(DAY, 1, EOMONTH(@date))
GROUP BY DATEADD(DAY, DATEDIFF(DAY, 0, conversation.conv_start), 0), site.client_id that runs properly in the query configuration tool and populates the design view as expected as evidenced in the attached screenshots.  But when I attempt to run a preview I get the error shown in the third attachment.

I have checked all of the parameters and don't understand why this error would be coming up.

Thanks you for helping me understand this error.

James Wallace

Neli
Telerik team
 answered on 24 Apr 2019
10 answers
927 views
hi guys,
what's up?

i'm reviewing the telerik reporting for my company.
one of the things i'm reviewing is support for right to left languages for our middle east costumers. (Hebrew and Arabic)
i've watched this video on telerik tv about localizing: http://tv.telerik.com/reporting/localize/localizing-telerik-reports
i've set the report viewer to right to left and set the language to work in Hebrew and everything.
(the report is irrelevant 'cause it's bound to a specific DB data so i haven't uploaded it)
when i set the UI culture and the culture in the current thread to "he-IL" (as shown in the video) i can see the report from right to left,
and the report viewers' upper toolbar is displayed from right to left.
but when i print the report the page comes out from left to right like nothing happend - any suggestion?

thanks in advance.



Sath
Top achievements
Rank 1
 answered on 24 Apr 2019
2 answers
566 views

Hello Telerik Team,

I wanted to install Telerik Reporting 12.2.18.912, but in the Progress Control Panel in Telerik Reporting under "View All Versions" I can only see 2 versions. (See in scrennshot). How can i install the version that I need?

Thank you in advance.

Tamara

Tamara
Top achievements
Rank 1
 answered on 23 Apr 2019
1 answer
95 views

Hello, I need to get the size of textbox programatically but when I use, for instance, textBox.Height.Value I get the rounded number. Is there any way to get the accurate value of textbox size?

Thanks!

Todor
Telerik team
 answered on 22 Apr 2019
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?