15,898,371 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 EaveTina (Top 2 by date)
EaveTina
24-Nov-15 2:06am
View
While searching for a solution to this I found
a direct way of exporting a DataGridView control into an excel file
.
All you need to do is use
this method
, it is provided with
this C# library for excel files
.
EaveTina
23-Nov-15 3:10am
View
Ira your problem occurs because you do not have MS Word installed on server, but note that Sergey gave some great points, especially the one regarding the
usage of Word Interop in .NET
on server side. This is really not recommended nor supported and the best is to avoid it and use some alternative instead.
But regarding the rest of his answer, I disagree and I presume that you also disagree as well.
First regarding the following statement: "...other Microsoft Office files. These files are best avoided". So let's say we avoid them, what would be an alternative? Use HTML to represent documents, spreadsheets and presentations, really? I feel that Sergey does not realize that it's not just about the formatting, office files provide quite a few additional features which have a large usage.
Nevertheless you did not mention that you need to view the document in the browser, so I'm not sure why he suggested the HTML in the first place.
Instead I would suggest you to take a look at some already available
solution for converting Word files into PDF files with VB.NET
. That solution uses
a Word processing library for VB.NET
, I hope this helps.