on 04-27-2007 10:07 AM
Hi,
I am NOT able to display dynamic image in PDF Form.
I created 1 image field which is <b>binded</b> with a context variable having <b>URL</b> of the image from <b>RFC</b>.
This URL is coming as a datatype <b>STRING</b> from the RFC (Remote enabled Function Module).
For Example URL is:: "<b><i>http://abc.com/x.jpg</i></b>".
Hi Chandan,
In order to bind a dynamic image u need not write a code for binary conversion of the image.
If working in webdynpro u can bind the image with the code
below
try { String url = WDURLGenerator.getAbsoluteWebResourceURL( wdComponentAPI.getDeployableObjectPart(), "sap_online_shop.jpg"); wdContext.currentDataSourceElement().setSapOnlineShopUrl(url); } catch(Exception e) { throw new WDRuntimeException(e); }
nd FormCalc script statement, which enables the dynamic integration of the image.
Show: initialize
Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value; Language: FormCalc
Run At: Client
Cheers
Swathi
Do offer pts:-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.