15,914,500 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 Javascript questions
View Visual Basic questions
View Python 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 Cridbro (Top 3 by date)
Cridbro
18-Apr-16 5:29am
View
For this you'll need to have an email client that would be able to retrieve the emails from your email server and delete the required on.
You can use
a VB.NET dll for emails
, it supports reading emails with both POP and IMAP, for example here is a demonstration on
receiving emails with IMAP protocol from VB.NET
. Also
this
demonstration shows how to work with your email folders.
Cridbro
18-Apr-16 5:21am
View
I believe what you're actually looking for is
to do a mail merging in C#
, that is a task of importing data from some external source into your document. For example you create a table inside your document and place special placeholders (merge fields) into it and when merging the table will be filled with rows (for each record in your source) and cells (that will have values of those records). The article above demonstrates this
by using a C# dll for word
.
Cridbro
18-Apr-16 4:53am
View
You could use
an excel component for .NET
, it is able
to read your excel files with C# in memory
. Even the protected (encrypted) ones, however for them you need to provide password (see
here
).
So what you could do is use a brute force iteration for password combinations and for each use something like the following:
string password = "ABC";
bool success;
try
{
var ef = ExcelFile.Load("Sample.xlsx", new XlsxLoadOptions() { Password = password });
success = true;
}
catch(FileFormatException)
{
success = false;
}
You do this until "success" is "true".