Click here to Skip to main content
15,900,258 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Custom Installation Pin
GuyThiebaut3-Jul-14 5:56
professionalGuyThiebaut3-Jul-14 5:56 
QuestionChange db connection dynamically in vb.net for reportviewer Pin
Keval Savani3-Jul-14 0:10
Keval Savani3-Jul-14 0:10 
QuestionCreating zip files limited to size Pin
ctrl+s1-Jul-14 7:38
ctrl+s1-Jul-14 7:38 
AnswerRe: Creating zip files limited to size Pin
Dave Kreskowiak1-Jul-14 12:18
mveDave Kreskowiak1-Jul-14 12:18 
AnswerRe: Creating zip files limited to size Pin
Richard Deeming2-Jul-14 1:30
mveRichard Deeming2-Jul-14 1:30 
Questionform1 as background of form2 in vb.net Pin
khei-chan00729-Jun-14 21:03
khei-chan00729-Jun-14 21:03 
AnswerRe: form1 as background of form2 in vb.net Pin
Dave Kreskowiak30-Jun-14 1:54
mveDave Kreskowiak30-Jun-14 1:54 
QuestionReport Viewer in Code Behind Pin
jkirkerx29-Jun-14 10:19
professionaljkirkerx29-Jun-14 10:19 
I'm lost here, and I'll try to keep this brief.

I'm trying to create my first ReportViewer project here.

Here's what I've done so far.
1. Create a windows form with a single ReportViewer Object
2. Create a RCDL file, with a header and footer and a tablix in the body, 1 column 1 row.
3. Created a class file, that gets the data. I call the class in the form with the report viewer.

I'm pretty sure the code below works right. but I don't understand the relationship to the code and the tablix, how to populate the tablix with data.

I read these examples, and they all show how to assign a dataset to the rldc, and that's where I get lost.
I'm not doing a data dump here, I'm just showing what I have so far.
Wondering if I'm on the right track here.

Question 2:
Is there a way I can make some hard code some data to practice populating the tablix so I can learn how it works?

Private Sub practice()

        rv_Canvas.ZoomPercent = 100
        rv_Canvas.BorderStyle = Windows.Forms.BorderStyle.FixedSingle

        rv_Canvas.Visible = True
        rv_Canvas.ShowProgress = True

        rv_Canvas.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local
        rv_Canvas.LocalReport.ReportEmbeddedResource = "AccountMate.profit_items.rdlc"

        'Build the DataTable for item_profit
        Dim rs_Table As DataTable = New DataTable()
        rs_Table.TableName = "dt_item_profit"

        'FITEMNO
        Dim FITEMNO As DataColumn = New DataColumn
        FITEMNO.DataType = System.Type.GetType("System.String")
        FITEMNO.ColumnName = "FITEMNO"
        rs_Table.Columns.Add(FITEMNO)

        Dim ds As DataSet = New DataSet()
        ds.DataSetName = "DataSet1"
        ds.Tables.Clear()
        ds.Tables.Add(rs_Table)
        ds.Tables(0).TableName = "tablix1"

        'this is where I get confused. 
        'what is ds.tables(0)?
        'tablix1 is just 1 row 1 column, and is assigned to dataset1


        rv_Canvas.LocalReport.DataSources.Add(New ReportDataSource("DataSet1", ds.Tables))


        'Refresh the Report
        rv_Canvas.RefreshReport()


    End Sub


modified 29-Jun-14 16:39pm.

GeneralI was able to populate the tablix with static data Pin
jkirkerx29-Jun-14 11:19
professionaljkirkerx29-Jun-14 11:19 
QuestionDATAGRIDVIEW ARRAY QUESTION VB.NET 2012 Pin
AntonyJackson26-Jun-14 0:04
AntonyJackson26-Jun-14 0:04 
Questionvb.net drop down list insidelist view Pin
walsh2725-Jun-14 0:17
walsh2725-Jun-14 0:17 
Questionsybase ASE 15.7 with VB.Net framework 1.1 connection error Pin
ashishj01624-Jun-14 19:30
ashishj01624-Jun-14 19:30 
AnswerRe: sybase ASE 15.7 with VB.Net framework 1.1 connection error Pin
Dave Kreskowiak25-Jun-14 2:47
mveDave Kreskowiak25-Jun-14 2:47 
QuestionNeed to find html tags in strings Pin
Amir Tallap22-Jun-14 16:49
Amir Tallap22-Jun-14 16:49 
AnswerRe: Need to find html tags in strings Pin
thatraja22-Jun-14 22:10
professionalthatraja22-Jun-14 22:10 
QuestionError Trying to connect to a database after restoring Pin
dilkonika22-Jun-14 11:17
dilkonika22-Jun-14 11:17 
AnswerRe: Error Trying to connect to a database after restoring Pin
Eddy Vluggen23-Jun-14 7:12
professionalEddy Vluggen23-Jun-14 7:12 
GeneralRe: Error Trying to connect to a database after restoring Pin
dilkonika23-Jun-14 8:24
dilkonika23-Jun-14 8:24 
GeneralRe: Error Trying to connect to a database after restoring Pin
Eddy Vluggen25-Jun-14 8:15
professionalEddy Vluggen25-Jun-14 8:15 
QuestionWhy does this Array.FindIndex for case insensitive return 2 not 0 Pin
QuickBooksDev21-Jun-14 4:15
QuickBooksDev21-Jun-14 4:15 
AnswerRe: Why does this Array.FindIndex for case insensitive return 2 not 0 Pin
Dave Kreskowiak21-Jun-14 5:38
mveDave Kreskowiak21-Jun-14 5:38 
GeneralRe: Why does this Array.FindIndex for case insensitive return 2 not 0 Pin
QuickBooksDev22-Jun-14 1:14
QuickBooksDev22-Jun-14 1:14 
GeneralRe: Why does this Array.FindIndex for case insensitive return 2 not 0 Pin
Dave Kreskowiak22-Jun-14 5:18
mveDave Kreskowiak22-Jun-14 5:18 
SuggestionRe: Why does this Array.FindIndex for case insensitive return 2 not 0 Pin
Richard Deeming23-Jun-14 2:16
mveRichard Deeming23-Jun-14 2:16 
GeneralRe: Why does this Array.FindIndex for case insensitive return 2 not 0 Pin
Dave Kreskowiak23-Jun-14 2:42
mveDave Kreskowiak23-Jun-14 2:42 

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.