Ver Mensaje Individual
  #3  
Antiguo 08-09-2007
Avatar de nuk3zito
nuk3zito nuk3zito is offline
Miembro
 
Registrado: ago 2003
Ubicación: "Z" Land
Posts: 244
Reputación: 21
nuk3zito Va por buen camino
en tiempo de ejecución

¿por que no pruebas a cargar el archivo del reporte en tiempo de ejecución?

Yo siempre algo algo como esto:
Código:
Screen.Cursor:=crHourGlass;
  try
    try
      aqryMaster.Open;

      with frxReporte do
      begin
        LoadFromFile( ExtractFilePath(Application.ExeName) +'Presupuesto.fr3', true);
        TfrxMemoView(FindObject('mvAsegCliente')).Memo.Text:= trim(dbePropietario.Text); // Equivalente a formulabyname
        ...
        ...
 
        PrepareReport(true);
        PrintOptions.Copies:= 1;
        PrintOptions.ShowDialog:= true;
        ShowReport; // o Print;
      end;
    except
      On E: Exception do
      begin
        Application.MessageBox(pchar('Ocurrió un error al generar el reporte!' + #13 + E.Message),
          pchar(Caption), mb_ok + mb_iconerror);
      end;
    end;
  finally
    aqryMaster.Close;
    Screen.Cursor:=crDefault;
  end;
Saludos
__________________
Tiempo y ocasión acontecen a todos!
Responder Con Cita