Solved

HTML reports

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

24 Experts available now in Live!

Get 1:1 Help Now