Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/02/2010, 18:41
devilguzz
 
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