Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon failed in Crystal Reports for .NET

Status
Not open for further replies.

mondi

Programmer
Sep 10, 2003
169
AL
Hello everybody!
In my project I have some reports made in Crystal Reports for .NET 2003. As DataSource in my documents I have used some xml files. In my computer, the reports open OK, but when I make an installation of the application, in another computer (in the folder C:\Program Files\...) in the which I also add the xml files too, in the installation packet, and try to open one of the documents I get that form that prompts me for the logon information.
I think this comes because in the design of the report, when I define the datasource, I get the xml file from C:\Application1\bin\debug\reports\report1.xml, which is static and maybe after installing, it looks for the datasource in this location. How can I make it to define the datasource not like this but maybe like Application.StartupPath + "\\reports\\report1.xml". I didn't find a way to do that and it doesn't make sense to be impossible to do this.
Thanks in advance for any help!

Country of eagles
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top