plugin to print reports right to printer in grails - grails

I have no background printing reports others than when I use to use crystal report in small Visual Basic applications, now I am starting using grails and I need to print some reports in some pages with fixed constraints like receipt, I search in plug-ins but I do not know which one is the recommended one in this scenario
thanks for your time and help

The Rendering plugin can create PDF files from gsp code. The PDFs can then be saved or printed as a report.
http://grails.org/plugin/rendering
Also a Jasper Reports plugin exists but I have not used that but that might fit your needs better.
http://grails.org/plugin/jasper

Related

Report is not fully displaying while using HTML publisher plugin in Jenkins

I am generating reports using protractor-multiple-cucumber-html-reporter-plugin in my local system and it is perfectly working.But when i am running this protractor script using Jenkins, I am not able to generate same report there using HTML Publisher plugin.The generated report looks like a broken one.Its not displaying the images and not navigating when clicking on links.I am using Chrome version of 75, Java with jdk1.8.0_201, Jenkins of version 2.263.4 and Html plugin of version 1.25.I have tried below code, but none of them worked for me.
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "*");
i am able to disabled the protection.But still report is not fully loading for me.
The actual report is look like
But in Jenkins, after disabling the protection,it look like
Can anyone help me? Thanks in Advance.
Try to install this plugin https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden?hl=en
Make sure to enable it after you're on the report page, and then reload the page. If this works, I'll explain what happened and what else you can do to permanently fix it
We need to add all files(css,js etc) while configuring the HTML publisher plugin, as like below
or else we need to keep the 'include files' field as empty. so that it will take all associate files. And then we need to disable the protection by
this link
so that we will get actual report.

Export Data from Avaya CMS

Bit of a long one...
I am trying to reliably export data from Avaya CMS, currently the set up I am using is a Win 2012 Server with Avaya CMS Superviser R18 installed. I have 5 report scripts which I run and they export data to a individual csv files every 3 - 5 seconds. This way was sufficient while we were using CMS Superviser R17 as it would only crash once a day, and when it did, the csv files would stop updating which triggered an email to me once the files had been 120 seconds without updating. This ensured that the reports had very little downtime as I could just quickly restart CMS superviser and the scripts (batch file) rather than having to wait for someone to report that it was no longer updating.
However with CMS SUperviser R18, the software doesn't seem to crash, instead the csv files keep getting updated, but with incorrect data. I am still trying to troubleshoot that issue to find out exactly what is causing it to go out of whack, but while that is ongoing I am also trying to look at alternative solutions.
The reports I am trying to export are custom reports that others in the company have created, and they appear under the designer category
I looked at CLINT but I cannot see the reports I am looking for in there so I ssh'd into the server and using xterm terminal I can view the CMS menus and go through them. In here I noticed that you cannot view any reports under the Integrated tab, nor any reports under the Designer Category of the Real-Time or Historical tabs. I also noticed that there is a "custom reports" section in the menu, although I see no reports under this menu item, just two empty categories (Real-time and Historical)(Pics attached)
So my questions are:
1 Do you know if "Custom Reports" is where reports from the designer category should show up? If not, do you know is it possible to access those reports through the ssh menu at all?
2 Has anyone any other ideas as to how to export the data from CMS to a csv file?
Thank you for your time.
The "Custom Reports" in the cms menu you show on the screenshots is different to "Reports" in the Supervisor.
You can read about Custom Reports here (a little old, but still relevant):
https://downloads.avaya.com/elmodocs2/multivantage/215822_3/215822_3_1_CMS_Reports.pdf
If you create reports in the "Custom Reports" subsystem then you can run them using /cms/toolsbin/clint. Note that you must recreate the "Reports" reports in the "Custom Reports" to be able to run them through clint.
You can create command files so you can script clint, then you just have to run it with a scheduler. You can read about scriping clint here:
http://www.tek-tips.com/viewthread.cfm?qid=397058
You can also establish a direct connection to the Informix database on CMS but you can not access real-time data there.

