Click here to Skip to main content
15,896,063 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow do i load xml file into memory for parsing Pin
kryan015-Apr-09 11:09
kryan015-Apr-09 11:09 
AnswerRe: How do i load xml file into memory for parsing [modified] Pin
0x3c015-Apr-09 11:43
0x3c015-Apr-09 11:43 
GeneralRe: How do i load xml file into memory for parsing Pin
kryan015-Apr-09 12:03
kryan015-Apr-09 12:03 
GeneralRe: How do i load xml file into memory for parsing Pin
Christian Graus15-Apr-09 19:16
protectorChristian Graus15-Apr-09 19:16 
GeneralRe: How do i load xml file into memory for parsing Pin
Johan Hakkesteegt16-Apr-09 0:28
Johan Hakkesteegt16-Apr-09 0:28 
GeneralRe: How do i load xml file into memory for parsing Pin
0x3c016-Apr-09 0:47
0x3c016-Apr-09 0:47 
AnswerRe: How do i load xml file into memory for parsing Pin
kryan016-Apr-09 8:29
kryan016-Apr-09 8:29 
QuestionVB.NET 2008 Subreport Cannot Be Shown Pin
DaveMcTKD15-Apr-09 9:37
DaveMcTKD15-Apr-09 9:37 
I have searched for answers on the web, have some good suggestions but they do not seem to fix my problem.
On a web form, I have a report with a sub-report. No matter what I do, I get the error message "Error: Subreport could not be shown."
I can run the subreport as a main report on another page, and it works fine.
I found elsewhere that I have to add a handler for the subreportpreocessing event, and have done so but it does not get called when I step through the code.
Below is some code for the events that lead up to the problem:

==========
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim JobAppID As Integer = Val(Me.DDL_JobAppID.SelectedValue) 'For main report parameter
Dim params(0) As ReportParameter
Me.ReportViewer1.LocalReport.ReportPath = ".\admin\employmentapplicant.rdlc"

AddHandler ReportViewer1.LocalReport.SubreportProcessing, AddressOf SubreportDatabind

params(0) = New ReportParameter("vJobAppID", JobAppID, False)
Me.ReportViewer1.LocalReport.SetParameters(params)
Me.ReportViewer1.LocalReport.Refresh()
'End If
End Sub

Public Sub SubreportDatabind(ByVal sender As Object, ByVal e As SubreportProcessingEventArgs)
Dim MyReportDataSource = New ReportDataSource("DS_References", Me.DS_References)
e.DataSources.Add(MyReportDataSource)
End Sub
==
Also, in the .aspx file I have tried both with and without the following:<LocalReport ReportPath="Admin\EmploymentApplicant.rdlc" OnSubreportProcessing="SubreportDatabind">

Help would be appreciated!!

Dave McDonald
Web Developer
AnswerRe: VB.NET 2008 Subreport Cannot Be Shown Pin
Dave Kreskowiak17-Apr-09 4:37
mveDave Kreskowiak17-Apr-09 4:37 
QuestionSeeking recommendations for PDF Merge Library Pin
Kschuler15-Apr-09 4:12
Kschuler15-Apr-09 4:12 
GeneralRe: Seeking recommendations for PDF Merge Library Pin
Steven J Jowett15-Apr-09 23:39
Steven J Jowett15-Apr-09 23:39 
AnswerRe: Seeking recommendations for PDF Merge Library Pin
Henry Minute16-Apr-09 0:07
Henry Minute16-Apr-09 0:07 
Questionopen a ms word file in a richtextbox Pin
marclenoir200515-Apr-09 3:56
marclenoir200515-Apr-09 3:56 
AnswerRe: open a ms word file in a richtextbox Pin
0x3c015-Apr-09 4:34
0x3c015-Apr-09 4:34 
AnswerRe: open a ms word file in a richtextbox Pin
Dave Kreskowiak15-Apr-09 5:32
mveDave Kreskowiak15-Apr-09 5:32 
GeneralRe: open a ms word file in a richtextbox Pin
0x3c015-Apr-09 5:40
0x3c015-Apr-09 5:40 
GeneralRe: open a ms word file in a richtextbox Pin
Luc 64801115-Apr-09 5:48
Luc 64801115-Apr-09 5:48 
GeneralRe: open a ms word file in a richtextbox Pin
Dave Kreskowiak15-Apr-09 6:02
mveDave Kreskowiak15-Apr-09 6:02 
AnswerRe: open a ms word file in a richtextbox Pin
marclenoir200515-Apr-09 9:03
marclenoir200515-Apr-09 9:03 
GeneralRe: open a ms word file in a richtextbox Pin
0x3c015-Apr-09 10:28
0x3c015-Apr-09 10:28 
GeneralRe: open a ms word file in a richtextbox Pin
Zaegra15-Apr-09 10:29
Zaegra15-Apr-09 10:29 
QuestionGDI Quality Pin
smallzoo15-Apr-09 3:25
smallzoo15-Apr-09 3:25 
AnswerRe: GDI Quality Pin
Dave Kreskowiak15-Apr-09 6:23
mveDave Kreskowiak15-Apr-09 6:23 
GeneralRe: GDI Quality Pin
smallzoo15-Apr-09 9:31
smallzoo15-Apr-09 9:31 
GeneralRe: GDI Quality Pin
Luc Pattyn15-Apr-09 11:11
sitebuilderLuc Pattyn15-Apr-09 11:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.