Click here to Skip to main content
15,892,161 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Native Compiler for VB Pin
Dave Kreskowiak13-Dec-16 17:39
mveDave Kreskowiak13-Dec-16 17:39 
GeneralRe: Native Compiler for VB Pin
rkinning14-Dec-16 5:40
rkinning14-Dec-16 5:40 
GeneralRe: Native Compiler for VB Pin
Dave Kreskowiak14-Dec-16 6:55
mveDave Kreskowiak14-Dec-16 6:55 
AnswerRe: Native Compiler for VB Pin
Eddy Vluggen14-Dec-16 6:19
professionalEddy Vluggen14-Dec-16 6:19 
JokeRe: Native Compiler for VB Pin
Richard Deeming14-Dec-16 7:27
mveRichard Deeming14-Dec-16 7:27 
AnswerRe: Native Compiler for VB Pin
Gerry Schmitz14-Dec-16 12:34
mveGerry Schmitz14-Dec-16 12:34 
QuestionSubreportProcessingEventArgs, getting the type to complete a CType for a DataSet in a report writer Pin
jkirkerx13-Dec-16 9:11
professionaljkirkerx13-Dec-16 9:11 
AnswerRe: SubreportProcessingEventArgs, getting the type to complete a CType for a DataSet in a report writer Pin
Richard Deeming13-Dec-16 9:41
mveRichard Deeming13-Dec-16 9:41 
jkirkerx wrote:
New ReportDataSource("ds_invoice_items", ds_items.Tables(0))

You're creating the ReportDataSource by passing in a DataTable. Therefore, I would expect the mainSource.Value property to return a DataTable.
VB.NET
Private Sub SetSubDataSource(ByVal sender As Object, ByVal e As SubreportProcessingEventArgs)
    Dim FINVNO As Integer = Integer.Parse(e.Parameters("FINVNO").Values.First)
    Dim mainSource As ReportDataSource = DirectCast(sender, LocalReport).DataSources("ds_invoice_items")
    Dim mainTable As DataTable = DirectCast(mainSource.Value, DataTable)
    Dim subSource As New DataView(mainTable)
    subSource.RowFilter = String.Format("FINVNO = {0:D}", FINVNO)
    e.DataSources.Add(New ReportDataSource("ds_invoice_items", subSource))
End Sub

If that doesn't work, then you'll need to debug your code; Visual Studio should be able to show you the correct type of the mainSource.Value property.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: SubreportProcessingEventArgs, getting the type to complete a CType for a DataSet in a report writer Pin
jkirkerx13-Dec-16 10:39
professionaljkirkerx13-Dec-16 10:39 
GeneralRe: SubreportProcessingEventArgs, getting the type to complete a CType for a DataSet in a report writer Pin
Richard Deeming14-Dec-16 0:49
mveRichard Deeming14-Dec-16 0:49 
QuestionINI - read multiline! Pin
User 989707411-Dec-16 2:15
User 989707411-Dec-16 2:15 
AnswerRe: INI - read multiline! Pin
Afzaal Ahmad Zeeshan11-Dec-16 2:50
professionalAfzaal Ahmad Zeeshan11-Dec-16 2:50 
GeneralRe: INI - read multiline! Pin
User 989707411-Dec-16 5:21
User 989707411-Dec-16 5:21 
GeneralRe: INI - read multiline! Pin
Richard MacCutchan11-Dec-16 6:42
mveRichard MacCutchan11-Dec-16 6:42 
GeneralRe: INI - read multiline! Pin
User 989707411-Dec-16 7:15
User 989707411-Dec-16 7:15 
GeneralRe: INI - read multiline! Pin
Richard MacCutchan11-Dec-16 7:32
mveRichard MacCutchan11-Dec-16 7:32 
GeneralRe: INI - read multiline! Pin
User 989707411-Dec-16 7:34
User 989707411-Dec-16 7:34 
GeneralRe: INI - read multiline! Pin
User 989707412-Dec-16 0:28
User 989707412-Dec-16 0:28 
GeneralRe: INI - read multiline! Pin
Richard Deeming12-Dec-16 1:13
mveRichard Deeming12-Dec-16 1:13 
GeneralRe: INI - read multiline! Pin
User 989707412-Dec-16 1:18
User 989707412-Dec-16 1:18 
GeneralRe: INI - read multiline! Pin
User 989707412-Dec-16 6:40
User 989707412-Dec-16 6:40 
GeneralRe: INI - read multiline! Pin
Eddy Vluggen12-Dec-16 7:44
professionalEddy Vluggen12-Dec-16 7:44 
GeneralRe: INI - read multiline! Pin
User 989707412-Dec-16 8:31
User 989707412-Dec-16 8:31 
GeneralRe: INI - read multiline! Pin
Eddy Vluggen12-Dec-16 8:44
professionalEddy Vluggen12-Dec-16 8:44 
GeneralRe: INI - read multiline! Pin
User 989707412-Dec-16 8:59
User 989707412-Dec-16 8:59 

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.