I want to make a custom template builder (template will generate report). I want to provide a drag and drop facility, so that user can build their own template for generating report. e.g. if user choose header part, header part will appears with data.
This I want to achieve using Java. Any suggestions appreciated. Thanks
Do not build it yourself. There are a lot of these kind of tools already available. Open source: JasperReports. Eclipse BIRT.
Some buzzwords comming in my mind is something like XSLT to generating report. The XSLT sheet would be your template and can be created through your own DSL definition. Just look for these two buzzwords especially for DSL. Hope I could help a little bit.
Related
I have a task where we need to generate UML(or similar) from XML and will be able to edit text, property type and drag dependency row. But I can't find any Java lib or component wich will allow me to do such.
For example PlantText is a good lib but it does not allow to make edit.
If someone known such lib/compoment please share.
Thanks
EDIT:
Sorry, maybe I wasn't wrote clear. Actually, I need library which I can implement into my project, and after I will be able to generate UML from my project, then edit it and save into XML.
draw.io is very good site where you can create (not only) UML's and save them to XML file so in future you can edit it. The drawback is it is not automatic and must be drawn from scratch.
I am currently using SequenceDiagram Plugin from https://plugins.jetbrains.com/plugin/8286?pr= to generate Sequence Diagrams.
But here the drawback is that I am not able to save them in a format like .uml or any other format so anyone can open this file and edit it.
It only allows to export the sequnce diagram as an image.
Is there any way to save the sequence diagrams generated so they can be edited later?
As the file https://github.com/Vanco/SequencePlugin/blob/master/src/org/intellij/sequencer/diagram/app/actions/ExportAction.java shows the plugin is able to export into images only. According to the licence you can modify the software if you keep in mind this part of the licence.
I think it is a good feature you suggested, it is not an easy job tho. If you plan to extend the feature try to contact with https://github.com/Vanco. I think it would be a handy thing for all of us!
Edit:
I posted it as a comment, but it is part of the answer:
Here is a github repo: https://github.com/sherif181/java-sequence-diagram-generator it is not a plugin but looks handy for your case. It will generate LaTex documents that could be edited.
Ran across this on the web, and it seems like a nice way to document a project. Does anyone recognize if this is generated by a tool, and if so, what tool?
I don't know how that's been generated but if your looking for a tool to create these programmaticaly then you could use PlantUML.
I hope that helps in some way.
I need to have a preview&print option on some of my pages in order to print some tables containing information.
Is it possible to create a template page containing headers and footers and the information contained in the html table? It's the first time i'm doing this.
I've used once Crystal Reports in c#. Are there any similar plug-ins / sdks available for Java? If so, how can i accomplish this?
Of course Jasper Reports will do.
If you already have the data displayed in the page and need it only style differently, you can do it using only CSS - just define appropriate style for media type print.
I think http://jasperforge.org/projects/jasperreports will be fine for this.
I have developed a Java application and now i want to give some simple printing support. Something like printing invoices , some reports etc.
Right now I'm creating that stuff in html, showing it on JEditorPane. but html support is quite poor and I'm really fade up of that thing. Is there any better way of doing such thing?
Any better browser component, or better tool to create such simple reports? (JDK 1.6)
I love JasperReports for that. In combination with iReport (a GUI for creating the reports) is the best I could find for free in Java to do reporting.
You can also generate PDFs files with iText for printing. Although I think it will be easier to use iReports.
JasperReports is a pretty nice reporting tool for Java. It could be a bit heavy weight for what you want.
Another solution is BIRT which is very simple to use : it is an Eclipse project with a visual editor for your reports. The report is built in 3 steps :
create a DataSource
create a DataSet on this DataSource
create your report, based on the DataSet
DynamicReports is an open source reporting tool. You can create reports quickly without needing to use a visual designer. See the examples.
When printing invoices and reports, no doubt you want them to look more than basic - hence your problem. If your swing application has a server-side component, then look at libraries like Jasper and Docmosis to produce decent reports from the server (since heavy-weight server side is typically aok). If you really need a library just for a client app, there's an old library called JViewPro which is pretty yuk to code with, but can let you layout reports in code for displaying and printing and is a single jar (just be careful about memory usage).