How to place 3 records per (printing) page
Hi,
How would I go about only displaying 3 records per each a4 paper printed.
For example:
9 records in total.
I want to print that (printing on paper), but only want 3 records per A4 size as records are being split between two pieces of paper.
Any help would be very much appreciated!
Thank you!
sorry.
I have done all the extraction and they display on the page with no problem. All the records are there and display fine.
The problem is that i need to be able to create something like a page break every three records, as when i send the print to the printer, it has 3 records and a half on each A4 sheet of paper.
I just need to be able to code: 'only print 3 records per A4 sized paper'.
I have a css'd div tag which is the size of the A4 paper, but i need to be able to tell it to only display 3 records per A4 page.
At the moment, it looks like this:
The 'sound trolley - PAC' record shouldn't be spliut between pages. The title and the details should be on the same page, so im guessing would require something like a break after 'Nexo Subwoofer'.
This is the code for the page (all within the A4 size div):
<div class="a4page">
<table width="100%" border="0" cellpadding="2">
<tr>
<td width="51%"><img src="images/logo_acs_egham.gif" width="338" height="51" /></td>
<td width="28%"><img src="images/dramadatabase.jpg" width="133" height="93" /></td>
<td align="right" width="21%"><strong>Inventory printed:</strong> <br />
<script type="text/javascript">
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
document.write(day + "/" + month + "/" + year);</script>
</td>
</tr>
<tr>
<td colspan="3"><img src="images/divider.JPG" width="785" height="25" /></td>
</tr>
</table>
<div align="center"><strong>Total Records:</strong> <?php echo $totalRows_print_invlist ?> </div>
<?php do { ?>
<form id="form2" name="form2" method="post" action="">
<table width="99%" border="0" cellpadding="2" class="print_table">
<tr>
<td colspan="3"><span class="titlelist"><?php echo $row_print_invlist['name']; ?><a href="equipmentupdate.php?id=<?php echo $row_print_invlist['id']; ?>">
<input name="id" type="hidden" id="id" value="<?php echo $row_print_invlist['id']; ?>" />
</a></span></td>
<td width="23%"> </td>
</tr>
<tr>
<td colspan="3"><em><?php echo $row_print_invlist['description']; ?></em></td>
<td> </td>
</tr>
<tr>
<td width="28%" rowspan="4"><input name="image" type="image" src="<?php echo $row_print_invlist['image']; ?>" width="200" border="1" /></td>
<td width="17%" rowspan="4"><strong>Category:<br />
Size<br />
Location:<br />
Sub-location:<br />
Power Input:<br />
Protection:<br />
Model:<br />
Manufacturer:</strong></td>
<td width="32%" rowspan="4"><?php echo $row_print_invlist['category']; ?><br />
<?php echo $row_print_invlist['size']; ?><br />
<?php echo $row_print_invlist['location']; ?><br />
<?php echo $row_print_invlist['sublocation']; ?><br />
<?php echo $row_print_invlist['power_input']; ?><br />
<?php echo $row_print_invlist['protection']; ?><br />
<?php echo $row_print_invlist['model']; ?><br />
<?php echo $row_print_invlist['manufacturer']; ?><br /></td>
<td><strong>Internal ID: </strong><?php echo $row_print_invlist['id']; ?></td>
</tr>
<tr>
<td><strong>Barcode ID: </strong><?php echo $row_print_invlist['BC']; ?></td>
</tr>
<tr>
<td height="45"><strong>Quantity: </strong><?php echo $row_print_invlist['quantity']; ?></td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</table>
<br />
<img src="images/divider.JPG" width="778" height="28" />
</form>
<?php } while ($row_print_invlist = mysql_fetch_assoc($print_invlist)); ?>
</div>
Similar Messages
-
How to divide record per page (20 record per page).
How to divide record per page (20 record per page).
I try word (limit) example
"select * from table1 where [ some_condition]
limit [start], [end] "
, but it error.Tom Kyte has a rather extensive discussion of paging techniques here: http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:127412348064
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
HOW TO PRINT ONE RECORD PER ONE PAGE
Hi I have report , with two queries. Each query has one group with the same data. lets say the queries are Q1 and Q2. The Groups are with column DeptNo, and DeptNo1 both pointing to the same column DEPTNO. Now I want to design it in such a manner that it shoudl print each group , one record per page, but same group on the same page. For Example
ON PAGE 1
DpetNo 10
Emp1
Emp2
Emp3
DeptNo1 10
Emp1
EMp2
Emp3
ON PAGE 2
DeptNo 20
Emp4
Emp5
DeptNo1 20
Emp4
Emp5
ON PAGE 3
DeptNo 30
Emp6
Emp7
Emp8
DeptNo1 30
Emp6
Emp7
Emp8
How the lay our will be ? What will be the conditions. I can set the property in each group to print one record per page. But how to make it so that it will print like above.
Thanks
FEROZHi Feroz,
You can create a query Q0 to return DeptNo 10, DeptNo 20..... and make it as the parent of Q1 and Q2. Then you can print one dept per page.
Regards,
George -
Want to use single page records per document page
Very new user here...using CS5
I'm trying to create a "Day to View" calendar. I've created a document in the required size of the calendar page (76x102mm) and I've merged the data (to create the days etc). As the calendar is small, I'd like to print four per page - so I would get four calendars per 365 printed pages (once cropped).
However, I'm not having any luck putting four on a page. Whenever I create the new document, I do get 365 pages, but only one calendar her page.
I keep thinking I should be using a big A4 page and putting four frames on it or something...but I'm not getting my head around it.
Any help appreciated. Thanks!
SueWhen I want to do something like this I make a single-instance file first, then make a second file and place the pages from the first file into it (in this case using a new page size large enough to hold 4 of the original pages). There is a script from Scott Zanelli that you can get from InDesignSecrets » Blog Archive » Zanelli Releases MultiPageImporter for Importing both PDF and INDD Files that makes this very easy. For a 4-up layout you wouold run the script four times, changing the positioning on the page between runs.
-
How can I find the printed page number in an ibook app?
I want to go to printed page 129, I do not know what the corresponds to in my ibook.
There isn't any correspondence. I seem to recall that Amazon added that feature to the Kindle app but I haven't checked lately.
-
How to count records in a page which are in detail section
Hi
Is there a option to count records in detail section and so that based on that can apply a formula.Hi
can i place the below two formulas in section experpt ?
my report is like
gh#1
details-----which contains transactions related to above group for a country
group footer#1contains line '--
if for india there are 3 records in the same page there can be 2 or 3 records in detail section. like that a page can contain more than one country. if number of records are more and coming in next page then the whole section should be moved to new page.
that is my req. can u suggest accordingly.....
i want to count the number of records in detais which will vary also how can i put formula when they are going to next page? -
How can I change a print page orientation from portrait to landscape
How can I change the page orientation when printing from portrait to landscape?
By setting the print size -- ie rather than 6x4 use 4x6 - and to avoid unwanted cropping you need to crop the photo to the target ratio before printing ( you can undo the crop after printing if you do not want it to be permanent)
LN -
HP C5580 All In One Printer started printing an additonal page document properties every time i print my master document. This never happened before and i can't figure out how to stop it...it's waisting paper and ink. Please Help
Windows XP Version 5.1.2600 Service Pack 3 Build 2600
Computer System Manufacturer Dell Inc.
Time Zone Eastern Daylight TimeAre you printing from Word? Generally Word has an option to print document properties, which would include the date created, the edit date, number of words and some other information. In Word 2003 this would be found in Tools, Options, Print, Include with Document and uncheck the "Document Properties" box. In Word 2010 it would be found in File, Options, Display, Printing Options, Print document properties.
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
How can I change the printer page orientation from vertical to horizontal?
I cannot seem to find a way to get the desired page to print horizontally instead of vertically as it normally does. Can I do this; how?
Currently, Family Tree Maker is the app in which I'm having this problem. I want to print a census report in "landscape" instead of "portrait."@sambrack
Try the '''Preview''' button at the bottom of the Print dialog window and see if there are Portrait / Landscape buttons at the top of the Print Preview window. ''(Those buttons are there on Linux & Windows versions of Firefox, and most likely on Mac, too.)''
If so, select Landscape and then Print from that Preview window. -
How can I restrict the total no. of recs. per physical page
Hi !
I have created a report and I am saving that in a text file. The
problem is that when I try to take the output on the printer
then the total no of records overflows to the next pages and the
next page heading comes much below to it's designated place.
Max.no of records property in the repaeting frame is for the
logical page.
How can I restrict the max. number of records per physical page ?
Any pointer will be welcome,
Thanks in advance,
Shobhit
nullJust for fun (and in case this wasn't done to death in the other thread), the rule posted here states:
Most years have 365 days, but a leap year has 366 days. That adds up to 52 weeks (where each week is exactly 7 days) PLUS 1 or 2 additional days. The year 2012 has exactly 366 days.Now if the year starts on a Sunday in a non-leap year, you end up with 53 Sundays. Or if either of the first two days lands on a Sunday during a leap year, then you can also get 53 Sundays.>
which allows a calculation like this:
with test_data as
( select rownum + 1999 as test_year from dual
connect by rownum <= 15 )
select test_year
, case
when first_day = 'SUN'
or ( first_day = 'SAT' and leap_year = 'Y' )
then 53
else 52
end as sundays
from ( select test_year
, to_char(to_date(d.test_year||'-01-01','YYYY-MM-DD'),'DY', 'NLS_DATE_LANGUAGE=ENGLISH') first_day
, case extract(day from last_day(to_date(d.test_year||'-02','YYYY-MM'))) when 29 then 'Y' else 'N' end as leap_year
from test_data d );
TEST_YEAR SUNDAYS
2000 53
2001 52
2002 52
2003 52
2004 52
2005 52
2006 53
2007 52
2008 52
2009 52
2010 52
2011 52
2012 53
2013 52
2014 52
15 rows selected. -
SapScript is displaying one record per page...
Hi friends,
I am getting a problem in scripts.
when i am displaying multiple records in the main window it is displaying a single record per each page, like if i have 20 records it is displaying 20 pages and in every page one record
how to resolve this
plz assist me
is there any wrong in tagcolumn i.e. / , /: , *
how i have to maintain them
Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:15 PMKindly check ou script & program i think somewhere new-page is written. that'why each record is printing on new page.
anya -
How to prevent printing last print page in smartforms
Hi everyone,
when i print preview my samrtform, there is an extra blank page printing at end. for example, if i want to print 5 records, 6 print pages are printing. how to prevent printing this last page.
answers will be rewarded
thanks
chintuHi
Try out this
You need to Create --> Flow Logic --> Alternative process where you can
specify a condition that will either, Go to the last page or not
depending on the Conditions. You will need to set the General
Attributes --> Go to New Page check box and the name of the Page to go
to, as well as setting the Conditions as you have then to suppress the
data.
Regards
Pavan -
Dear All,
How to aviod the test print page in printing. I am getting SAP cover page(test print page) for every time I am printing. I ma using the following code.
CASE sy-ucomm.
WHEN 'PRNT'.
DATA: l_params TYPE pri_params,
l_valid TYPE c,
l_arc_params TYPE arc_params.
l_params-prsap = 'X'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LPIN'
copies = 1
list_name = 'TEST'
list_text = 'Test NEW-PAGE PRINT ON'
immediately = 'X'
layout = 'X_65_132'
line_count = 65
line_size = 220
release = 'X'
mode = 'CURRENT'
no_dialog = 'X'
IMPORTING
out_parameters = l_params
valid = l_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
NEW-PAGE PRINT ON PARAMETERS l_params NO DIALOG.
PERFORM display_data.
NEW-PAGE PRINT OFF.
ENDCASE.
Thanks,
RanjanHi,
Just check it out. I m printed report directly instead of display.
w_destination = 'LOCL'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = w_destination
layout = 'X_58_170'
no_dialog = 'X'
IMPORTING
out_parameters = params
valid = valid.
IF valid <> space.
ALL DISPLAY PARAMETER RIGHT ON PRINTER
NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
ELSE.
GIVE ERROR PRINTER DESTINATION IS NOT VALID
MESSAGE s208(00) WITH text-010.
ENDIF.
ENDIF.
User write stament, That will dirctly go for print.
OFF THE PRINTING AFTER REPORT IS DISPLAY
IF valid <> space.
NEW-PAGE PRINT OFF.
ENDIF.
it may sortout ur problem.
Regard,
Vinod -
Data merge - multiple records per document
I am trying to do a data merge to have 4 addresses per page. I have my main page setup with the merge fields. When I select create merged document, the "records per Document Page" drop down is greyed out. I cannot select multiple records.
What am I missing?
Thanks,
PhilI guess I still do not understand how this works. I would like the multiple addresses to print 4-up on a page so that I can cut a letter size page in to fourths for postcards. The attached image shows my main document.
Phil -
How to Control with Maximum Record per Page
Hi Every one
how can I control with maximum record per page with parameter sending from Form
ex.
if I set parameter with value=15 the report will run 15 rows per page ?
Can anyone help me Please ASAP ?
ThankxPLay around with SRW.SETMAXROW , from memory that should do the trick.
Cheers.
N.
Maybe you are looking for
-
FCC source file gives error in mapping
While doing File Content Conversion Text to(XML) : Multiple Records occurring in SXMB_MONI and Receiver Channel not working(Mapping Error). Please can anybody tell me how to correct this error or how to proceed.
-
Create a new table by joining rows of a given table
Table1 (id, value1, value2) id value1 value2 1 23 45 2 34 54 3 11 09 new table (id, table1.id, table1.id, product) In other words I am trying to pair up rows in table1 and a new field and form the new table. How do I do this ?
-
Hi sir, I have Some Issue during Upadte Assigment in ps 2013. PJClientCallableException: ProjectHasWriteLock vijay
-
Master Delta Load - Error "38 Duplicate records found"
Hi Guys, In one of our delta uploads for a Master data we are getting error "38 Duplicate records found". I checked the PSA data but there were no duplicate records in that. Once the data upload fails I manually update the failed packet and it goes f
-
Can i connect two tv's to a single apple tv unit?
My hdtv's are uniquely located in same area of house, only 1 in basement/family room the other in the living room. I have a hole in the floor, behind the living room tv, already running wires between the two. The wire length is less than 20 feet. Now