Foros del Web » Programación para mayores de 30 ;) » .NET »

Se puede hacer esto con Crystal Reports

Estas en el tema de Se puede hacer esto con Crystal Reports en el foro de .NET en Foros del Web. En mi reporte no tengo conexion a ninguna fuente de datos ya que al intentar hacer lo siguiente con un detalle, no encaja en mi ...
  #1 (permalink)  
Antiguo 01/02/2010, 18:41
 
Fecha de Ingreso: marzo-2004
Mensajes: 70
Antigüedad: 20 años, 1 mes
Puntos: 0
Se puede hacer esto con Crystal Reports

En mi reporte no tengo conexion a ninguna fuente de datos ya que al intentar hacer lo siguiente con un detalle, no encaja en mi hoja pre-impresa... asi que he creado algunos TextObject en la cabecera del reporte y los voy a mandar de la siguiente manera

frm.frmPreviewCrx frm = new frmPreviewCrx();
rpt.LP.rptLp rp = new rpt.LP.rptLp();

ReportObject rptObj1 = rp.Section2.ReportObjects["txtInstitucionA1"];
ReportObject rptObj2 = rp.Section2.ReportObjects["txtFechaA1"];

ReportObject rptObj3 = rp.Section2.ReportObjects["txtInstitucionB1"];
ReportObject rptObj4 = rp.Section2.ReportObjects["txtFechaB1"];

ReportObject rptObj5 = rp.Section2.ReportObjects["txtInstitucionC1"];
ReportObject rptObj6 = rp.Section2.ReportObjects["txtFechaC1"];

ReportObject rptObj7 = rp.Section2.ReportObjects["txtInstitucionD1"];
ReportObject rptObj8 = rp.Section2.ReportObjects["txtFechaD1"];


TextObject txtInstitucionA1 = (TextObject)rptObj1;
TextObject txtFechaA1 = (TextObject)rptObj2;

TextObject txtInstitucionB1 = (TextObject)rptObj3;
TextObject txtFechaB1 = (TextObject)rptObj4;

TextObject txtInstitucionC1 = (TextObject)rptObj5;
TextObject txtFechaC1 = (TextObject)rptObj6;

TextObject txtInstitucionD1 = (TextObject)rptObj7;
TextObject txtFechaD1 = (TextObject)rptObj8;


txtInstitucionA1.Text = "Nombre de la Institucion";
txtFechaA1.Text="Fecha";

txtInstitucionB1.Text = "Nombre de la Institucion";
txtFechaB1.Text="Fecha";

txtInstitucionC1.Text = "Nombre de la Institucion";
txtFechaC1.Text="Fecha";

txtInstitucionD1.Text = "Nombre de la Institucion";
txtFechaD1.Text="Fecha";


frm.Reporte = rp;
frm.cargar();
frm.ShowDialog();

... todo el codigo anterior funciona perfecto, pero solo para la primera hoja... mi pregunta ahora es... como hago para agregar una pagina u hoja nueva en el reporte y seguir enviando valores diferentes, luego previsualizar e imprimir...
__________________
GuzZpaWn

Etiquetas: crystal, reports
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 07:07.