CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 If Your Report Pagebreaks Don't Work in IE7...

Print topic Send  topic

Author Message
JimmyCrackedCorn

Posts: 583
Posted: 06/09/2007, 7:23 PM

I was working with CCS tonight trying to create a report and no matter what I did the page breaks were not working. I checked the source code CCS was creating and found this command for the page break,

<p style="PAGE-BREAK-AFTER: always"></p>

This appeared correct as we have used this on web sites many times in the past but when I asked one of my designers about this she said there is a known problem with IE7 where the above code WILL NOT cause a page break. However, if you add a non-breaking space inside the paragraph tag as shown below it works,

<p style="PAGE-BREAK-AFTER: always">PUT NON-BREAKING SPACE HERE INSTEAD OF THIS TEXT</p>

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
wkempees
Posted: 06/10/2007, 4:54 AM

Gold!

DonB
Posted: 06/10/2007, 5:29 PM

The specified behavior for html tags is 'if empty, ignore it'. Some
browsers aren't so strict. So this is not a 'problem' in IE7, it's a case
of it getting closer to the correct behavior.

Presumably, there is a "H" heading tag (fairly common for people to do this)
leading off the page - a caption or title. It would be preferable to assign
the page break to that element rather than adding extra markup (the
<p></p>). If so, then the empty <p>-tag situation would go away.

--
DonB

http://www.gotodon.com/ccbth


"JimmyCrackedCorn" <JimmyCrackedCorn@forum.codecharge> wrote in message
news:25466b609cb66e0@news.codecharge.com...
> I was working with CCS tonight trying to create a report and no matter
what I
> did the page breaks were not working. I checked the source code CCS was
creating
> and found this command for the page break,
>
> <p style="PAGE-BREAK-AFTER: always"></p>
>
> This appeared correct as we have used this on web sites many times in the
past
> but when I asked one of my designers about this she said there is a known
> problem with IE7 where the above code WILL NOT cause a page break.
However, if
> you add a non-breaking space inside the paragraph tag as shown below it
works,
>
> <p style="PAGE-BREAK-AFTER: always"> </p>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

JimmyCrackedCorn

Posts: 583
Posted: 06/11/2007, 12:44 AM

Quote DonB:
this is not a 'problem' in IE7, it's a case of it getting closer to the correct behavior.

Technically you are correct of course. But as a busy web developer with lots of live sites to build and support I take very little comfort in the knowledge that new browsers (IE7 and Firefox) are more standards compliant while breaking my (and others) working code!!! I agree standards are important so browser-makers should support them but they shouldn't break working code in the field. To me, that's just lousy business practice.

Quote :
It would be preferable to assign the page break to that element rather than adding extra markup (the <p></p>). If so, then the empty <p>-tag situation would go away.

CCS already generates the <p></p> markup. My "fix" just makes that work in IE7. For me, that makes it Miller time!
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
DonB
Posted: 06/11/2007, 5:38 AM

Yes, I continue to wonder why, 15 or so years into this 'browser' business,
that they haven't all gotten on the same page. It would certainly be a
public-relations boost for ALL of them to agree on how it's supposed to work
instead of continuing their 'me first' attitudes.

--
DonB

http://www.gotodon.com/ccbth


"JimmyCrackedCorn" <JimmyCrackedCorn@forum.codecharge> wrote in message
news:25466cfd7400113@news.codecharge.com...
>
Quote DonB:
this is not a 'problem' in IE7, it's a case of it getting
closer to
> the correct behavior.
>
> Technically you are correct of course. But as a busy web developer with
lots of
> live sites to build and support I take very little comfort in the
knowledge that
> new browsers (IE7 and Firefox) are more standards compliant while breaking
mine
> and others working code!!! If standards are important to MS and the
Mozilla
> crowd then by all means support them but don't break working code in the
field.
> To me, that's just lousy practice.

> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.