Click here to Skip to main content
15,902,447 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: AquaButton - A very nice Button control Pin
Christian Graus10-Jul-05 17:42
protectorChristian Graus10-Jul-05 17:42 
QuestionHelp me!How to move file pointer in VB6 program? Pin
Member 115152610-Jul-05 15:17
Member 115152610-Jul-05 15:17 
AnswerRe: Help me!How to move file pointer in VB6 program? Pin
Dave Kreskowiak10-Jul-05 17:00
mveDave Kreskowiak10-Jul-05 17:00 
GeneralThanks reply! Pin
Member 115152612-Jul-05 19:18
Member 115152612-Jul-05 19:18 
Generalpainter in VB.net Pin
raed_aw10-Jul-05 13:21
raed_aw10-Jul-05 13:21 
GeneralRe: painter in VB.net Pin
Christian Graus10-Jul-05 13:39
protectorChristian Graus10-Jul-05 13:39 
QuestionHow to display record on crystal report Pin
Mekong River10-Jul-05 12:32
Mekong River10-Jul-05 12:32 
AnswerRe: How to display record on crystal report Pin
TheOnlyFalcon10-Jul-05 16:18
TheOnlyFalcon10-Jul-05 16:18 
Here is the way how to Display records on Crystal report from SQL Server. Suppose You have a database with the name MyDatabase which contains many tables and you want to display records from table1 . To do so you've to follow these steps

1) First Create a new form Say MyReportForm then add
Crytalreportviewer from toolbox
2) Now suppose you want to show the roport when user clicks the Report button .Add follwing lines at top of the form which contains Report button

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
3)Write the following code in the click event for Report button .
Dim FRM As New MyReportForm
Dim rpt As New MyReport


try
Dim LogInfo As New TableLogOnInfo()
Dim LogInfos As New TableLogOnInfos()


LogInfo.ConnectionInfo.ServerName = "."
LogInfo.ConnectionInfo.DatabaseName = "MyDatabase"
LogInfo.ConnectionInfo.UserID = "MyUserName"
LogInfo.ConnectionInfo.Password = "Mypassword"

LogInfos.Add(LogInfo)
rpt.Refresh()
FRM.CrystalReportViewer1.LogOnInfo = LogInfos
( FRM.CrystalReportViewer1.SelectionFormula = "{Table1.SomeField} = " & SomeCriteria & " " )
FRM.CrystalReportViewer1.ReportSource = rpt
catch ex as exception
msgbox(ex.Message & ex.stackTrace)
End Try

Note that Statement in paranthesis is optional only if you want to show records by filtering on the basis of some criteria.
GeneralRe: How to display record on crystal report Pin
Mekong River11-Jul-05 21:37
Mekong River11-Jul-05 21:37 
GeneralRe: How to display record on crystal report Pin
TheOnlyFalcon12-Jul-05 18:36
TheOnlyFalcon12-Jul-05 18:36 
GeneralRe: How to display record on crystal report Pin
Mekong River12-Jul-05 21:39
Mekong River12-Jul-05 21:39 
GeneralRe: How to display record on crystal report Pin
TheOnlyFalcon13-Jul-05 19:00
TheOnlyFalcon13-Jul-05 19:00 
QuestionHow to detect mdb files in project folder? Pin
Member 210748510-Jul-05 7:08
Member 210748510-Jul-05 7:08 
AnswerRe: How to detect mdb files in project folder? Pin
Christian Graus10-Jul-05 13:39
protectorChristian Graus10-Jul-05 13:39 
QuestionHow to delete file forcefully..... Pin
KRathor10-Jul-05 4:49
KRathor10-Jul-05 4:49 
AnswerRe: How to delete file forcefully..... Pin
KaptinKrunch10-Jul-05 7:08
KaptinKrunch10-Jul-05 7:08 
GeneralRe: How to delete file forcefully..... Pin
Anonymous10-Jul-05 19:04
Anonymous10-Jul-05 19:04 
GeneralRe: How to delete file forcefully..... Pin
rwestgraham10-Jul-05 21:28
rwestgraham10-Jul-05 21:28 
GeneralRe: How to delete file forcefully..... Pin
Dave Kreskowiak11-Jul-05 1:52
mveDave Kreskowiak11-Jul-05 1:52 
GeneralDatagrid will not update Pin
erikkl200010-Jul-05 4:18
erikkl200010-Jul-05 4:18 
GeneralRe: Datagrid will not update Pin
KaptinKrunch10-Jul-05 7:04
KaptinKrunch10-Jul-05 7:04 
GeneralRe: Datagrid will not update Pin
erikkl200010-Jul-05 7:43
erikkl200010-Jul-05 7:43 
GeneralRe: Datagrid will not update Pin
erikkl200010-Jul-05 16:07
erikkl200010-Jul-05 16:07 
QuestionHi : How to make a chatting program like yahoo and msn ? Pin
SmartSDR10-Jul-05 3:52
SmartSDR10-Jul-05 3:52 
AnswerRe: Hi : How to make a chatting program like yahoo and msn ? Pin
Ranoush10-Jul-05 3:56
Ranoush10-Jul-05 3:56 

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.