XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 3rd, 2011, 05:34 AM
pcliaros pcliaros is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Posts: 1 pcliaros User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 4 sec
Reputation Power: 0
XSL & CSS Pagebreak

Hi,

I've created a web page that uses Evo HTML to PDF Converter. The web page pulls data from a SQL Server Database, exports it to the webpage using an XSL file and the Evo program exports that webpage into a PDF file.

The data pulled from the database is grouped by Dates, and then by Location. From there it is ordered by times.

For each date, I have put in a
Code:
table width="100%" style="font-family: Calibri, Arial; page-break-after:never">
so that each page has a brand new date. The date is then repeated on the following pages depending on how many locations and times there are.

Under each location, there can be as many as 10 different times. What I want to happen, is if the whole Location group (i.e. all the data - ordered by time - doesn't fit on the page that it is currently on, it will automatically push that location onto the next page.

I'm using a
Code:
<xsl:choose>
<xsl:when test="position() = last()">
in order to check if its the last page of the document so that the
Code:
table width="100%" style="font-family: Calibri, Arial; page-break-after:never">
won't add an extra blank page after all the data has been exported. I'm thinking there would be some code similar to this that would do a similar job??? Help greatly appreciated

Reply With Quote
  #2  
Old January 25th, 2012, 02:25 AM
kristy85 kristy85 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 13 kristy85 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 49 m 7 sec
Reputation Power: 0
I have a problem while generating PDF reports, my report shows a table with the employee's information, but the issue is that the report splits between employees, in other words, some of the information is displayed in one page and the rest in the next one for the same employee. I'm using Viisual Studio 2003, ASP.NET 1.1, C# , ABCDPDF 5.0, and XSLT and I was thinking was that there might be a way to identify when the last node will not fit in the page then do a page break. I can't use counter of nodes to do it because the nodes may vary in size for each employee. I also found out about XSL FO, but how could I implement it without changing the current XSLT file? because there are several xsl:for each statements in it that get the value from the code behing page.

Please any suggestions?

web development services | Web development company

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XSL & CSS Pagebreak

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap