how to hide current date and time in BIRT report - java

I am generating report using BIRT. The problem which i am facing is that date and time is automatically generated at each page in the report. I do not want those field to appear in my report. does any one know how to solve it

Your question indicates that you are a newbie to BIRT, so I'll explain a bit more:
The field is in the footer in the master page.
You can simply delete it if you don't want it:
Just open the master page tab of the main window, scroll down to the bottom, find the text element containing "new Date()" and delete the element.
When you create a new report, the wizard lets you choose a template.
The so-called "blank report" template isn't actually blank!
It contains very few predefined elements: Apart from some styles, the only visible element is the current date/time in the footer of the master page.
You could create your own "really blank" report template, if you like.
IMHO the templates are kind of superfluous.
Once you have developed a few reports, it is easier to copy a similar existing report and modify it than to create a new report from scratch.
BTW if you are going to develop more than a handful of reports, you should learn about BIRT's library concept, which is really useful to re-use components in different reports.

Go to the Master Page view of the .rptdesign window and you can remove the date there.

Related

How do I replace header and footer instantly in multiple web pages?

I'm setting up a new web app and came to know that the company name is spelled incorrectly in all the web pages. So, I want to change it in all of them. I am using eclipse neon.
Is there any way to add or replace text from all the web pages in Eclipse ? or Will I have to change them manually one by one?
Tried using ctrl+shift+R but it's for the change of method or variable name in eclipse.
The eclipse IDE is mainly a programming tool, and as such it also supports:
searching for files using wildcards
replacing content using regular expressions within all finds matching your condition
Simply turn to Search"->"File" and enter your search text, a file pattern and then use replace!
And of course: the real answer is to step back and look into what you are doing! Such repeating information (that has to be always the same in many different places) should always come out of 1 source file, not out of 120 different files. That comment about "don't repeat yourself" is the real solution here!
I think, it is better to create a separate header page and separate footer page and include them in all web page. So next time if you make this type of mistake you should not think about the all page, you can just change in one page and see the change in all page.
Eclipse - Search - File..
in this example will be replace "conpany" in all jsp's with 'company'

Appropriate report merging technology for creating page from two formatted sources

Consider a report page consisting of header, detail-top, detail-bottom and footer. I have a service which will run an "App". This App will produce what will ultimately appear in the detail-bottom portion of the report. It will store its output in a file system. After App has produced its output (and shutdown), a seperate "Service" will produce the final report "merging" the content produced by the App (the service provides the content of the header, footer and detail-top areas). If I was generating this by hand in Word, I would be in essense inserting a word document into final report document as an object.
I'm trying to identify an appropriate technology to accomplish this.
Requirements include:
The Service producing the final report will be a Java service runnig
on a Linux machine. I will be developing this code.
The App producing the detail-bottom content could be a Windows
(e.g., C#) or Linux (e.g., Java) application. Any number of other
developers would be developing this code and interfacing with my
service through a SDK I will provide. They are presumed to be
skilled developers but I don't know what experience they have with
any report generation technology
The template utilized by the service will give the same look & feel
to the finished report regardless of the App that is run, while the
App will have total control over the content of the detail-bottom
section of the finished report. In other words, if the template
allocates a "frame" of say 7Wx5H in the finished report for the
detail-bottom section, the App would in essence have a 7x5W blank
page to work with.
The finished report could be multiple pages and the first page could
be different than the remaining pages. If the App produces multiple
(e.g., 7Hx5W pages), the service would merge each App page into the
detail-bottom section of each page of the finished report, thereby
leaving the App to deal with pagenation as it would if it was
producing the entire report itself.
At some point I want to provide the end user a UI for managing the
layout of the finished report (template).
I'll don't really care how the App developer produces the content to
be inserted into detail-bottom frame and as he is providing me with
a finished executable for me to run, I will not provide him with any
UI to manage his report layout/content
The finished report delivered to the end user will be as a PDF.
Since I'm not sure about the skill set of the App developer and
there could be many Apps and developers, I want them to produce
output I can accept for merging into the dertail-bottom frame with
is well accepted, supported and not overly burdensome to use.
Various technologies suggested to me thus far are:
Apache FOP (XML-FO)
DOCX
itext
Here's a solution using FOP:
Have the application save the respective data to two XML-Files with fixed names. So, your API would be a XML document schema the data producer would have to stick to.
provide an XSL file which contains the layout for the complete PDF and reads back the two files using the document() xsl function.
In order to process several reports at the same time, use one directory for each report.
FOP would take care of pagination.
If you want to have the layout configurable by the end user, you can let them change the xsl in ways defined by the application. You could also split the XSL into several portions (for the first report, for the second report, for the overall layout) and import them all into one master template.
If the final output is a PDF, which gives exact control over appearance, why not allow the apps producing the bottom frame to also produce PDFs which give exact control over appearance?
One feature supported by PDFs is a "Form XObject" which allows the inclusion of content from one PDF into another one. You can even take particular rectangles off a page, so you could allow the app to create any size PDF it wants, and to specify the rectangle enclosing the content.
There must be Java libraries that support Form XObjects, because it's not that hard. I have written a Python library names pdfrw that allows you to merge pages this way quite easily. I haven't yet documented it all that well, but there are several examples on that site, and a very relevant one here

how can i create reports in a java web project?

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.

Getting Table-of-Content and Page Number to work in Pentaho

I am developing a reporting application where a user can select(and order) reports from a list of 100 reports and ask for a master report. This master report should contain all the selected reports in the exact order, with a table of contents listing the (sub)reports included in the master report and correct page number.
I am programmatically creating a MasterReport and adding the selected reports as sub reports to the MasterReport's report footer. Each SubReport's report footer has its pageBreakAfterPrint property set to true so that the subreports come on different pages. The page break seems fine in pdf and excel, but in word the page break has no effect.
However, I am not able to figure out how to add a table-of-content element programmatically to the MasterReport which will list all the subreports added. I would also like to know how to get the page number working properly on page footer programmatically.
I discovered that there is a separate jar that has the TOC code. However, I am still not sure how to use. This doesn't matter anymore as we are looking to move to BIRT.

Newbie Question about Web Content Display and Templates

Im using Liferay Portal v5.2.3 Community Edition. I have the following two questions which i hope someone would be kind enough to answer.
1.) I want to add some content to the About Us Page of my intranet portal. I added Web Content Display portlet, and maximized the screen after adding content. But accessing the portal, it always appears minimized.
Any way to solve this issue ?
2.) When i try to add a template after creating a structure, i have to select the script file to be used. I found some vm files for 7Cogs portal,but couldnt find any for the organization i created . Where are these vm or css files located and which one to use ?
Please Help.
Thank You.
For 1) There's no need to "maximize" anything if that's the only thing you have on a page. Just choose the single-column layout and place your Web Content in this single column that covers the whole screen.
For 2) you'll have to add the templates yourself. Every template belongs to a structure, so if you create your own structure, you also need to create templates that can display this structure.
You create templates in the same place you create structures: Go to the Control Panel. In the "Web Content" section you find tabs for structures and templates. When you create a template you need to specify a matching structure there. Once you've done that you can choose that template in your web content

Categories

Resources