Outputting large html reports

  • Thread starter Thread starter Pavils Jurjans
  • Start date Start date
P

Pavils Jurjans

Hello,

I have a question regarding what would be the suggested practive in the
following problem:

I am about to create a report generation library. This library would take
html template and use data to populate this template many times, thus
createing long multi-page html code. Now, I want to start streaming down the
report to the user, as soon as the first page is ready to view, instead of
having user to wait until all the pages are prepared and only then sent to
user. I see how I can do it with using the ol' good Response.write method,
but it seems to be quite unsuggested way to use in ASP.NET, as far as I read
in books. Is it fine to do it with Response.write, or there is some better
method, involving new features of ASP.NET?

Thanks,

-- Pavils
 
you also have to turn off page buffering. also for the browser to render any
of the html before the download is complete, you need to keep the markup
simple, and not have any dangling tags. pdf files may be a better option as
the pdf reader has a notion of pages.

-- bruce (sqlwork.com)
 
I'm actually building the html that is understood by MS Word, so pdf is
worse option in this case, because much of Word features can be achieved via
special tags and attributes. I plan to use the MS Office XML document
standard, too, in the future.

Yes, the buffer has to be shut off, but, the question I was worried about
is, wether the use of Response.Write is something deprecated in ASP.NET
world, and what is perfect alternative.

-- Pavils
 
Back
Top