on 11-01-2005 10:39 AM
hy,
we want to create a wd-application which imports a function module. The function module creates a pdf-document. We are planning to deliver the function-module output as a table to webdynpro. The table includes the pdf-document.
How can we display this pdf within the browser ?
Hi,
at first your Function Module should deliver your PDF as an XSTRING in ABAB.
This is mapped to a byte[] in Java Model. This byte array you can bind for example to a FileDownload Element in the GUI. If you click on it the PDF opens.
On the context element of type byte[] you have to do the following:
IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("<byte[]contextElement>");
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
binaryType.setFileName("<yourname>".pdf");
binaryType.setMimeType(WDWebResourceType.PDF);
Then it should basically work
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.