![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Register | FAQ | Members List | Calendar | Guía de estilo | Today's Posts |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hola necesito crear varios componentes en tiempo de ejecucion
para el FastReport. Lo siguiente no me anda no se porqué, desde ya gracias procedure TForm1.Button1Click(Sender: TObject); Var frxPage: TfrxReportPage; frxMemoView: TfrxMemoView; Begin // limpio el reporte, (tampoco me anda si no lo limpio y creo el memo al frxReport1 frxReport1.Clear; frxPage := TfrxReportPage.Create(frxReport1); frxPage.CreateUniqueName; //frxMemoView := TfrxMemoView.Create(frxReport1); // si no lo limpio, no da error pero no se ve //frxMemoView := TfrxMemoView.Create(frxReport1.Pages[0]); // error frxMemoView := TfrxMemoView.Create(frxPage); frxMemoView.CreateUniqueName; frxMemoView.Left := 10; frxMemoView.Top := 2; frxMemoView.Height := 0.5; frxMemoView.Width := 2; frxMemoview.Text:='CREADO O NO CREADO ESA ES LA CUESTION'; frxReport1.ShowReport; end; |
|
#2
|
|||
|
|||
|
Listo con SetBounds y AutoWidth
[ delphi ] procedure TForm1.Button3Click(Sender: TObject); Var frxPage: TfrxReportPage; frxMemoView: TfrxMemoView; Begin frxReport1.Clear; frxPage := TfrxReportPage.Create(frxReport1); frxPage.CreateUniqueName; frxMemoView := TfrxMemoView.Create(frxPage); frxMemoView.CreateUniqueName; frxMemoview.Text:='CREADO O NO CREADO ESA ES LA CUESTION'; frxmemoView.SetBounds(10,11,200,15); // Left, Top, Width, Height frxmemoView.AutoWidth := True; // con esto el width se adapta automáticamente frxReport1.ShowReport; end; |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Componente tipo GRID para filtrar una tabla como hace excel con los Autofiltros | flystar | Varios | 7 | 18/11/2008 09:26 |
| crear componentes para fastreport studio | droguerman | Impresión | 0 | 26/10/2007 20:32 |
| Necesito componente para imprimir codigo de barras en un QReport | evert | Impresión | 2 | 19/12/2006 17:31 |
| Crear componente por medio de codigo | Markoz | Firebird e Interbase | 2 | 24/05/2006 21:46 |
| Campo memo tabla escribirlo en componente Memo | Sayuri | Conexión con bases de datos | 2 | 18/08/2005 13:58 |
|