cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from a powerpoint using webdynpro ABAP

Former Member
0 Kudos

Hi,

I am supposed to read the data from a powerpoint(ppt) and display the data. I am supposed to use Webdynpro for this. Can anybody suggest me on this?

THANKS IN ADVANCE.

Regards,

Pavan.

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Pavan,

Refer this thread: .

This might be helpful.

Regards

Arjun

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I don't know why people are suggesting the use of CL_WD_RUNTIME_SERVICES=>attach_file_to_response . That makes no sense at all. That is how you can download a file from ABAP to the frontend.

If you are going to want to read a file from the client machine, you need the fileUpload UI element. Once uploaded you will have a binary string with the raw contents of the document. Technically this is all you need to read a file from the frontend. But now comes the hard part. I don't think the PPT files are very easy to read. They use a propriatery, Microsoft created binary format. They aren't text based or XML based or anything else that would be easier to read in ABAP.

Microsoft does publish the specifications for the binary format:

http://www.microsoft.com/interop/docs/OfficeBinaryFormats.mspx#EOB

From the looks of the format, you will have to use Bit level processing in ABAP to read the file contents (possible, but a pain in the butt).

Former Member
0 Kudos

Hi pavan,

u can try using CL_WD_RUNTIME_SERVICES=>attach_file_to_response .

refer UDAY's reply in the thread :

it cn be helpful.

rgds,

amit