GaWill
Member
Hi
I have already created a datagrid in my vb2005 application that displays the data i need it to using a sqlclient connection and sql querys. However, i now want to export this information that i have been loading into a datagrid to a crystal report. How do i go about doing this a crystal reports doesnt find my datasource in the wizard as my connection has been created in code as below.
So the ds dataset you see there already has the data i want loaded into, i just need to export this to a crystal report ?
Any pointer would be a great help as i havent used reports before.
I have already created a datagrid in my vb2005 application that displays the data i need it to using a sqlclient connection and sql querys. However, i now want to export this information that i have been loading into a datagrid to a crystal report. How do i go about doing this a crystal reports doesnt find my datasource in the wizard as my connection has been created in code as below.
VB.NET:
[SIZE=2][COLOR=#0000ff]
Dim[/COLOR][/SIZE][SIZE=2] cs [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] SqlClient.SqlConnection([/SIZE][SIZE=2][COLOR=#800000]"Server=myserver;Database=shire;User ID=user;Password=pass;Trusted_Connection=False"[/COLOR][/SIZE][SIZE=2])
[/SIZE]
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] Adapter [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] SqlClient.SqlDataAdapter
[/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] ds [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] DataSet
[/SIZE]
So the ds dataset you see there already has the data i want loaded into, i just need to export this to a crystal report ?
Any pointer would be a great help as i havent used reports before.