on 04-12-2006 3:42 PM
How to start the Print Function in webdyn pro
if anybody knows explain to me one by one
i.e from the beginning.
B'cos i want to take the print
already i posted this Q?
so for i didn't get clear idea about the print
Regards
Dhinakar
Hi Dhinakar,
-o WebDynpros for ABAP, please go through
--o http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
--o http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
-o WebDynpros for Java,
--o http://www.adobe.nl/pdfs/7_SAP.pdf
--o http://homepages.wmich.edu/~e3freder/project2.htm
--o others /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
Hope this helps you!,
Rgds,
Sreenivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI dhinakar jechandran ,
I think prior ans will help u most. Bust first of all u must aware of some basic Basic Concept's.
That in WebDynPro for using the Print Functionality u must use "IFRAME". Also if u have worked on JSP,Servlet or even Core Java then after seeing the following Code-Snippet u can Simple Understand what u will do for Print-Functionality in ur application......
-
1. Place IFrame UI control on WD View (we will use it to display formatted text).
2. Create in context attribute AttrContent of type binary
3. Setup binary attribute in view controller wdDoInit:
final ISimpleTypeModifiable mtype = attr.getModifiableSimpleType();
final IWDModifiableBinaryType btype = (IWDModifiableBinaryType)mtype;
btype.setFileName( attr.getName() + ".html" );
btype.setMimeType( WDWebResourceType.HTML );
5. Save reference to mtype in private controller variable, say _contentType;
6. Create string attribute AttrUrl in context, and bind IFrame source property to it.
7. Whenever you need to update content use the following:
final String formattedStr = ...; /* Get it from backend */
wdContext.currentContextElement().setAttrUrl
(
_contentType.format
(
(
"<html><head /><body><pre>" +
formattedStr +
"</pre></body></html>"
).getBytes("UTF-8")
)
);
-
Hope So it will solve ur problem 'n' don't forget to go thrgh WebDynPro API when u r developing application.
Best Regard's
Dheerendra Shukla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.