Grails on AppFog: BIRT report displayed partially

Within my Grails 2.2 application I use BIRT reporting plugin to generate a pdf of (a bit) complex report (7 datasets binded to 8th one) and it works ok on my local machine but, on AppFog, I get only aprox 1/3 of report. The problem is that I get Header and footer of document but, content is broken at different places at different attempt so It looks like some kind of time-out problem, like report engine hadn't had enough time to generate itself.
Do I forget to set something or? Anybody have a idea what to try?

ReportViewer: Print reports and allow users to edit report design

I've been "playing" with ReportViewer and I need to know how to do the following things:
Print report without creating a ReportViewer. Why? I don't want to show it, just print. ReportViewer is too slow.
Allow users to edit report design. The idea is to allow users to drag and drop TextBoxes to fit a pre-printed form. For example: to print invoices in a pre-printed form.
Thanks in advance.
You CAN print a report without a report viewer.
http://msdn.microsoft.com/en-us/library/ms252091.aspx
Also I have seen a post somewhere that creates a class that inherits from PrintDocument and you can pass the report into. It was in C# and I converted it to VB and it works fine.
Edit: Here is the post that detials the ReportPrintDocument class. Code linked on bottom of post
http://blogs.msdn.com/b/brianhartman/archive/2009/02/27/manually-printing-a-report.aspx
For the first part of the question: you can not print report without using reportViewer control. But you can print thre report from reportViewer control without actually showing the report. Here is similar question explaining how to do printing of report whout preview Link .For the second part of the question there are several ways to edit report desing. First is to use report designer in visual studio. Which is not good for users becaouse most user dont have VS or knowlege how to use it.Another way is to edit the xml of thr rdlc file by hand which is difficult to do even by programers. What i can suggest is using ReportBuilder. But this possible only if you use report server not reports in local mode.If thre is something not clear please ask.
Best Regards,
Iordan

What's the best way to create a report on OpenERP

I try to create a report on OpenERP. There is several methods to do this task (openoffice plugin, XML files, RML files, etc.)
What's the quickest way to do that (and/or the most beautiful) ?
I've only used the RML files and I've been happy with the result. I haven't tried the OpenOffice method, but it seems like the conversion step from SXW to RML would be more hassle. When I edit an RML file, I just save it and click on the report button in the client to try it out. No compilation or conversion necessary. OpenOffice might be useful if I wanted to let business users make minor changes to reports, but I suspect that all the weird data extraction code would confuse them.
I haven't tried the XML report technique, so I can't comment on it.
I assume you've seen the documentation on writing reports. I just noticed a section that talks about changing the corporate default headers, and it only seems to be described for XML reports. I haven't looked any further, but that might be a reason to use XML instead of RML. I know we would like to get rid of the corporate headers for some internal documents.
Web kit Report is the easiest way to make a Report, to install webkit report
sudo apt-get install wkhtmltopdf
and install report_webkit module in OpenERP, it will show the tab in the company, within company you can make simple report using OpenERP GUI,
for Advance report You must learn the maco template,
Thanks..!!
If you know html then webkit report using mako. Webkit reports are very easy to create compare to rml.
For simple reports I prefer using rml reports, by creating an sxw file first and then convert it to rml using the script in the openerp module base_report_designer.
For complex report and also for making the report more beautiful, I prefer to use jasper_reports module. With the help of iReport we can generate beautiful reports. We can also use jdbc datasource which can be connect to our database and pull the data. Subreport is also possible using jasper_reports
There are also other reporting tools like aeroo reports,using xsl file, openoffice plugin etc.
jasper report can be used to create OpenERP report using sql query.
Here is a way I have shown in my post which describes creating a report based on SQL query in OpenERP 7. Please follow this link for the details. Hope this will help others.
http://sajjadhossain.com/2013/06/30/openerp-7-creating-report-using-sql-query/
the most easiest and simple and quickest way to edit,customize and create your own report is editing the .rml files knowledge from experience so far

Resources