Presupuestos de cliente -> Certificados de trabajos: poner el texto de la portada en la descripción.
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@512 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
4acbee69a4
commit
aa52652d8e
Binary file not shown.
@ -127,9 +127,10 @@ end;
|
||||
|
||||
function TRptWordCertificadoTrabajo.RellenarInforme: boolean;
|
||||
var
|
||||
NombreCapitulo : String;
|
||||
Estilo : OleVariant;
|
||||
ADescripcion : String;
|
||||
NombreCapitulo : string;
|
||||
ADescripcion : string;
|
||||
ANombreFichero : string;
|
||||
AFicheroTemporal : string;
|
||||
begin
|
||||
with FDocumento, tbl_Cabecera do
|
||||
begin
|
||||
@ -138,7 +139,7 @@ begin
|
||||
FieldByName('CODIGO_POSTAL').AsString + ' ' +
|
||||
FieldByName('POBLACION').AsString + ' ' + FieldByName('PROVINCIA').AsString);
|
||||
|
||||
ADescripcion := FieldByName('REFERENCIA').AsString;
|
||||
ReplaceBookmark('Referencia', FieldByName('REFERENCIA').AsString);
|
||||
end;
|
||||
|
||||
FContadorCap := 0;
|
||||
@ -146,7 +147,7 @@ begin
|
||||
with FDocumento, tbl_Capitulos do
|
||||
begin
|
||||
First;
|
||||
|
||||
ADescripcion := '';
|
||||
while not Eof do
|
||||
begin
|
||||
if (FieldByName('TIPO_DETALLE').AsString = 'Titulo') or
|
||||
@ -176,9 +177,14 @@ begin
|
||||
end;
|
||||
end;
|
||||
FNumCapitulos := FContadorCap;
|
||||
|
||||
ReplaceBookmark('Descripcion', ADescripcion);
|
||||
ReplaceBookmark('Capitulos', ADescripcion);
|
||||
end;
|
||||
|
||||
ANombreFichero := DarFicheroTemporal;
|
||||
EscribirEnFichero(ANombreFichero, tbl_Cabecera.FieldByName('PORTADA').AsString);
|
||||
FWordApp.InsertFile(ANombreFichero, 'Portada');
|
||||
SysUtils.DeleteFile(ANombreFichero);
|
||||
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user