Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/08/2012, 17:36
Avatar de ingesisjd
ingesisjd
 
Fecha de Ingreso: junio-2012
Ubicación: Medellín
Mensajes: 10
Antigüedad: 11 años, 11 meses
Puntos: 0
Pregunta Ninguna sobrecarga para el método 'CIERREVENTAS' acepta '0' argumentos

Buenas tardes para todos, agradezco me colaboren en esta duda, soy novato en esto, el programa lo hago en C#; y cuando lo intento ejecutar me dice: Ninguna sobrecarga para el método 'CIERREVENTAS' acepta '0' argumentos.

Me señala el problema en el nuevo formulario que estoy inicializando para luego invocarlo, este es el código:

namespace WindowsApplication1
{
public partial class CIERRES : Form
{
CIERREVENTAS fcierreventas = new CIERREVENTAS(); //ACÁ DESDE NEW ME SEÑALA EL ERROR

public CIERRES()
{
InitializeComponent();

}

private void CIERRES_Load(object sender, EventArgs e)
{
ToolTip ttlogolibreria = new ToolTip();
ttlogolibreria.SetToolTip(pictureBox1, "LIBRERIA LA CASA DE JESÚS");
}

private void BCIERREVEN_Click(object sender, EventArgs e)
{
fcierreventas.ShowDialog(this); //ACÁ LO INVOCO

}

Eso me empezó a salir desde que cree un formulario para que me trajera un CRYSTAL REPORT. Este es el cídigo del formulario del Crystal report:

namespace WindowsApplication1
{
public partial class CIERREVENTAS : Form
{
public CIERREVENTAS(DataTable DT)
{
InitializeComponent();

//Crear Objeto REPORTE
reporventas RP = new reporventas();

//Asignar datos al reporte
RP.SetDataSource(DT);

//Asignar reporte creado al visor de reportes
this.crystalReportViewer1.ReportSource = RP;
}

private void CIERREVENTAS_Load(object sender, EventArgs e)
{
this.DFECHADES.ResetText(); //PONE LA FECHA ACTUAL
this.DFECHAHAS.ResetText(); //PONE LA FECHA ACTUAL
}

private void BGENERAREP_Click(object sender, EventArgs e)
{
// Crear Objeto del visor de reportes
CIERREVENTAS VER;

// Inicializar el visor de reportes y mandarle la tabla con los datos
VER = new CIERREVENTAS(dtsventas1.VENTAS);

VER.ShowDialog();
}
}
}

agradezco me ayuden, uso visual Studio 2005 con BD de Access 2003.

Sí es por los parámetros díganme sí son tan amables, como ponerlos allá en la inicialización que no tengo ni idea. De ante mano gracias a todos.