Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

Can't send the connection (vb.net reports)

$
0
0
Hi,

I made some reports that have parameters.
When I was doing them, I created a connection to a server (nwsrv) so that I could design the reports. Now, when I try to call some of the reports (from my vb code), even passing a NEW connection string, those reports still try to connect to the original server....

Here is an code sample of how I call the reports:

............................................................................
............................................................................

Dim objReport As New Reports.clsReports

Try
With objReport

.ConnString = sConnectSTR
.PathReport = glsPathReports
.PrintWithNoRows = False


.ResetParameters()

..............................................................
..............................................................


I don't know why some reports don't need to have the connection changed inside the reports and other have. I always send the connection from my code. Can someone help?

Thanks

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>