3
I can’t release the report I’m using, so I took a generic model on google to help me explain the doubt.
Assuming my report is as follows::
It is mounted via HTML on a system that works with both C# and VB.Net. My intention is on each print page, keep the following header:
This header is an image in the HTML body, by the way, the whole report is done simply with HTML and CSS the database that receives from the database, IE, Crystal Reports is not being used.
How can I proceed to keep this header on each print page?
How do you convert from HTML to PDF?
– Leonel Sanches da Silva
Actually, I’m not. I created a button with
onclick="window.print()"
and configured the style via CSS. Currently it brings the impression perfectly, just does not repeat the header as it is not inside a<thead>
.– Rafael Barbosa
I don’t think you can do it without using a tool. HTML has no header and footer by definition.
– Leonel Sanches da Silva
@Ciganomorrisonmendez What simple solution would you indicate me? I have to implement in a day, so there was this 'half mouth' development'
– Rafael Barbosa
@Rafaelbarbosa, put it inside a table
<table>
and uses the title within the<thead>
This as far as I know will only work in Firefox (I know that in Chrome and Opera does not work), is a quick solution, but "half mouth". Hehe– Fernando Leal
@Fernando hahaha is a solution. The problem is that in my report, I have two elements
<table>
. If I had only one, I could do it without error– Rafael Barbosa
You can try Vreport. With it you can configure what you want, delimiting by div’s. The following is a tutorial http://www.maujor.com/blog/2009/09/extensao-vreport/
– Randrade