Click here to Skip to main content
16,019,199 members

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.