Ver Mensaje Individual
  #2  
Antiguo 28-03-2016
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Código Delphi [-]
var
  Excel, Libro, Hoja: OleVariant;

begin
  Excel := ComObj.CreateOleObject('Excel.Application');
  Excel.DisplayAlerts := false;
  Libro := Excel.WorkBooks.Add();
  Hoja := Libro.ActiveSheet;
  Hoja.Cells[1, 1] := 'Caso No 1: Este es un comentario';
  Excel.ActiveCell.Characters(1, 9).Font.FontStyle := 'Negrita';
  Excel.Visible := true;
end;

LineComment Saludos
Responder Con Cita