locked
Crystal Report Format Error IN VS08 RRS feed

  • Question

  • User639567535 posted

    i try to create crystal report in vs08

    code

    string connStr = ConfigurationManager.ConnectionStrings["mydms"].ConnectionString;
            SqlConnection mySQLconnection = new SqlConnection(connStr);
            System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection();
           //con.ConnectionString = @"Data Source=LENOVO-PC\SQLEXPRESS;Initial Catalog=DMSFYPP;Integrated Security=True";
          //System.Data.SqlClient.SqlDataAdapter sda = new System.Data.SqlClient.SqlDataAdapter("select * from tblProduct", con);
          SqlCommand cmd = new SqlCommand("spdocuments", mySQLconnection);
           cmd.CommandType = CommandType.StoredProcedure;
           DataSet ds = new DataSet();
    
            DataTable dt = new DataTable();
            SqDataAdapter sda=new SqlDataAdapter
            sda.Fill(dt);
             CrystalReport3 rpt = new CrystalReport3();
             rpt.SetDataSource(dt);
                CrystalReportViewer1.ReportSource = rpt;

    and when i debug my project and show report it show me in this format..what i done? enter image description here

    Wednesday, January 29, 2014 2:05 AM

All replies

  • User-578610739 posted

    Hi Dear,

    For this you give  some space between fileds to show proper data , also you can set property "can grow" to true by right click which give wrape your data.

    Please check your last post.

    Wednesday, January 29, 2014 2:49 AM