Link to home
Create AccountLog in
Avatar of GCCTECHIE
GCCTECHIE

asked on

Print a detailsview as header on each page

Hi,
I have a form that needs to be printed.

The structure of the form is as follows:
Header : Company logo | Form Title | Date, Author
Information: can be many pages.

In the aspx page, i put the header into a Detailsview (Detailsview2) and the rest of the information in Detailsview1.

Detailsview2 has 1 template field which i have put the table containing the info going into the header into.

the table is assigned to class printscan, using the following code.

i can get the header to display on each page, but the alignment seems to be off. the information section eats into the header space.

can someone help?

I attached screenshots of the first page and 2nd page in pdf printpreview.pdf
<style type="text/css" media="screen">
        .printspan
        {
            display:block;
        }

    </style>
    <style type="text/css" media="print">
        .printspan
        {
            display:block;
            position:fixed; 
            top:0;
            width:98%; 
            font-family:Arial,Helvetica;
                       
        }
    </style>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of GCCTECHIE
GCCTECHIE

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account