Quantcast
Channel: HTML Renderer
Viewing all articles
Browse latest Browse all 693

New Post: RENDERING TO Response Output Stream

$
0
0
I am able to capture the aspx into HTML, by overriding render in a page.

I then use:

image IMG = HtmlRenderer.HtmlRender.RenderToImage(Pagehtml)

where Pagehtml is a string containing all the page html code.

I set
Response.ContentType = "image/Png"

I save to the output buffer of the Response
IMG.Save(Response.OutputStream, ImageFormat.Png)

I send it to the client screen
Response.Flush()
response.End()

But I get a blanck page...... any other ideas?????

Viewing all articles
Browse latest Browse all 693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>