Click here to Skip to main content
15,911,762 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to Export gridview data to Excel file in VB.NET standalone application Pin
Dave Kreskowiak14-Dec-07 5:28
mveDave Kreskowiak14-Dec-07 5:28 
AnswerRe: How to Export gridview data to Excel file in VB.NET standalone application Pin
Paul Conrad24-Dec-07 11:38
professionalPaul Conrad24-Dec-07 11:38 
Questionhow to calculate the date? Pin
sathyan_829413-Dec-07 23:06
sathyan_829413-Dec-07 23:06 
AnswerRe: how to calculate the date? Pin
Christian Graus13-Dec-07 23:35
protectorChristian Graus13-Dec-07 23:35 
GeneralCrystal Report(Vb.net) Pin
~V~13-Dec-07 21:39
~V~13-Dec-07 21:39 
GeneralRe: Crystal Report(Vb.net) Pin
Tom Deketelaere14-Dec-07 1:24
professionalTom Deketelaere14-Dec-07 1:24 
GeneralRe: Crystal Report(Vb.net) Pin
~V~14-Dec-07 19:19
~V~14-Dec-07 19:19 
GeneralRe: Crystal Report(Vb.net) Pin
Tom Deketelaere17-Dec-07 1:15
professionalTom Deketelaere17-Dec-07 1:15 
the reconnectreport function only reconnects your report to the database so it doesn't set the datasource
best practice is too reconnect the report first and then set the datasource (if needed)


~V~ wrote:
rd.SetDataSource(Me.ds)
new_rd = Me.reconnectreport(rd)


becomes:
new_rd = me.reconnectreport(rd)
new_rd.setdatasource(me.ds)

wether or not you need to set the datasource depends on how you designed your report.
If you designed it against a real database using the table structure and such and you don't need to add additional filters then you shouldn't have to set the datasource but if you do need to add additional filters it is somethimes easer to set the datasource with a new sql statement.
example:
you have a report that connects to 2 tables (table1 and table2)
all you want to do is to show the data from the 2 tables without filters
in this case you don't need to do the setdatasource

if you want to show only one record from table1 and the corresponding records from table2
you'd best set the datasource for table1 and table2 in code


On a side note: make sure that the database name,server,username,password you provide in the reconnect function are correct (I suspect you placed dummy data here (as you should)). If these are wrong the report will not connect to the database and most likly crash.

Sorry for the late reply but I was out for the weekend so...
If my help was helpfull let me know, if not let me know why.

The only way we learn is by making mistakes.

GeneralRe: Crystal Report(Vb.net) Pin
~V~16-Dec-07 18:13
~V~16-Dec-07 18:13 
GeneralRe: Crystal Report(Vb.net) [modified] Pin
~V~19-Dec-07 0:07
~V~19-Dec-07 0:07 
QuestionHow to Sort DataGridView Combobox Column? Pin
rashadaliarshad13-Dec-07 21:18
rashadaliarshad13-Dec-07 21:18 
Generali am using rich text box in vb.net Pin
Deepthy.P.M13-Dec-07 20:43
Deepthy.P.M13-Dec-07 20:43 
GeneralRe: i am using rich text box in vb.net Pin
Christian Graus13-Dec-07 21:54
protectorChristian Graus13-Dec-07 21:54 
GeneralReading .pdf file using visual basic code Pin
rkuravi13-Dec-07 19:35
rkuravi13-Dec-07 19:35 
GeneralRe: Reading .pdf file using visual basic code Pin
Christian Graus13-Dec-07 21:55
protectorChristian Graus13-Dec-07 21:55 
Generalhelp me to generate barcode with vb.net Pin
sitt13-Dec-07 19:18
sitt13-Dec-07 19:18 
GeneralRe: help me to generate barcode with vb.net Pin
Christian Graus13-Dec-07 21:58
protectorChristian Graus13-Dec-07 21:58 
GeneralRe: help me to generate barcode with vb.net Pin
sitt14-Dec-07 0:27
sitt14-Dec-07 0:27 
GeneralRe: help me to generate barcode with vb.net Pin
Dave Kreskowiak14-Dec-07 1:01
mveDave Kreskowiak14-Dec-07 1:01 
GeneralRe: help me to generate barcode with vb.net [modified] Pin
sitt16-Dec-07 15:26
sitt16-Dec-07 15:26 
GeneralRe: help me to generate barcode with vb.net Pin
Dave Kreskowiak16-Dec-07 18:01
mveDave Kreskowiak16-Dec-07 18:01 
GeneralRe: help me to generate barcode with vb.net Pin
sitt16-Dec-07 18:10
sitt16-Dec-07 18:10 
GeneralRe: help me to generate barcode with vb.net Pin
darkelv14-Dec-07 1:39
darkelv14-Dec-07 1:39 
GeneralRe: help me to generate barcode with vb.net [modified] Pin
sitt16-Dec-07 15:32
sitt16-Dec-07 15:32 
GeneralRe: help me to generate barcode with vb.net Pin
Luc Pattyn16-Dec-07 16:06
sitebuilderLuc Pattyn16-Dec-07 16:06 

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.