Page no for sub report in BIRT Reporting tool - birt

I want to use page numbers for a sub report in Birt 4.2 but it shows only 1 for all pages.
I have used the pageNumber variable in the footer of master page.
It's working fine for single table reports, but for nested or sub reports (table inside table) it shows the number 1 for all pages in .pdf

If the sub report is a different report file you could pass a variable with the page number to it from the first report.
If it is in the same file, verify that the page variable is in the master page and not in the standard report flow.
Consider reviewing https://www.eclipse.org/forums/index.php/t/457987/ for more discussion of page numbers and tables.

Related

Printing issue with SSRS report

I have run into a problem with an SSRS report..... The report will generate around 20 pages, with unique data on each page. I have used a page break to do this.
At the top of each page is some data referring to each page.... a vehicle reg number, a driver name etc. This data is coming from an expression. reportitems!.columnName.Value & reportitems!.columnName.ValueWhen the report is run, in design mode, or viewed in Chrome after being deployed, each page has the correct data at the top of the page.... the driver name changes etc.
However, when the report is printed from the browser, or exported to a PDF, the data at the top of each page is now the same. Basically page 1 info is repeated on each page. The report data is still unique on each page, but the reference at the top has now repeated.
Has anyone ever encountered a similar problem, or any idea what may be causing this? I am very confused, as before printing, the report is showing all data as expected.
The 2 images show page 1 and 2 of the report, both numbers in the expression are different.
This image shows page 1 and 2 in the PDF, both numbers are now the same.

Oracle APEX Report with Master and Detail Sections

I want to create a report in Oracle APEX, which has both master and detail section, where the master section gets displayed repeatedly on every page of the report (like name, address etc), and the detail section gets displayed after the master section. Pretty much like a back statement, the name, address, account number etc are displayed at top on every page of the statement, and the transaction history is displayed afterwards.
I am able to generate an APEX report like this, but the issue I have is the printing. I tried classic and interactive report both, and the print function that comes with APEX report only exports the contents that's returned by the sql. If I create any other page items to store and display such as name, address etc, it won't be displayed on the pdf that's exported by the print function that comes with APEX report.
Like the below example, is there any way to display "Store No: 2102" on every page of the pdf that's exported by the print function that comes with APEX report?

how to put odd page number on the left side of the birt report

In my BIRT report, I need to start the page number from second page of the report, and need to put page number left or right side of the report according to odd or even page. Is there any way I can achieve above requirements.
Report may have different Master Pages on different pages. Create one Master Page with page numbering visible, one without. In the element starting new page select required Master Page in Property Editor -> Page Break -> Master Page.
For the second part it is not the real answer, but only my comment about. Changing way of page numbering was subject of many BIRT bugs and it may work only in some BIRT versions. It is the matter of affecting Master Page content by report content, while Master Pages are generated before report. See examples in Eclipse forum:
How to restart page numbering within a group in BIRT 3.7.1
Page number and total page

sub report always coming second page of crystal report in visual studio project

I designed crystal report like this:
in this i have a sub report named
TransactionDetailed
that i given in ReportFooter part. while coming records am getting two problems
1->sub report heading not coming all pages,,i want to show sub report heading where ever i am getting subreport
2->in first page of my crystal report only showing main report...not getting sub report,,sub report alwayes showing 2 nd page of my crystal reports onwards,,
how i can resolve these two issues?
The way your report is structured is the reason you are not getting correct results. Report Header and Footer should only contain information you want to show ONCE. Page Header and Footer should contain information you want to see on every page (i.e. a logo, legal info in the footer, etc.). Group Header and Footer will show data for the items you have grouped by. The detail section will show all data that pertains to the group. So either group your data and then put the subreport in the Detail section or create a second detail section and put your subreport in there.

Creating a Form in APEX to set Variables in a Query for an Interactive Report

I am a relative APEX noob.
I'm running APEX 4.0 against a 10gR2 database.
I've written a query that takes a few inputs (two date fields, for start and end, and a text field for further filtering) and created a dynamic report out of it that works when I pull the input variables (:START_DATE, :END_DATE, :OFFICE) out of it or replace them with static values.
I want to create a form on a page that submits those values to the dynamic report page for use in the query to filter the results the user sees when he or she hits the report.
I'm not having much luck finding a good step-by-step example of this. I created a blank page with two Date Pickers and a LOV select dropdown, but am unsure how to best translate those values into the dynamic report.
Can somebody point me at the right documentation for this?
The following was developed using Apex 4.1 but apart from some cosmetic changes the principles should be the same.
The data comes from the standard scott.emp schema.
Overview
This is page 1, the user can enter an empno and\or a hiredate.
When submit is pressed the following report on a different page is displayed:
How it works
On page 1 I have created the three items shown. The text items are called them P1_EMPNO, and P1_HIREDATE. The action for the button is "Submit Page"
Still on page 1, create a branch with the following values:
This branch navigates to page 2 (which is yet to be developed) and sets the values of items on page 2 with the values from page 1.
Create a new page, in this example this will be referred to page 2.
On page 2 create a new interactive report using the following query:
select e.*
from emp e
Next create two text items in the same region as the report and call these :P2_EMPNO and :P2_HIREDATE. I have found it useful to show these items during development so you can see that the correct values are being passed through to the page. You can always set them as hidden once you happy with the report.
Finally amend the query used by the interactive report to use the values supplied by page 1
Run the application.
You want to reference your page items in your query, which means you'll have to submit your page before your query will pick up the session state of them. What I do when I provide a small parameter form, is to put a button up there as well (i.e. labeled 'Query'), which does a submit.
In your report you can then reference your items. If for example you have 2 items P1_DATE_START and P1_DATE_END, your query could look like:
SELECT firstname, lastname, job
FROM employees
WHERE employment_start BETWEEN to_date(:P1_DATE_START) AND to_date(:P1_DATE_END);

Resources