I am trying to capture the following page using standard c# .net code. I’ve searched around for people’s various methods, most of which involve instantiating a browser object and using a draw to bitmap method. However, none of these pick up the contents of the chart on this page:
http://www.highcharts.com/demo/combo-dual-axes
Perhaps the javascript doesn’t have time to run, but adding Thread.Sleep(x) hasn’t assisted.
This commercial component captures it correctly, but I’d rather avoid requiring an additional dependency in my project and paying $150 when the other solutions are sooo close!.
Anyone find their solution renders this correctly?
You have possibly tried IECapt. I think it is the right way to go. I created a modified version of it and use a
timerinstead ofThread.Sleepit captures your site as expected.——EDIT——
Here is the ugly source. Just Add a reference to
Microsoft HTML Object Library.And this is the usage:
File1
and File2