This is a migrated thread and some comments may be shown as answers.

The source of the report definition has not been specified

2 Answers 530 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aplicativos
Top achievements
Rank 1
Aplicativos asked on 05 Nov 2015, 11:59 AM

Hello guys, I'm new using Telerik Report. I'm using telerik report in windows forms application with visual basic in visual studio 2015. I've followed the "Best Practices"  and created a class library I've referenced this class in my application, but I can't view my reports I got the error "The source of the report definition has not been specified", I've already tryed "Instance report source" and "Type report source"

 

         Dim instanceReportSource As New Telerik.Reporting.InstanceReportSource()

        ' Assigning the Report object to the InstanceReportSource
        instanceReportSource.ReportDocument = New myLibrary.myReport

        ' Adding the initial parameter values
        instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("OrderNumber", "SO43659"))​

 

and with Type report source I don't know how to do

 typeReportSource.TypeName = GetType(myLibraryObject?).AssemblyQualifiedName

     typeReportSource.Parameters.Add(New Telerik.Reporting.Parameter("OrderNumber", "SO43659"))​

what should I do?

 

thanks in advance

    

2 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 09 Nov 2015, 03:22 PM
Hello,

In the case of the WinForms ReportViewer control, you will need to call the viewer's RefreshReport method after initializing the form. this will cause the set report to appear in the viewer - How to: Add report viewer to a Windows Forms' Form.

You can also check the local demos installed by default under C:\Program Files (x86)\Telerik\Reporting <VERSION>\Examples.


I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Aplicativos
Top achievements
Rank 1
answered on 09 Nov 2015, 06:42 PM
Thank you!
Tags
General Discussions
Asked by
Aplicativos
Top achievements
Rank 1
Answers by
Stef
Telerik team
Aplicativos
Top achievements
Rank 1
Share this question
or