Printing a Report that contains sub forms i print preview - report

I have a report that is made up off 3 subforms (cover form, details form, images form)
The cover form is just used as a cover page for my report. The details form is a continuous form that displays a paragraph of detail about 10 lines for each record added . The images form is also a continuous form that displays any images uploaded by the user. A report can be any size for example the user could add anything between 1 - 40 records to the details form and the same goes for the images form.
At the moment my report does not layout properly in print preview. what i mean by this is that for example if 4 records are in the details form in the print preview of the report 4 records are displayed on 1 page but some of the 4th records details goes onto the next page. Is there a way i can set up my report so it limits 3 records per print page, so for example if the user adds 4 records in the print preview 3 records are on one page and 1 record starts on a new page.

I seem to have got it , if you use sub reports in your report instead of sub forms it works perfectly

Related

Oracle Apex Cards Region Pagination

I've been playing around with the Cards region in APEX. When the page is loaded, can we manipulate and land on a specific card position of a paged card region?
For example:
We have page 1 in the application where all cards are displayed. Cards are too many, so we have paged the cards region to display only 32 on a single page and the rest of the cards on subsequent pages, 32 cards on each page. This creates a numbering with arrows at the bottom of the region (As shown in the image below) so the user can navigate between paged cards.
We have page 11 where we display detailed information about a card. Users can click a card on page 1 and go to page 11. There is a button on page 11 that brings the user back to page 1.
Now if the user clicks card # 65 to go to the card details page which is page 11, as per our pagination when a user comes back to the cards page which is page 1, that page will reset the pagination and the user will be seeing the first 32 cards rather be on card # 65.
Can there be any possibility that we can manipulate the data from apex tables to land the user on card # 65 which he clicked initially to go to the details page?
You can do it with the JS API and some additonal logic:
// go to first page
apex.region('your_static_id').call('firstPage');
// go to last page
apex.region('your_static_id').call('lastPage');
// go to first page
apex.region('your_static_id').call('gotoPage', 0);
// go to second page
apex.region('your_static_id').call('gotoPage', 1);
The docs here.

How can i limit one group per page in Cognos?

I have a block with a list with 5 columns and i have grouped it on the first column. I have added sum aggregation below each group.
How can i limit results to show one group per page?
You can achieve this by using a Page Set as follows:
Go to the Report Pages in the Page Explorer
Drag a Page Set from the toolbox into Report Pages
Drag your current report page into the Detail Pages folder of the new Page Set
Click on the new Page Set
In the properties of the Page set:
Select the query of your report page
Click on Grouping and Sorting (a small dialog box appears)
From the data items on the left drag the grouping criterion into the Group folder on the right.
Close dialog.
Run the report.
The following figure shows the Report Pages windows after successful configuration.

The page size was not large enough to format the contents of an object in the report

I'm trying to generate a report using Crystal Reports which contains data of two tables. So I tried to add another header page and put each table in a sub-report for each header page. This works very nicely when I have a single page in my report. It works here:
But when I had many lines of data( table 1) ( more than 10 lines ), I got this error:
Page header or footer longer than a page.
Got to your main report
Right-click on the subreport you added
Click Format sub-report
Uncheck the Can Grow option
Right Click on Details in crystal report
Detail ->Paging
Control Number of Rows

Can I Only Export the visible items in a DevExpress Grid

We have data using DevExpress Grid on a web application, and the users are asking to only export the visible data from the page. At the moment, if we do an export, it exports everything from the grid, whether it is shown on the current page, or on a future page (200 items, 20 pages, showing only page 4, we export everything).
We are using the WritePdfToResponse (if its a PDF file as an example) and tried using the PdfExportOptions PageRange, but it seems to only work for Pages of the PDF file, not the data... For example, if there are 200 items to display, on the site it shows as 20 pages, but in PDF, it shows up as 4 or 5 pages. If we want only page 4, we get page 4 of the PDF, not of the site... Can this be done? Ideally, for PDF, CVS, RTF and XSL...
The grid exporter exports the entire data from the ASPxGridView control. However, if you temporarily bind the grid to a visible page only, and then export it, you will get the same result.
For example, you can get the grid's page index to determine what user sees on the screen and that fetch these records from the datasource.
I assume that you can select required range of rows and set the ExportedRowType property of the ASPxGridViewExporter to Selected.
Please also review the following help topics:
- Export Overview
- Selection

limit the record displayed in a view using hook_views_query_alter

i want to change the number of items returned by a view. I changed the code as
$view->set_items_per_page(2);
in hook_views_query_alter();
But it is not showing the required result. But there is color difference after 2 records. Is it required any other settings I put my pager as off in view.
ie Use Pager:off . I want to use this on draggable view table. Is it possible?
Pls help me
if you are only altering the query programmatically and view exist then
1] Go to your view basic settings and click on item to display
bottom of your view you will get the 2 text boxes.
2] In first text box put the number you want, in your case put 2 and leave second text box 0. and hit the update default display button and save your view.

Resources