Click here to Skip to main content
15,889,877 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralI was able to populate the tablix with static data Pin
jkirkerx29-Jun-14 11:19
professionaljkirkerx29-Jun-14 11:19 
So made a smaller version of the code on the windows form, And used some Gridview knowledge and created a datarow with static data.

I went back and created a new XSD file for the dataset and attached it to the tablix. Actually I created a dataset file and added a datatable to it with 2 columns that match the names of the DataColumns in the code below.

Then went back to the RDLC file and programed the tablix with the dataset name and columns.

This part works!, I can add 1 row of data with 2 columns, huge for me, it's a start now. I think I see how it works now and what the relationship in all the pieces now, plus I didn't have to use the wizard and bind lots of stuff.

Since I'm using an old Account Mate DOS database files, I think I will pursue this manual operation here. I really don't want to use the oledbadapter and fill on this project here.



Private Sub practice()

        '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 FDESCRIPT As DataColumn = New DataColumn
        FDESCRIPT.DataType = System.Type.GetType("System.String")
        FDESCRIPT.ColumnName = "FDESCRIPT"
        rs_Table.Columns.Add(FDESCRIPT)

        Dim rs_DataRow As DataRow
        rs_DataRow = rs_Table.NewRow()
        rs_DataRow(0) = "17-209SOFT"
        rs_DataRow(1) = "Troxell Supersoft Kneepad Original Small"
        rs_Table.Rows.Add(rs_DataRow)

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

        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"
        rv_Canvas.LocalReport.DataSources.Add(New ReportDataSource("ds_item_profit", ds.Tables(0)))


        'Refresh the Report
        rv_Canvas.RefreshReport()


    End Sub

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 
GeneralRe: Why does this Array.FindIndex for case insensitive return 2 not 0 Pin
Richard Deeming23-Jun-14 11:09
mveRichard Deeming23-Jun-14 11:09 

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.