I am trying to get the width and height of the uploaded html file. This is what i have done so far.
WebBrowser wb = new WebBrowser();
int ht,wd;
wb.Navigate("D:\\page1.HTM");
ht = wb.Height;
wd = wb.Width;
But the above code always return me the wrong size of the page.
Can anyone help me to get the exact page size in the c# environment?
FYI: For those whose marked this question a duplicate, Please consider that the original question(as per your point of view), The webbrowser tool is implement in the form but in my case, I am not going to implement it. I am just going to use it. I hope the first line of code denotes that.