Arsip: Buat program untuk menampilkan slide show file ppt

more 10 years ago
h4de5
dear all
ada tidak cara untuk buat form untuk menampilkan slide show file ppt
mohon bantuannya

more 10 years ago
aandrie77
Banyak yang dibahas kok di om google...
coba pake code seperti ini ....
Begin try PowerPointApp := CreateOleObject('PowerPoint.Application') except Exit; end; PowerPointApp.Presentations.open(c:\myfile.ppt, False, False, false); ppl := PowerPointApp.Presentations.Item(1).Slides.Count; // Check number of pages in this one there are 3 pages PowerPointApp.Presentations.Item(1).SlideShowSettings.Run; //Then I set a timer to check if its the last page timer1.enabled := true; end; procedure TForm1.Timer1Timer(Sender: TObject); var pl, fld : string; begin pl := PowerPointApp.ActivePresentation.SlideShowWindow.View.Slide.Name; if pl = 'Slide' + inttostr(ppl) then begin timer1.enabled := false; timer2.interval := 5000; timer2.enabled := true; end; end; procedure TForm1.ppTimer2Timer(Sender: TObject); begin try PowerPointApp.Quit; except end; timer3.enabled := true; // loop back and check what to display next end;

more 10 years ago
xgooooogle
@aandrie77: Banyak yang dibahas kok di om google... coba pake code seperti ini ....thanks ya om....Begin try PowerPointApp := CreateOleObject('PowerPoint.Application') except Exit; end; PowerPointApp.Presentations.open(c:\myfile.ppt, False, False, false); ppl := PowerPointApp.Presentations.Item(1).Slides.Count; // Check number of pages in this one there are 3 pages PowerPointApp.Presentations.Item(1).SlideShowSettings.Run; //Then I set a timer to check if its the last page timer1.enabled := true; end; procedure TForm1.Timer1Timer(Sender: TObject); var pl, fld : string; begin pl := PowerPointApp.ActivePresentation.SlideShowWindow.View.Slide.Name; if pl = 'Slide' + inttostr(ppl) then begin timer1.enabled := false; timer2.interval := 5000; timer2.enabled := true; end; end; procedure TForm1.ppTimer2Timer(Sender: TObject); begin try PowerPointApp.Quit; except end; timer3.enabled := true; // loop back and check what to display next end;

more 9 years ago
slvr
@aandrie77: Banyak yang dibahas kok di om google... coba pake code seperti ini ....apakah code diatas menggunakan olecontainer? untuk code di atas, perlu komponen apa saja? apa bisa menampilkan ke secondary monitor? mohon bantuannya.. maaf kalo ternyata sudah ada thread untuk topik yg saya tanyakan, tlg bagi linknya saya cari lewat fasilitas search di forum, dengan keyword "slideshow powerpoint in delphi secondary monitor", dapat hasilnya 4366 items.. terima kasihBegin try PowerPointApp := CreateOleObject('PowerPoint.Application') except Exit; end; PowerPointApp.Presentations.open(c:\myfile.ppt, False, False, false); ppl := PowerPointApp.Presentations.Item(1).Slides.Count; // Check number of pages in this one there are 3 pages PowerPointApp.Presentations.Item(1).SlideShowSettings.Run; //Then I set a timer to check if its the last page timer1.enabled := true; end; procedure TForm1.Timer1Timer(Sender: TObject); var pl, fld : string; begin pl := PowerPointApp.ActivePresentation.SlideShowWindow.View.Slide.Name; if pl = 'Slide' + inttostr(ppl) then begin timer1.enabled := false; timer2.interval := 5000; timer2.enabled := true; end; end; procedure TForm1.ppTimer2Timer(Sender: TObject); begin try PowerPointApp.Quit; except end; timer3.enabled := true; // loop back and check what to display next end;
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
- Project Group dalam Lazarus
- FastPlaz Database Explorer
- Release: FastPlaz Super Mom v0.12.22
- PascalClass #3: Web Development with Free Pascal
- Makna Pascal di Pascal Indonesia
- Kulgram : Instalasi Lazarus di Perangkat Berbasis ARM
- PascalClass #1: Analisa Database dan Machine Learning
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
- Mengenal OXYGENE – Pascal For .NET
- PascalTalk #5: UX: Research, Design and Engineer
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 3 months ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 3 months ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 months ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 1 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 8 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 8 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 8 years ago
Random Topic
- Dilema memperkerjakan programmer
by LuriDarmawan in OOT more 12 years ago - Download tipsexplorer2007?
by wongUedanTenan in Tip n Trik Pemrograman more 13 years ago - filter untuk menghitung record
by idhiel in Enginering more 8 years ago - the power of hidden field versi 1
by EkoIndri in MsSQL more 15 years ago - hasil SELECT ga muncul semua
by ekseumaineur in MySQL more 14 years ago - Dan Lain Lain
by brodien in Enginering more 14 years ago - (ask) Fokus ke TEdit yang belum diisi/kosong pada tab?
by dr4cul453xy in Tip n Trik Pemrograman more 14 years ago - ModifySQL u/ data yg sama di MySQL 5.0.45 bermasalah!
by bugan in MySQL more 13 years ago - query...
by heri15_com in Games more 11 years ago - komponen koneksi delphi7 ke mssql
by delphi_warrior in MsSQL more 11 years ago