Click here to Skip to main content
15,908,675 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Designing forms at run time Pin
missbilal13-Jul-05 21:31
sussmissbilal13-Jul-05 21:31 
GeneralNeed Help on customizing unique constraint exception message Pin
Krishnaraj Barvathaya B12-Jul-05 20:53
Krishnaraj Barvathaya B12-Jul-05 20:53 
GeneralRe: Need Help on customizing unique constraint exception message Pin
Amju13-Jul-05 3:15
Amju13-Jul-05 3:15 
GeneralRe: Need Help on customizing unique constraint exception message Pin
Krishnaraj Barvathaya B13-Jul-05 18:49
Krishnaraj Barvathaya B13-Jul-05 18:49 
Generalstrord procedure Pin
daneshmand12-Jul-05 20:03
daneshmand12-Jul-05 20:03 
GeneralRe: strord procedure Pin
praetorean13-Jul-05 14:41
praetorean13-Jul-05 14:41 
Generalerror in vb Pin
Anonymous12-Jul-05 19:15
Anonymous12-Jul-05 19:15 
GeneralI could not load the data in CrystalReport Pin
Jeeva Jose12-Jul-05 18:23
Jeeva Jose12-Jul-05 18:23 
This is the source code

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports System.Data.SqlClient
Imports System.Data



Private str_connection As String = "workstation id=""MAX-IT10Q0"";packet size=4096;integrated security=SSPI;initia" & _
"l catalog=Addressbook;persist security info=False"

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim cnsql As SqlConnection
Dim load_dataset As New DataSet
Dim rpt As ReportDocument
Dim str_query As String
rpt = New ReportDocument
rpt.Load("..\CrystalReport2.rpt")


cnsql = New SqlConnection(str_connection)
cnsql.Open()
str_query = "select name,Address from tb_abook"
Dim load_adapter As New SqlDataAdapter(str_query, cnsql)
load_adapter.Fill(load_dataset, "tb_abook")

rpt.SetDataSource(load_dataset)
CrystalReportViewer1.ReportSource = rpt


End Sub


Continue...
GeneralRe: I could not load the data in CrystalReport Pin
Christian Graus12-Jul-05 18:46
protectorChristian Graus12-Jul-05 18:46 
GeneralRe: I could not load the data in CrystalReport Pin
Amju13-Jul-05 2:38
Amju13-Jul-05 2:38 
GeneralNeed help with listbox! Pin
Member 210748512-Jul-05 16:38
Member 210748512-Jul-05 16:38 
GeneralRe: Need help with listbox! Pin
seee sharp12-Jul-05 17:00
seee sharp12-Jul-05 17:00 
GeneralStrange web-service behavior with a c# client Pin
malharone12-Jul-05 13:10
malharone12-Jul-05 13:10 
GeneralRe: Strange web-service behavior with a c# client Pin
Amju13-Jul-05 2:54
Amju13-Jul-05 2:54 
GeneralRe: Strange web-service behavior with a c# client Pin
malharone13-Jul-05 5:46
malharone13-Jul-05 5:46 
GeneralOutlook PST Data Report Pin
Anonymous12-Jul-05 11:28
Anonymous12-Jul-05 11:28 
GeneralSendInput API Method Pin
DigitalBay12-Jul-05 10:23
DigitalBay12-Jul-05 10:23 
GeneralRe: SendInput API Method Pin
progload12-Jul-05 13:06
progload12-Jul-05 13:06 
Generalactivex selft rejistrationvb Pin
_tasleem12-Jul-05 8:39
_tasleem12-Jul-05 8:39 
GeneralUpdating/Writing to SQL Server Pin
spettiford12-Jul-05 8:17
spettiford12-Jul-05 8:17 
GeneralRe: Updating/Writing to SQL Server Pin
ToddHileHoffer12-Jul-05 10:01
ToddHileHoffer12-Jul-05 10:01 
GeneralData List Pin
erikkl200012-Jul-05 7:56
erikkl200012-Jul-05 7:56 
GeneralRe: Data List Pin
ToddHileHoffer12-Jul-05 10:03
ToddHileHoffer12-Jul-05 10:03 
GeneralRe: Data List Pin
erikkl200012-Jul-05 12:21
erikkl200012-Jul-05 12:21 
GeneralCheckboxes Pin
Victoria3412-Jul-05 7:00
Victoria3412-Jul-05 7:00 

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.