1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
   |  
unit Exp;
 
interface
 
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Menus, StdCtrls, jpeg, ExtCtrls, OleServer, UExcel, Excel2000;
 
type
  TForm1 = class(TForm)
    Button1: TButton;
    Fichier1: TMenuItem;
    Nouvelleexprience1: TMenuItem;
    Quitter1: TMenuItem;
    TMainMenu: TMainMenu;
    Button3: TButton;
    Label1: TLabel;
    Label2: TLabel;
    Image1: TImage;
    Image2: TImage;
    N1: TMenuItem;
    SaveDialog1: TSaveDialog;
    ExcelApplication1: TExcelApplication;
    RadioGroup1: TRadioGroup;
    RadioButton5: TRadioButton;
    RadioButton6: TRadioButton;
    RadioButton7: TRadioButton;
    RadioButton8: TRadioButton;
    Panel1: TPanel;
    Label3: TLabel;
    ExcelWorkbook1: TExcelWorkbook;
    procedure Quitter1Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Nouvelleexprience1Click(Sender: TObject);
 
  private
    { Private declarations }
    Filename : string;
 
  public
    { Public declarations }
  end;
 
var
  Form1: TForm1;
 
implementation
 
{$R *.dfm}
 
procedure TForm1.Quitter1Click(Sender: TObject);
begin
        close;
end;
 
procedure TForm1.Button3Click(Sender: TObject);
begin                
        close;
end;
 
procedure TForm1.Nouvelleexprience1Click(Sender: TObject);
begin   
        if SaveDialog1.execute Then
                begin
                        ExcelApplication1.DisplayAlerts := False;
                        ExcelApplication1.ActiveWorkbook.SaveAs(Filename:=SaveDialog1. Filename);
                end;
end;
 
end. |