16,019,199 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 RollUpBob (Top 5 by date)
RollUpBob
17-Oct-17 2:17am
View
Do you need just to show/display your Word file?
If yes then you could
process your DOCX files using C#
in order to create an image stream from it and then show that content in PictureBox control.
However, if you need to be able to modify them, then take a look at
this Word Editor for Windows Forms
, it uses
this .NET library for Word
.
RollUpBob
17-Oct-17 2:07am
View
You're welcome, I'm glad I could help.
RollUpBob
17-Oct-17 1:36am
View
Excel Interop does not support encrypted PDFs, so I think you have two options:
1. Create PDF with VB.NET by using that ExportAsFixedFormat and after that encrypt it, for instance like
shown here
(it's a C# example, but hopefully you can translate it to VB.NET with ease).
2.
Convert Excel file to PDF in C# / VB.NET
like the following:
Dim workbook As ExcelFile = ExcelFile.Load("C:\test\DDB_TEST.xlsx")
Dim options As New PdfSaveOptions()
options.DocumentOpenPassword = "password"
workbook.Save("C:\test\DDB_TEST.pdf", options)
The code uses an API from
this Excel library for VB.NET
.
RollUpBob
16-Oct-17 9:01am
View
This short article demonstrates
sending an email with an attachment in c#
by using this
c# smtp client class
.
RollUpBob
16-Oct-17 8:55am
View
To view ppt files, in fact to view any other file format that is not directly supported by browserd (e.g. not html, pdf, png, etc.) you need to convert that file into a browser supported format and then you can show that converted representation. In other words, you need to take your
powerpoint slides with c# and vb.net
and create html content from them which you can then append to your page, or you can
convert your powerpoints to pdf with c# and vb.net
and then provide that pdf on your page.