hello, i m loading a html page in JEditorPane.
the html page has a report (like table), i need to print that on paper.
i want to know can I retrieve the data (i mean field values)entered in the HTML form from my Java application. If so how..?
i mean this is my html page:
Where do you get this HTML page from? JEditorPane allows you to set an HTML page from a String, by using setText and setContentType("text/html"). This allows you to create the HTML page any way you like, with any values you like, and then show it in the JEditorPane.
this is a static html page, i created this in my project, but the values i want is dynamic from my application.
suppose client wants to print report of (say, user abc), all the details of (user abc) should filled in that html form values from database.
This allows you to create the HTML page any way you like, with any values you like, and then show it in the JEditorPane.
but how i will get values from my application/database..?