Creating a DSN via odbc - But do i need one at all?

D

Dan Keeley

Hi,

I'm writing a vb.net project which uses crystal reports to access the
database ( currently msaccess, but could be changed in the future )

I've found articles in this group, saying dont use odbc, use a dsnless
connection. However can that work with embedded crystal reports? If so how?

If not, then how do i get my setup program to install the dsn? The only code
ive found so far for installing a dsn has been for vb, not vb.net, is it all
done in the same way?

Thanks!
Dan
 
B

Bernie Yaeger

Hi Dan,

I'm not following you completely, but when you open the Access database in
cr, connect to it via ole db (Jet 4.0 Provider). Then call the report
inside vb .net with
CrystalReportViewer1.ReportSource = "c:\apps\sst.rpt"

Where crystalreportviewer1 is simply the cr report viewer - then launch it
and you're in business.

HTH,

Bernie Yaeger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top