none
vs2010 Windows Form with Crystal Report not deploying to other Machines. RRS feed

  • Question

  • I have a Simple Windows Forms application that has a  Crystal Report Attached to the Solution. The data source for the Report is a stored procedure. I have tried building the connection with Ado and ODBC.

    It works fine on my machine, but when i move it to another machine i get "Database Logon Failed".

            private void button1_Click(object sender, EventArgs e)
            {

            // CrystalReport.rpt is attached to the solution.
                using (CrystalReport rpt = new CrystalReport())
                {
                               
                   try
                                {
                                    rpt.SetDatabaseLogon("user", "pass");
                                    rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, @"c:\test.pdf");
                                }
                        
                    catch (Exception E)
                    {
                        MessageBox.Show(E.Message);
                    }
                }

            }


    I have the crystal runtime installed on the other machine(s)



    • Edited by Steven1125 Thursday, June 21, 2012 1:01 PM
    Thursday, June 21, 2012 12:58 PM

Answers

All replies