15,907,183 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 irwin.potter (Top 3 by date)
irwin.potter
5-Jul-17 5:56am
View
You can use
a PowerPoint library for C# or VB.NET
to do this (see Charts and Diagrams example).
irwin.potter
5-Jul-17 5:51am
View
First I would suggest you to take a look at this
Word and PDF library for C#
, it can enable you to straightforwardly
convert a HTML content into PDF format from C#
. For example:
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
pnlCertificate.RenderControl(hw);
pnlCertificate.Style.Add("border", "2px solid black");
pnlCertificate.Style.Add("margin-top", "60px");
pnlCertificate.Style.Add("text-align", "justify");
DocumentModel document = new DocumentModel();
document.Content.LoadText(sw.ToString(), LoadOptions.HtmlDefault);
// You could use the following to download a PDF file.
//document.Save(Response, "Document.pdf");
// Or you could use the following to save PDF to stream.
MemoryStream stream = new MemoryStream();
document.Save(stream, SaveOptions.PdfDefault);
Now regarding the mail, you could use
this email library for C#
and use the following code to
send an email message with attachment in C#
.
irwin.potter
5-Jul-17 5:39am
View
Here is another solution for
reading .csv in c#
. Actually you can use exactly the same approach for reading any other Excel format.