on 02-22-2008 10:10 AM
i want to print a form which is developed in webdynpro fo rjava,here adobe is not working.So what iam trying is to use smart forms ,But is it possible to display that smartforms in portal...?
or is there any other way to print the details which are in the webdynpro application.
This is very urgent for me pls reply to me.
Surely i'll give points,,,,,
Warm regards
shanto aloor
Hi ,
U can display a Smart form in portal.
In RFC Export add a field of type Binary and populate smart form into that binary field.
In Webdynpro view after Executing the RFC
byte[] pdfContent =
wdContext.current<output_node>.get<BinaryExport>();
IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);
try
{
/* PdfUrl is of type String */ wdContext.currentContextElement.setPdfUrl(pdfResource.getURL());
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
}
Thanks,
Sunitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Insert UI of element IFrame and bind the Source property to pdfUrl value attribute of type string.
byte[] pdfContent = wdContext.Current<ouputnode>().get<Binary Element>;
IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);
try
{
wdContext.currentContextElement().setPdfUrl(pdfResource.getURL());
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
}
The above code will display the smartform in the Iframe element.
Thanks,
Sunitha Hari
hi thanks it is working properly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.