No se que es lo que pasa con mi reporte ya hice la creación del type Dataset se llama Dataset1 y el código está así
private void llenar_datosr(
string cadenaConexion = ConfigurationSettings.AppSettings["conpath"].ToString()
OleDbConnection con = new System.Data.OleDb.OleDbConnection(cadenaConexion);
string consulta="SELECT *FROM [proyecto] where proynom='"+this.comboBox1.SelectedText+"'";
try
OleDbDataAdapter da=new OleDbDataAdapter(consulta,con)
con.Open()
DataSet2 dt=new DataSet2("proyecto")
da.Fill(dt)
CrystalReport4 rel = new CrystalReport4()
rel.SetDataSource(dt)
this.crystalReportViewer1.ReportSource = rel
rel.Refresh()
catch(Exception ex){MessageBox.Show("Error: + ex.Message);
finall
if(con.State!=ConnectionState.Closed
con.Close()
pero no se que pasa mando a correr la aplicaciony me sale el erro:
The type or namespace name 'DataSet2' could not be found (are you missing a using directive or an assembly reference?), no se que libreria falta por favor ayúdeme ya tengo todas estas librerias
using System
using System.Drawing
using System.Collections
using System.ComponentModel
using System.Windows.Forms
using System.Data
using System.Data.OleDb
using System.Configuration
using CrystalDecisions.ReportSource
using CrystalDecisions.Windows.Forms
using CrystalDecisions.Shared
using CrystalDecisions.CrystalReports.ViewerObjectModel
using CrystalDecisions.CrystalReports.Engine
using CrystalDecisions.CrystalReports
using System.Data.Common
Gracias por su ayuda.
--
andrelolu
-----------------------------------------------------------------------
Ver este tema: http://www.softwaremix.net/viewtopic-464527.htm
Enviado desde http://www.softwaremix.net