Autor Beitrag
Krefti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Di 24.08.10 14:37 
Hallo zusammen,

ich habe eine Frage..

ich öffne eine pdf datei mit

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
PDF := tfilerun.create(self);
 try
  PDF.Filename := myPDF;
  PDF.execute;  
 finally
  PDF.free;
 end;


Mein Problem ist:

Falls die Datei nicht vorhanden ist bekomme ich ja einen Fehler. Wo fang ich den am besten ab um eine eigene "schöne" Fehlermeldung auszu geben??

danke schon mal!
gruß
Krefti
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Di 24.08.10 14:41 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
If FileExists(YOURFILE)then
 begin
  // Alles OK
 end
else
 ShowMessage('Datei nicht vorhanden!');

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
Krefti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Di 24.08.10 14:58 
clever..hätt ic h auch selbst drauf kommen können..danke