Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 16th, 2008, 03:04 AM
Authorized User
 
Join Date: Oct 2007
Location: Hyderabad, Andhra Pradesh, India.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Print all pages of a HTML report ,XSLT 1.0

Hi All,

I have generated a HTML report using XSLT 1.0 in C#.NET.

Now my problem is, I implemented paging in that report and i want to print the specific pages the user wants through the print dialog box.

When I am trying to print all pages, the application is printing only the first page.Because each time we click on the next page (hyperlink) the report gets generated and goes to printer.Hence, I m not able to print all the pages If the user selects all pages in the print dialog box.

Please reply as soon as possible....



Thanks and Regards,
Jhansi
__________________
Thanks and Regards,
Jhansi
  #2 (permalink)  
Old January 16th, 2008, 04:26 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Sorry, but your post is essentially saying "I have written a program and it doesn't work. Please help". To help you get your program working, we will need a lot more information, including of course the program in question.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
  #3 (permalink)  
Old January 16th, 2008, 04:58 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Seems you need to do one of two things:
  • Have a link that displays the whole report, without paging. User can then print using the standard dialogue and choose a page range.
  • Have a link on the page that says "Print this page only" and call the window.print() function. This will still show the dialogue but the user will be less likely to try and alter the default settings.

--

Joe (Microsoft MVP - XML)
  #4 (permalink)  
Old January 17th, 2008, 11:17 AM
Authorized User
 
Join Date: Oct 2007
Location: Hyderabad, Andhra Pradesh, India.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Joe and Kay,

I could solve the problem by generating another report for printing without applying paging this time...
Thank u for the response...Take care..

Thanks and Regards,
Jhansi


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print Table-Fields on three different pages ketannsharma Access 1 February 20th, 2007 09:08 AM
Print Forms on Saperate Pages itHighway HTML Code Clinic 1 November 21st, 2005 08:04 AM
Does Print Template <HTML XMLNS:IE> works w/ xslt? gracehanh XSLT 0 July 20th, 2005 08:22 AM
Preview of HTML pages madhukp Classic ASP Basics 5 July 26th, 2004 03:02 PM
creating dynamic html pages moushumi Javascript How-To 1 August 16th, 2003 12:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.