Solved

HTML reports

Posted on 2014-11-05
5
112 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 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

707 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