print function in ASP
Anyone has the sample code of formatting the data from the database and has a print function to print it out nicely in a pre-defined format(i.e. with the colors and fonts)
You can format the data output using the usual methods for formatting (font tags or CSS). If the data is contained within a table, CSS is probably the quickest method.
Did I understand your question properly?
Actually I don't.
I did a quick test with data that I knew would exceed the scroll area and then I printed the result.
Netscape printed only what could be seen.
IE printed every record.
I never realized this.
I also don't understand it.
What version of IE are you using? what happens to the print output if it exceed the scroll area? print into two pages?
Anyways, the requirement is to print it in Netscape, do u think it's normal to print reports in browser or use some reporting tools to do the job?
My IE is 5.5
My data printed on 2 pages (although my example had vertical scroll bars (my data was long), not horizontal scroll bars (yours is wide).
I still don't understand this, but you should be able to print all of the data. You will eventually need to make sure that your data fits in landscape format (or it will be tough on the reader).
I'm almost certain that I did not have this problem with printing data in the past, but I can't recall the circumstances of the data and how it was handled.
I'll look into it more, I guess.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)