cancel
Showing results for 
Search instead for 
Did you mean: 

Generating word document

Former Member
0 Kudos

Hello Experts,

I have a requirement to generate word document using Web dynpro. This word document is a word template & everytime I execute web dynpro, data should be retrieved from the database tables & populated in the empty columns in the template.

Can anyone let me know if this is possible ? Would appreciate if any help / sample code is recieved.

Thanks,

RB

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Rajeshree,

You could use the XML data format supported by newer versions of Office. Create the XML and put it into a xstring-typed context attribute. Then use the OfficeControl to offer a user the possibility to change it. For just displaying the document or simply transferring it to the user, you could also use cl_wd_runtime_services=>attach_file_to_response().

Best regards,

Thomas