RE: Customizing the WebBrowser control by DavidJessee
DavidJessee
Mon Aug 14 10:57:02 CDT 2006
geez...I can only think of one way to really do this well...its a little
hairy, though.
Get the report Manually (via System.Web.HttpRequest). Then parse the
response text with a regex, looking for any <link> elements that hool in css
docs....remove those links and then add in the ones you want.
As for getting the css files out of the local assembly, you can always write
them to the temp directory and ahve the LINK elements use a file://
reference. I don't know if there's a way to get the resource out using the
res:// protocol....might be worth looking into, though
"scarleton@gmail.com" wrote:
> I am embeding the WebBrowser in my application to show reports. I
> would like to embed the graphics and the CSS files in a resource. To
> do this I need to "hook" the WebBrowser control so that when it goes
> looking for these files, I can give it the files from the resource.
> Any thoughts on how to do this? It does NOT look possible, at the
> moment.
>
> Sam
>
>