We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problems During Load Report VB.net

Thread ID:





118304 Feb 23,2015 10:16 PM UTC May 19,2015 12:39 PM UTC LightSwitch Silverlight 4
Tags: ReportViewer
Francisco Fonseca
Asked On February 23, 2015 10:16 PM UTC

Hi, I have problems in LS SL VB.NET to open embedded reports, I tested with C # and I have no problems but in VB.NET returns error:

{System.ArgumentNullException: Value cannot be null." & vbCrLf & "Parameter name: input" & vbCrLf & "   at System.Xml.XmlReaderSettings.CreateReader(Stream input, Uri baseUri, String baseUriString, XmlParserContext inputContext)" & vbCrLf & "   at System.Xml.XmlReader.Create(Stream input, XmlReaderSettings settings, String baseUri)" & vbCrLf & "   at System.Xml.XmlReader.Create(Stream input)" & vbCrLf & "   at Syncfusion.RDL.Data.ReportModel.LoadReport(Stream fileStream, Boolean internalpass)" & vbCrLf & "   at Syncfusion.RDL.Data.ReportModel.LoadReport(Stream fileStream)" & vbCrLf & "   at Syncfusion.Windows.Reports.Viewer.ReportViewer.LoadReport(Stream fileStream)" & vbCrLf & "   at Syncfusion.LightSwitch.Extension.ReportViewer.Presentation.Controls.ReportViewer.ShowReport()" & vbCrLf & "   at LightSwitchApplication.Reporte._Closure$__1._Lambda$__2()" & vbCrLf & "   at Microsoft.LightSwitch.Threading.ClientGenerated.Internal.MainDispatcher.<>c__DisplayClass2.<BeginInvoke>b__0()}

VB Code:

Private Sub CompanySales_Activated()
    AddHandler Me.FindControl("ScreenContent").ControlAvailable, AddressOf CompanySales_ControlAvailable
End Sub

Private Sub CompanySales_ControlAvailable(sender As Object, e As ControlAvailableEventArgs)
    RemoveHandler Me.FindControl("ScreenContent").ControlAvailable, AddressOf CompanySales_ControlAvailable
    Dim items As Object = Me.DataWorkspace.ApplicationData.SalesDetailsSet.GetQuery().Execute().Cast(Of Object)().ToList()
    Dim viewer As ReportViewer = TryCast(e.Control, ReportViewer)
    Dim dataSource As New ReportDataSource("Sales", items)
    viewer.DataSources = New List(Of ReportDataSource)()
End Sub)
End Sub)
End Sub

ReportPath: LightSwitchApplication.ReportTemplate.CompanySalesDemo.rdlc

Buil Action: Embedded Resource

Someone help me??, thanks,


Francisco Fonseca
Replied On February 24, 2015 04:07 PM UTC

Thanks, I resolved my problem,  the ReportPath in VB.net is not necessary to place the namespace or the folder, only the report name.

Francisco Fonseca
Replied On February 24, 2015 04:10 PM UTC

Thanks, I resolved my problem,  the ReportPath in VB.net is not necessary to place the namespace or the folder, only the report name.

Replied On May 19, 2015 01:50 AM UTC

how did you fix your problem, i am stuck please share how you resolved the problem

Nithya B [Syncfusion]
Replied On May 19, 2015 12:39 PM UTC

Hi Cyril,

Thank you for using Syncfusion products.

ReportViewer throws the above mentioned error, if an incorrect report path assigned to ReportViewer’s ReportPath property. In VB.NET, no need to specify the namespace or folder and the ReportName alone enough(CompanySalesDemo.rdlc), instead of specifying like LightSwitchApplication.ReportTemplate.CompanySalesDemo.rdlc in lsml file. And also set “Build Action” report property as “Embedded Resource”.

Please let us know if you need any further assistance on this.

Nithya B


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon