Solved

HTML reports

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

Expert Comment

by:paulmacd
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 33

Expert Comment

by:paulmacd
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 33

Accepted Solution

by:
paulmacd 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now