2015-09-26 21 views
0

我需要在Android中使用第三方API或jar顯示.pptx和.ppt文件,如果發現任何與此相關的人,請指導我閱讀並在android中查看.ppt文件。我嘗試了最後一天,但我不能。即使我嘗試了Apache poi和一些GitHub項目,但我無法獲得清晰的輸出。我需要在android中使用第三方顯示.pptx和.ppt文件API

+0

讓我們瞭解您嘗試和你正面臨 –

+0

即使我不能能夠找到的有關我的搜索正確的解決哪些問題。這就是我試圖@tiwari – RajajiSubramanian

回答

2

谷歌雲端硬盤配備了出色的文檔查看器,您可以通過意向簡單地將文檔發送給它。它呈現所有Office文檔(據我所見)相當好。

import android.support.v4.app.ShareCompat; 

Uri pptUri = Uri.parse("file://sdcard/sdcard0/test.ppt");     
Intent shareIntent = ShareCompat.IntentBuilder.from(this) 
            .setText("open ppt") 
             .setType("application/vnd.ms-powerpoint") 
             .setStream(pptUri) 
             .getIntent() 
           .setPackage("com.google.android.apps.docs"); 
startActivity(shareIntent); 

如果你想在你的應用程序中嵌入第三方的lib:Refer this

+0

感謝那rply先生,但我想從我自己的應用程序閱讀.pptx像Documentmate和WPS辦公應用程序在Playstore – RajajiSubramanian

+0

http://stackoverflow.com/questions/17390715/creating-a-power -point-file-reader-pptx –

+0

Aspose.Slides($$):----------------太成本 OpenXML(曲線,但靈活性): - ts需要始終連接與互聯網同時閱讀PPT文件。 NetOffice(有限功能): - 不適用於.net人 – RajajiSubramanian

相關問題