Correct use of the page-break-after

Hello

I don't know that it is a simple question for you.

I have LONG pages of stuff on the web for people to print, and I wish they were able to print in a very specific way-

I want to decide when the page "breaks".

On the web, I saw simple HTML, but also JAVASCRIPT solutions - and I like to keep the solution as simple as possible.

On this forum, there are a few discussions of pagebreak, but no simple and final solution.

In your opinion, does the following work?

< html >

< head >

< style >

{.breakhere}

page-break-after: always ;}

< / style >

< body >

Page 1

Page 1

Page 1

Page 1

Page 1

Page 1

Page 1

Page 1

< div style = "breakhere" > < / div >

Page 2

Page 2

Page 2

Page 2

Page 2

Page 2

Page 2

Page 2

< div style = "breakhere" > < / div >

Page3

Page3

.

.

.

< / body >

< / html >

Have a look here http://css-discuss.incutio.com/wiki/Print_Stylesheets

However, the best solution for printing, is to use a PDF file, what they are for. Create a PDF file containing the same data. You have total control over the printing format in this case. Have a look here http://www.fpdf.org/

Tags: Dreamweaver

Similar Questions

  • How the page break to each Department and calculate totals for Department

    I have a stored procedure that queries our sql database and returns the name of the employee, their Department, and a few other calculations. I use CFDocument to create a table and view the results. Here's the code that does this (see below) what I have to do is find a way to create a page break after that I have show a total for each column in each Department. My questions are so

    1. How can I insert a page break after the end of each service
    2. just above the page break, how to calculate the totals for the Department and display them?

    < cfdocument format = "pdf" >
    < table width = "650" border = "1" >
    < cfoutput query = "getResults" >
    < b >
    < td > #EmpName # < table >
    < td > #Dept # < table >
    < td > #JobType # < table >
    < td > #NonBill # < table >
    < td > #NonBillMeter # < table >
    < td > #NumberFormat ((NonBillPercent*100),.00) # < table >
    < td > #Bill # < table >
    < td > #BillMeter # < table >
    < td > #NumberFormat ((BillPercent*100),.00) # < table >
    < /tr >
    < / cfoutput >
    < /table >
    < / cfdocument >

    If I remember correctly, the tag you want is cfdocumentitem. Also, you want to check the attribute of cfoutput group.

    The details are in the cfml reference manual. If you do not have one, has the internet.

  • Only 1 page print well. Page 2 is shifted to the right, and the information is lost in the page break. FireFox 8 and 9, Mac OS 10.6.8

    Mac OS 8 and 9 FireFox 10.6.8
    If I print a web page, all simply to print or save to PDF, only the first page prints fine. Page 2 is shifted to the right, such as the information is cut on the right edge. Information is lost in the page break, several lines of text will be lost. If I need to print a page, I open Safari, which does a very nice job of formatting of the page for printing. But I want to use FireFox. Can you help me?

    The problem persists if start you Firefox in Mode safe? http://support.Mozilla.com/en-us/KB/safe+mode

    What is with an empty profile? http://support.Mozilla.com/en-us/KB/basic%20Troubleshooting#w_8-make-a-new-profile

    If it happens in the two safe mode and with a new profile, please post the content of about: support

  • How to change the page numbers after adding &amp; save page numbers in the pdf document - need to change the existing page printed on the upper right in the header numbers

    How to change the page numbers after you add and save the page numbers in the pdf document - need to change the existing page printed on the upper right in the header numbers.

    These page numbers were initially created using Acrobat PDF header and footer.

    I have a 750 page pdf document that I've created.

    I have to sometimes the pages up and down after that I added the page numbers in the document by using the Header_Footer tool on the right column of tools.

    But after you save the document, if I get a few pages around, I can't go back and change the page numbers.

    I thought that the page numbers, as indicated in the header and footer must have changed automatically, but I guess that once its print, that it cannot be edited - is that, as what is?

    So I guess we should always first get a copy without numbers of pages before confirming the documents and the creation of an index.

    A way to remove these page numbers already there and add new page numbers.

    Its a lot of work to align 750 court documents and then realize that you must move some and then realize the page numbers cannot be changed and thus begin to do this all over again to compile which can take about 10 hours.

    My question is quite simple, but I hope that overall, I got my point. Sorry if I made it is too complex.

    If no simple way, want to know if anyone has another different tool or a few recommendations to better highlight what I'm doing wrong.

    Thank you for your review and response.

    You should be able to update with tools - Pages - header & foot-

    Update... It not work for you?

    If this isn't the case, then try to remove from this menu and then re - adding them.

    Tuesday, June 23, 2015 23:55, Fortune Mile [email protected]>

  • Is it possible to create a PDF file using only the pages of an existing PDF?

    Is it possible to create a PDF file using only the pages of an existing PDF?

    Hi drdanger,

    There is a way, and it requires Acrobat. You need Acrobat to extract pages from a PDF. You are welcome to try free for 30 days, Acrobat, if you haven't already. See www.adobe.com/products/acrobat.html for more information.

    If Acrobat, you choose extract in the Pages of the Toolbox pane, then specify which pages you want to extract. These pages are extracted to a new PDF file, which then you name and save it.

    Best,

    Sara

  • Keep options avoid the page breaks between consecutive paragraphs

    Why ID CS5 will place a page break * between * separate paragraphs? My unbreakable options are set for 2/2 at the beginning and at the end of paragraphs. But obviously, I want the page breaks occur * between * consecutive paragraphs. In other words, I want two lines to be kept together on one page from the beginning or the end of a paragraph. But I don't want all the 4 lines, those two paragraphs to be kept together. Yes, it's that fact ID. He asks me to insert manual page breaks between consecutive paragraphs that fall naturally to a page break.

    Is there maybe some hangover of MS Word code that is originally for this? I can't understand.

    Do you have something to keep with Next? or are you the Dungeon with the Previous buttons checked?

  • The devil break after means?

    Hi all

    Sorry to bother you with simple stuff, but I find that I don't have knowledge base of break after adjustment for the buttons. Typical situation: a landslide of 10 seconds with a next value button appear after 1 second and break after after 3 seconds. What is happening actually after 4 seconds? In my case, the next button works always... in fact forever. The devil break after means?

    Thanks for you help,

    Roger

    Hello

    Try to imagine that the playhead is normally mobile forward (at 30 fps), but when he hits a button suspension point (in your example at 4secs) it stops until the user clicks the button. This means that all objects that are on the schedule after this point of suspension will not 'visible' to the user during this outage. When the playhead is released by clicking on the button, they will become visible when the playback slider reaches the beginning of their timeline.

    Lilybiri

  • Using the page submit after elements in the process of treatment page

    Hi all

    I have a form of DML in which the user can update a column.

    After clicking the Apply Changes button that I need to send an email saying the record has been updated with some page elements in the body of the email.

    I am able to send email, but I'm not able to display the page elements in the body.

    After changing the save the session state for the 'yes' also he did not.

    Y at - it another option that must be set so that I can use the page elements in the body of the email.

    Thank you

    MJ

    Make sure that after settlement it is normally a reset page call, is perhaps what kills the variables you are trying to access.  You should put your mail send processes PRIOR to the reset page process...

    Thank you

    Tony Miller
    Los Alamos, NM

  • Extra blank line inserted after the page break

    Hello

    I currently have problems with alignment using templates in BI Publisher.
    I am trying to create a model that will print on a pre-printed form.
    Each group in the State should be separated by page, so the Group has a <? split-of-page-break:? > before <? end-for-each? >.
    However, when the next page begins, there is a blank line inserted. This messes up the alignment in total.

    Code looks like this:
    <? for-each-group: G_Document; / DOCUMENT? > <? sorting: current-group () / DOCUMENT; ' ascending '; data-type = "text"? > <? for - each:current-group()? >
    -INSERT table MODEL HERE-
    <? split-of-page-break:? > <? end-for-each? >

    Output is like this:

    (Page1) < TABLE MODEL >
    Jump to Page <>
    (Page 2) < new line >
    < TABLE MODEL >
    Jump to Page <>
    (Page 3) < new line >
    < TABLE MODEL >
    Jump to Page <>
    ...

    I found this old thread Split-of-Page-Break insert extra line that has exactly the same problem, however, I tried all the proposed solutions, even the last one, and I still have the problem.
    Any help would be greatly appreciated.

    Kind regards
    Jovee

    If your issue is resolved can you please close the message and give me a few points.

  • skillbuilders modal page: how to submit the page parent after closing modal window

    Hello.

    I use Apex 4.2.1 on mod_plsql and Oracle 11 g 3.

    I installed version 2.0 of plugin Skillbuilders Page modal.

    In may, app, page 7 presents a button.  When you click on it, page 6 is displayed as a modal popup.  Users can change this modal page form fields and then click on a "submit" button.  This, in turn, automatically closes the modal page.  Users seek then to page 'parent' (page 7).  It all works very well.

    My problem: Page 6 (modal page) contains a collection of Apex.  This collection is updated when users click the submit button.  It is this collection to be displayed with the data updated on the page "parent" (page 7).  And so, I need to automatically send page 7 when the modal page closes automatically after clicking submit on the modal page.

    I tried a dynamic action that performs an action of "submit page" whenever the user clicks on the button send in the modal page.  But because the plugin uses an iframe to display the modal page, the action of page submit real that happens in the iframe, not in the 'parent' page (page 7).  When the modal page closes automatically, users are left looking at the page of 'parent' (page 7) with the previous data (not updated).  I have to manually refresh the page (via the browser) to see the data updates to the collection.

    And then, does anyone know how to automatically return the page of 'parent' when the modal window closes automatically?

    Thank you.

    Elijah


    Your dynamic action automatic closing has not been set correctly. The action is not triggered on a specific item, but rather on the 'document '. Your selection should be 'Élément DOM' and the element must be "document".

    (Note that if you use several modal pages on one page, this action triggers for each of them. You can use the 'modal page id' in the creation of the page modal DAs must be able to stand out in outreach. You can find this in the documentation, too.)

  • All links on the page fail after migration to Trinidad

    Migrated Jdev 10g App to JDev 11g (11.1.1.9).

    Note: the page works in 10g.

    I got the site working with the exception of one page (and a few minor bugs). This page looks like others he has a tab-based menu (and duplicate links) and a search box. When I search for or click on one of the links the backing bean ActionListener code is not executed, and I get a message the top left of the page with just a picture of X and the word Error.Console journal has this:

    < oracle.adf.model > < DCJboDataControl > < initializeApplicationModule > < [499] DCJboDataControl.initializeApplicationModule (520) (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode immediate = >)

    < oracle.adf.model > < DCBindingContainerState > < validateToken > < [500] DCBindingContainerState.validateToken (680) process BindingContainer State token(decompressed_state):BCST: = 0CablesByStage2TestIDReportView1Iterator = - D-, >

    < oracle.adf.model > < DCUtil > < findSpelObject > < [501] DCUtil.findSpelObject (372) DCUtil, returning:oracle.jbo.uicli.binding.JUApplication for ETAppModuleDataControl >

    < oracle.adf.model > < DCJboDataControl > < initializeApplicationModule > < [502] DCJboDataControl.initializeApplicationModule (520) (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode immediate = >)

    < oracle.adf.model > < ApplicationPoolImpl > < reuseReferencedInstance > < ApplicationPoolImpl.reuseReferencedInstance (2509) [503] reuse an instance of session cached request module >

    < oracle.adf.model > < DCUtil > < findSpelObject > < [504] DCUtil.findSpelObject (372) DCUtil, returning:oracle.jbo.uicli.binding.JUApplication for ETAppModuleDataControl >

    < oracle.adf.model > < DCUtil > < findSpelObject > < [505] DCUtil.findSpelObject (372) DCUtil, returning:oracle.jbo.uicli.binding.JUApplication for ETAppModuleDataControl >

    < oracle.adf.model > < DCIteratorBinding > < getViewObject > < DCIteratorBinding.getViewObject (1474) resolution [506] VO: Macpac2bodshullView1 for the iterator binding: Macpac2bodshullView1Iterator >

    < oracle.adf.model > < DCIteratorBinding > < getViewObject > < DCIteratorBinding.getViewObject (1474) resolution [507] VO: Stage2TestIdByHullView1 for the iterator binding: Stage2TestIdByHullView1Iterator >

    < oracle.adf.model > < DCIteratorBinding > < getViewObject > < DCIteratorBinding.getViewObject (1474) resolution [508] VO: CablesByStage2TestIDReportView1 for the iterator binding: CablesByStage2TestIDReportView1Iterator >

    < oracle.adf.model > < DCUtil > < findSpelObject > < [509] DCUtil.findSpelObject (372) DCUtil, returning:oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding for CablesByStage2TestIDReportView1 >

    < oracle.adf.model > < DCJboDataControl > < syncWithForceOption > < DCJboDataControl.syncWithForceOption (1905) [510] * DCDataControl.sync () called from: DCBindingContainer.refresh >

    < oracle.adf.model > < DCBindingContainerState > < validateToken > < [511] DCBindingContainerState.validateToken (680) process BindingContainer State token(decompressed_state):BCST: = 0CablesByStage2TestIDReportView1Iterator = - D-, >

    < oracle.adf.model > < DCBindingContainer > < validateInputValues > < DCBindingContainer.validateInputValues DCBindingContainer:etwclreportPageDef (4352) [512] no postings were not made >

    < oracle.adf.model > < DCJboDataControl > < syncWithForceOption > < DCJboDataControl.syncWithForceOption (1905) [513] * DCDataControl.sync () called from: DCBindingContainer.refresh >

    < oracle.adf.model > < DCIteratorBinding > < releaseDataInternal > < [514] DCIteratorBinding.releaseDataInternal (2965) releasing iterator binding: variables >

    < oracle.adf.model > < DCIteratorBinding > < releaseDataInternal > < [515] DCIteratorBinding.releaseDataInternal (2965) releasing iterator binding: Macpac2bodshullView1Iterator >

    < oracle.adf.model > < DCIteratorBinding > < releaseDataInternal > < [516] DCIteratorBinding.releaseDataInternal (2965) releasing iterator binding: Stage2TestIdByHullView1Iterator >

    < oracle.adf.model > < DCIteratorBinding > < releaseDataInternal > < [517] DCIteratorBinding.releaseDataInternal (2965) releasing iterator binding: CablesByStage2TestIDReportView1Iterator >

    It's almost as if a validation is a failure, but I only see a validator on the page.

    I'm running out of things to try on this. When I put breaks in the code of the bean to support they are never reached. WLS newspapers don't have any error in them.

    There is a custom listener phase with methods that are available, but no error is generated in it.

    Any ideas on where to look to fix this?

    Thank you

    Dave

    I found this piece of code in the page is the problem:

    value = "#{bindings." CablesByStage2TestIDReportView1Iterator.rangeSize}">

    This inputText sets the RangeSize of the iterator. I comment this out and I don't get the error. I tried to simply remove the validator but always error.

    What is the best solution - capture the value of the text input and use a method on the bean managed for the value and update the rangesize?

    Is there a declarative way? I use Trinidad components due to migration of the 10 g page.

  • region of refresh on the page parent after closing popup inframe

    Hello

    I have parent page with several regions, and one of the reports is related popup to another page using inframe. All these are works fine but now iam trying to a parent region partially regenerate after closing the window contextual inframe, I tried apex.submit (region1) but it does not work? no idea how can I update this after the closure of the window popup?

    Best regards and thank you

    Hi Gor_Mahia,

    Gor_Mahia wrote:

    Here are the details,

    application ID = 46268

    page ID = 13

    demo123/demo123

    proj2010 = workspace

    Use the links in the second column IR

    Once again thanks for your time.

    Check your application now. The interactive report is refreshing on the closure of the modal dialog box using the method of dynamic, such action described in the blog post:

    Monkey on Oracle: Modal popup with dynamic Actions

    Here are the changes:

    • Edited your action dynamic and value:

    In the section "Advanced":

    Scope of the event: Dynamics

    In 'true Actions:

    Action edited your "run the Javascript Code" and "Code" to modified:

    From:

    /* prevent default behavior on click */
    var e = this.browserEvent;
    e.preventDefault();
    /* Trigger JQuery UI dialog */
    var horizontalPadding = 30;
    var verticalPadding = 30;
    $('