码迷,mamicode.com
首页 > 其他好文 > 详细

会说话的ABAP report

时间:2018-03-26 23:31:48      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:execution   tab   rap   cut   二维   cti   rar   api   ping   


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方法:

技术分享图片
要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:

技术分享图片

技术分享图片

会说话的ABAP report

标签:execution   tab   rap   cut   二维   cti   rar   api   ping   

原文地址:https://www.cnblogs.com/sap-jerry/p/8654566.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!