Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Printing rendered HTML

Author  Topic 

MichaelP
Jedi Yak

2489 Posts

Posted - 2003-11-04 : 12:13:25
Lets say I have a string of HTML. I want to "render" it just like what you see in your browser, and then print out the rendered version.
Anyone know of a way to do this without using IE (we are exploring the IE way, but we want to avoid relying on IE). We would consider buying something that can make this happen as well.

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>

Sitka
Aged Yak Warrior

571 Posts

Posted - 2003-11-04 : 14:22:11
Maybe something like.

a two page website that you use with acrobat web capture feature.
two recordsets.
Loop thru the first to dynamically create a table of contents which is all links to the second page containing the dynamic created string (detail) you want to render. Adobe considers the first page the top level.
view source on the first page =

<a href="http://jones/totfinpdflink.asp?search=C2242 ">C2242 </a><br>
<a href="http://jones/totfinpdflink.asp?search=C2243 ">C2243 </a><br>

each link carries the parameters needed to get the proper rendering on the second page.
the srting processing page accepts those parameter(s).
then in Acrobat you say capture web 2 levels deep, set how you want it to interpret the html and say go. I builds the pdf; then print.

Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2003-11-04 : 17:12:51
Hey Michael

I think this will do what you want.
http://www.meadroid.com/scriptx/docs/printdoc.htm?static#basic

You might need to write some interop code to call it from .NET, but that shouldn't be too hard.


Damian
Go to Top of Page
   

- Advertisement -