Solved

HTML reports

Posted on 2014-11-05
5
107 Views
Last Modified: 2014-11-17
Hi,

   I was wondering what header / footer values are possible in an html report? If I am looking for all records related to a studentID and want to print it out, can I have the studentID and a title print out in the report?

Thanks
0
Comment
Question by:LuckyLucks
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 40424966
What an odd question!

There's no reason I know of you couldn't put any data you have access to in the header (or footer) of an HTML document.
0
 

Author Comment

by:LuckyLucks
ID: 40424990
I mean when printing out an HTML, to have that data repeat as header and footer  :)
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 40425006
You'd have to repeat the header and footer, but yes, it seems likely you can do what you want.
0
 

Author Comment

by:LuckyLucks
ID: 40441143
Using page breaks will allow you to statically introduce a particular text as header on every page and a number on the footer of every page. But the page number will be pre-determined or static. If I dont know in advance and am generating pages dynamically based on a query that returns a different number of rows each time, my number of pages will change over time and I can not use a page break. Is there a different way of using page breaks you were envisioning?
0
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 40441194
I don't know why page breaks would affect your extant page count, but the only other solution I can suggest is to generate a PDF or XPS file and display that in the browser.  

Anything else you do would - I believe - require you to operate under the assumption of a fixed page size.  If that's something that appeals to you, you can try using absolute values for your element placement and presume each page is of a particular height and width.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question