15,918,330 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 Weepre (Top 3 by date)
Weepre
5-Jul-16 9:29am
View
as 'bsb25' suggested below one approach would be to use
excel interop from your C# code
, however another approach would be to use
an excel's library for C#
.
For example something like the following:
ExcelFile requestBook = ExcelFile.Load("Translation Request.xls");
ExcelFile dictionaryBook = ExcelFile.Load("Translation Dictionary.xls");
// Copy second row from "Sheet1" in "Translation Request.xls" file
// into a "Sheet1" in "Translation Dictionary.xls" file
// onto an "A2" position (the beginning of the second row).
requestBook.Worksheets["Sheet1"].Rows["2"].Cells.CopyTo(
dictionaryBook.Worksheets["Sheet1"], "A2");
dictionaryBook.Save("Translation Dictionary.xls");
You can also refer to this
article about reading excel files from C# application
.
Weepre
5-Jul-16 9:17am
View
That is true for only newer DOCX file format,
working with an older .doc format in .net
is a bit hard (its pure binary). Nevertheless there are some approaches that can utilise both formats, like
this .net library for word processing
:
Dim document = DocumentModel.Load("Sample.docx")
document.Sections(0).PageSetup.PageColor = Color.Black
You can refer to
this sample for creating a word document in vb.net
.
Weepre
4-Jul-16 9:09am
View
This example shows how to send email in .NET
, is uses
an email library for .NET framework
.