前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >会说话的ABAP report

会说话的ABAP report

作者头像
Jerry Wang
发布2019-05-30 19:59:43
3580
发布2019-05-30 19:59:43
举报
代码语言:javascript
复制
report z.

INCLUDE ole2incl.

DATA: ole   TYPE ole2_object,

      voice TYPE ole2_object,

      text  TYPE string.

text = 'With the advent of ES6 (referred to as ES2015 from here on), which not only made promises native to the language without requiring one of the countless available libraries,'

&& 'we also got generators. Generators have the ability to pause execution' &&

'within a function, which means that by wrapping them in a utility function, ' &&

'we have the ability to wait for an asynchronous operation to finish before' &&

' moving on to the next line of code. Suddenly your asynchronous code could' &&

' start to look synchronous!'.

DATA: it_tline TYPE STANDARD TABLE OF tline.

CREATE OBJECT voice 'SAPI.SpVoice'.

CALL METHOD OF voice 'Speak' = ole

   EXPORTING #1 = text.

*

用的也是很老的OLE技术:

report代码直接call的MS的sound engine,通过sapi.dll暴露出来,

这个report只是call了dll里其中一个speak方法:

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年03月24日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档