t-code: SE78 上传要显示的logo图片
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
t-code: SE78中上传要显示的logo的图片'Z_LOGO_LONG_COLOR'。数据实际上保存在表STXBITMAPS中。
在pdf 对对应的interface中新建一个global data GV_LOGO。类型为XSTRING
在code initialization 和 Form routines中写下如下的代码,使用CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp来获得图片的内容,并经内容保存在global data GV_LOGO中。然后激活该interface.
在Adobe form中,将Global data GV_LOGO拖拽到context中
在Adobe form -> context中,右键-> create -> Graphic ,创建一个Graphic类型的节点。并如图所示维护该Graphic的Property· Name: LOGO1· Graphic Type : Graphic Content· Field: GV_LOGO {global data gv_logo}· MIME type: 'Image/BMP'
打开该form的layout,从Data View中拖拽LOGO1到Master Page最左上角,然后维护Caption : None, Sizing : Scale Image to Fit Rectangle.
测试运行该Adobe form,效果如图所示。Logo可以显示出来了。
Global data GV_LOGO类型为XSTRING