Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Headers and footers through asp

Status
Not open for further replies.

davesmith

IS-IT--Management
Apr 2, 2001
31
IE
We are upgrading our systems so they are essentially based on our intranet through asp pages using an sql server.

One of the tasks that we do is send letters to clients, this is at present done in access reports where headers, footers and database information can be added, but now we want this to be done in asp's.

These letters and reports vary in record quantity with each one printed so we cannot set up the page to give the illusuion that there is a header and footer.

We have looked at crystal reports and then decided against the mortgage they were asking.

Is there another way to tell Internet Explorer to include a file as a header, then have the report/text next, then have a different file as the footer.
Also if the mid text were to overspill two pages can we get it to work out that the text should be split and footer inserted.

It seems possible in theory - any ideas.

Thanks as always.
 
Just try including files.

<HTML>
...
<!-- #include file=&quot;header.asp&quot; -->
.
.
Letter Text
.
.
<!-- #include file=&quot;footer.asp&quot; -->
</HTML>

Would something like that work?? Mise Le Meas,

Mighty :)
 
that will just create the one page without sizing, cheers.

Some sites have a &quot;printer format&quot; button in them, is this just a separate file they set up to look like its all automatic!!!!!!!

DaveSmith
 
DaveSmith,

I am actually having the same problem. After the on-going research, maybe these two solutions would help. First is to have the MS Word Component to have the data written out on a word document. You can get the info from
Another one is to write out an xml file; however, I have not had an idea how since I am not familiar with xml at all. For the first solution, still trying to work on it. Good luck for both of us, and if I have any good idea, I will let you know (but how).

Good luck,
Beer
 
You might want to look at using CSS I think that there is some capability with it to format headers and footers. There is also stuff for page breaks etc. Unfortunately I can not provide you with any details as I have never had to use it before but I have skimmed it in the CSS specifications.

Hope this might help Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
yesterday we decided to go for the export to word option, just trying to figure all the switches etc.... Great minds eh!

Cheers
Dave
 
If this meets your needs it may just save you a lot of grief and scalability woes.

It uses Word at the browser end! And no stinking around. Plus a reference to the &quot;reference book&quot; you'll need, and a decent example. It looks like it'll make a genius out of you, though it assumes your users have Word or Word Viewer installed.


P.S.

Keep this in mind regarding the &quot;solution&quot; you are currently persuing:

&quot;INFO: Automation of Office for Unattended Execution is Not Recommended or Supported&quot;
 
We have decided to go with the fact that we can first put the info on screen in an asp, then if our user does want to print it, although its the long way round, we will stream the word file to their hard drive, this meaning they now have a copy and can print it out as they need!

Cheers all

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top