Click here to Skip to main content
15,923,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem Setting OpenFileDialog.InitialDirectory Pin
Alan Burkhart31-Dec-16 5:16
Alan Burkhart31-Dec-16 5:16 
GeneralRe: Problem Setting OpenFileDialog.InitialDirectory Pin
Member 128864681-Mar-18 22:07
Member 128864681-Mar-18 22:07 
GeneralRe: Problem Setting OpenFileDialog.InitialDirectory Pin
Alan Burkhart2-Mar-18 6:12
Alan Burkhart2-Mar-18 6:12 
QuestionHow to read listview data in to a report Pin
RedRocket201621-Dec-16 8:59
RedRocket201621-Dec-16 8:59 
AnswerRe: How to read listview data in to a report Pin
Eddy Vluggen23-Dec-16 2:50
professionalEddy Vluggen23-Dec-16 2:50 
Questionreload listview of parent form from user control vb.net Pin
l3ugs.l3unny18-Dec-16 17:57
l3ugs.l3unny18-Dec-16 17:57 
AnswerRe: reload listview of parent form from user control vb.net Pin
Dave Kreskowiak19-Dec-16 6:47
mveDave Kreskowiak19-Dec-16 6:47 
QuestionMy demo reports program gives error[SOLVED] Pin
tacbanon18-Dec-16 15:41
tacbanon18-Dec-16 15:41 
Hello everyone, I just want to ask for guide to where I'm doing wrong to my codes. My codes is basically to produce reports dynamically after results from database. I'm using vbnet 2015.
VB
Sub Fill()
        cryRpt.Load("C:\Users\MicroboxMac\Documents\Visual Studio       2015\Projects\ReportsDemo\ReportsDemo\bin\Debug\cr1.rpt")
        cryRpt.SetDataSource(reportsQuery(TextBox1.Text.Trim))
        CrystalReportViewer1.ReportSource = cryRpt
        CrystalReportViewer1.Refresh()
    End Sub

This the table I'm getting the data results
Public Function reportsQuery(ByVal bId As Integer)
        Dim db = New database
        Dim dt As New DataTable
        MessageBox.Show(bId)
        With db
            .sqlStr = "SELECT * from brandnames Where brandid = '" & bId & "' " 'query string
            .sqlDa.SelectCommand = .sqlcm(.sqlStr, .connect) 'execute command
            .sqlDa.Fill(.sqlDt) 'get results and store in sqldt 
            .close()
        End With

        Return db.sqlDt
    End Function

unfortunately I'm stuck with this error...
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

I appreciate the time for helping out.

I got it working now...find the solution from other thread by Joezer BH

Best regards,
Joe

modified 18-Dec-16 22:15pm.

QuestionHow to View two different report (Crystal Report) in one view ? Pin
Hermawan2615-Dec-16 19:40
Hermawan2615-Dec-16 19:40 
AnswerRe: How to View two different report (Crystal Report) in one view ? Pin
Afzaal Ahmad Zeeshan15-Dec-16 23:13
professionalAfzaal Ahmad Zeeshan15-Dec-16 23:13 
GeneralRe: How to View two different report (Crystal Report) in one view ? Pin
Hermawan2616-Dec-16 16:06
Hermawan2616-Dec-16 16:06 
QuestionNative Compiler for VB Pin
rkinning13-Dec-16 15:39
rkinning13-Dec-16 15:39 
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 
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 

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.