Free_Man 0 Newbie Poster

I got a strange database connection after I deployed the software. I print crystal reports with

CrystalReportViewer1.PrintReport()

It asks which printer I want to use, if I print by default printer(which is an actual printer) everything is fine but when I change the printer to Microsoft Image Printer(or called something like that), then it prints but just after then that, the program gives a database connection error saying program cannot find the database under My Documents\User_Name.

It's very understandable it can't find it there, as it's actually database is not located there. So why do you think it try to look for database somewhere else then application folder?!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.