473,473 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

css page-break-before: always; not working

Claus Mygind
571 Contributor
I'm trying to display two google charts and data tables on two separate pages. Like this chart, table <new page> chart, table.

Here is my code
Expand|Select|Wrap|Line Numbers
  1.   <body>
  2.     <div id="chart_div" style="width: 900px; height: 500px;"></div>
  3.     <div id="table_div" style="width: 900px; height: 500px;text-align:center;">
  4.         <table border='1' align="center">
  5.             <tbody id='propCnt' style='font-size:small;'></tbody>
  6.         </table>
  7.         <span id="reportTotal" style="font-size:1.5em;font-weight:bold;"></span>
  8.     </div>
  9.  
  10.     <div style="page-break-before: always;"></div>
  11.  
  12.     <div id="job_chart_div" style="width: 900px; height: 500px;"></div>
  13.     <div id="job_table_div" style="width: 900px; height: 500px;text-align:center;">
  14.         <table border='1' align="center">
  15.             <tbody id='jobCnt' style='font-size:small;'></tbody>
  16.         </table>
  17.         <span id="jobReportTotal" style="font-size:1.5em;font-weight:bold;"></span>
  18.     </div>
  19.   </body>
  20.  
When I render the report on the screen, both charts are shown. I would like to start the 2nd chart on the 2nd page, so I use the css command page-break inside a <div> tag.
Expand|Select|Wrap|Line Numbers
  1. <div style="page-break-before: always;"></div>
Unfortunately, when I print or print preview the 2nd chart is not shown. Why is that and how can I fix it?

see attached screen shots as example of my problem.
Attached Images
File Type: jpg propcnt1.jpg (109.5 KB, 123 views)
File Type: jpg propcnt2.jpg (33.3 KB, 166 views)
May 16 '14 #1
0 1435

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: JohnK | last post by:
Hi all, This is my first time visiting this group. I already tried two other java groups, but those aren't very populated. I don't know if it is the right one, otherwise please tell me in which...
0
by: larry | last post by:
I've noticed that sometimes intellisense doesn't work in my C# solution. This is a large dll that is being built. There are no compiler errors or anything else that indicates problems. But...
0
by: Ole Olsen | last post by:
Hi Ever experienced that VS looses the ability to "auto"-implement the signature of an interface? Normally when typing this ': ImyInterface', Intellisense kicks in and asks whether you want...
1
by: Joe | last post by:
I have a MDI app where 2 children forms should never be closed. I'm using RemoveMenu API to remove the close X and context menu item. This works fine on one form but not on the other. The major...
2
by: oscar | last post by:
i'm making a mysql call from c# to a mysql database for a windows application. when i try to use the join command it works fine until the column being joined gets to a null character and then the...
2
by: Jonathan Crawford | last post by:
Hi I have built a few dot net projects, always working on my own. I have a collaborative project coming up and wondered if there are any guides that might be useful in setting up the new...
0
by: Bob | last post by:
I attached the properties list of the column in a datagridview. The datagridview is bound. Note that the cell visible property is set to false and while looking at the datagridview in the VS IDE...
2
by: Iain Adams | last post by:
Hey I am using cURL to connect to a web service. The web service returns a result. This works most the time however some times curl doesnt return anything, no errors and no xml (what the web...
4
by: alag20 | last post by:
Hi Guys, I am having a problem here and need some urgent help from anyone possible?? I have Application 1 which triggers Application 2. Application 2 runs some checks and if it is validated, it...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.