on 12-12-2006 4:58 AM
Hi,
How to include a table in Mail body? Kindly help me out.
Thanks & Regards,
Dhana
Hi Dhana,
If you need to display the contents of a table in the mail body, you have to manually append the contents which you need to it...like
String Body = "Mail body starts here";
for(int i=0;i<wdContext.nodeTable().size();i++){
wdContext.nodeTable().setLeadSelection(i);
Body = Body + "n" + wdContext.currentTableElement().getFieldVal1() +
wdContext.currentTableElement().getFieldVal2() ;
}
Regards,
LM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dhana,
I dont think there is a readymade way to do it. You have to first insert the static headers, then loop through the table and insert contents. Formatting will be an issue and you would need to put characters like <b>|</b> and fix the number of characters for each field value to see the data properly.
Regards,
LM
Dhana,
Download the data into excel sheet. For downloading data coding & info from the the links below:
http://www.sapdevelopment.co.uk/ms/ms_excel.htm
Later you can send the file as an attachemnt with the mail body. Does this help to solve your problem.?
Cheers
Sukanta Rudra
Hi Dhana,
What do you mean by including table ?
Check the thread https://forums.sdn.sap.com/click.jspa?searchID=371484&messageID=699045
Regards, Anilkumar
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.