?
Solved

HTML reports

Posted on 2014-11-05
5
Medium Priority
?
113 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Suggested Courses

765 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