Click here to Skip to main content
15,908,173 members

Comments by Member 10872859 (Top 3 by date)

Member 10872859 23-Jun-14 8:22am View    
Can you please tell me the syntax
Member 10872859 17-Jun-14 7:58am View    
Thanks Sir..I got the clues from your hints. I have managed to send data of full page to first column of excel sheet. Now I am looking forward for automatic selection of particular content from the content in my web browser control. The complete data needs not to be exported to excel.
Member 10872859 17-Jun-14 5:06am View    
Thanks for your guidance.

Sir, I have already used ClipBoard class for this purpose.My code is as follows:
private void btnExport_Click(object sender, EventArgs e)
{
string browserContents = webBrowser1.Document.Body.InnerText;

webBrowser1.Document.ExecCommand("SelectAll", false, null);

webBrowser1.Document.ExecCommand("Copy", false, null);

Clipboard.SetDataObject(browserContents);

IDataObject iData = Clipboard.GetDataObject();
}

And I know the process of generation of excel sheet too.

I am just stuck at the point of saving the copied data into excel. As you can see in code, data is saved from web browser control.

Can you please help me with this step according to my case.
1- Convert the copied data to a 2-dimensional string (you can do this by parsing the strings in nested for loops)