05-03-2006 6:50 AM
Hi ,
I have a xml file containing data...how can i display it as a PDF .....
05-03-2006 6:56 AM
Hi Gupta,
Kindly check this link..
http://www.onjava.com/pub/a/onjava/2002/10/16/fop.html
Reward points if it helps..
with regards,
Manikandan R
05-03-2006 7:03 AM
05-03-2006 7:04 AM
hi ,
i know how to convert it to doc
following link got the code
http://www.sap-img.com/abap/xml-file-to-word-document-through-sap.htm
please reward if it helps.
05-03-2006 7:30 AM
XML file generally contains data. you have to convert the xml file using XSLT or other mechanisms to the desired format (for example a table or tree, etc) this converted stuff should then be converted to PDF.
there is something called XML formatting object (XSL-FO)
using this you can (its a XSL program) build the xsl -fo object with various formatting object and then use the xsl-fo object along with FOP (formatted object processor - sample apache) to convert it to PDF.
since in your case you wanted to do it from ABAP i would suggest yout to parse the XML file into say a itab and use the itab values to generate a list or spool and use them to generated PDF using the stadard FMs ABAPSPOOLTO*PDF, etc
Regards
Raja
05-03-2006 8:19 AM
Hi Raja,
actually whai i have is a xml data ....i dont want to convert into some internal table...as pdf can read the xml. i want to know how to pass the layout through xml for generating the PDF and how to communicate with the ADS ......
12-28-2006 11:17 AM