Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/11/2012, 14:25
vero2
 
Fecha de Ingreso: agosto-2012
Ubicación: Egipto
Mensajes: 4
Antigüedad: 11 años, 8 meses
Puntos: 0
problemas con subreporte de crystal

holaaaaaaa
necesito su ayuda tengo un problema con un subreporte de crystal.
tengo un reporte q se carga con un proc almacenado y llama a un subreporte q tambien es un proc almacenado.
el primero le doy los parametros por codigo asi:

fu.cod = String.IsNullOrEmpty(lblCodigoPrint.Text) ? 0 : Convert.ToInt32(lblCodigoPrint.Text);
fu.codSolicitante = String.IsNullOrEmpty(lblcodSoliPrint.Text) ? 0 : Convert.ToInt32(lblcodSoliPrint.Text);


ReportDocument rpt = new ReportDocument();

PrinterSettings instance = new PrinterSettings();
String impresorapordefecto = instance.PrinterName;

string path = @Server.MapPath("~/crDos.rpt");
path = path.Replace(@"\", "\\");
rpt.Load(path, OpenReportMethod.OpenReportByDefault);

rpt.PrintOptions.PrinterName = impresorapordefecto;
rpt.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;
rpt.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Auto;

rpt.SetDataSource(fu.SelectAll_(Convert.ToInt32(tx tPagina.Text), Convert.ToInt32(txtRango.Text), Convert.ToInt16(lblfechasPrint.Text)));

CrystalReportViewer1.ReportSource = rpt;
CrystalReportViewer1.RefreshReport();

al segundo reporte lo enlace con el wizard (en esa ventanita vinculos del subinforme todo bien)
en vista diseño aparece todo bien
muestra el primer registro con todos sus dependientes
Cuando lo ejecuto me sale una ventana y me pide el parametro del segundo reporte le doy y nada se queda ahi.
que hice mal
me ayudan por favor.

gracias