16,023,124 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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)