Skip to main content

Programmatically convert MS Word DOC and DOCX files to PDF in ASP.NET C#

Who never had the urge to convert one or more MS Word DOC and DOCX files into a PDF at least once? Truth to be told, it wasn’t that trivial back in the day: until the release of Office 2010, when the PDF extension appeared among the various  formats supported by the Save As… command, using Ghostscript-based software or installing PDF printer drivers was the only way to go.

After Office 2010 the problem was finally solved even for the average user, with the sole exception that he still has to have MS Office installed on his machine. Those who didn’t have it can continue to use the aforementioned free alternatives ond purchase a software that will take care of the job for them.

What about doing that in a programmatic approach? What if we are developing a C# application and we need to convert some DOC or DOCX files into PDF, thus making then available to download without giving the source document to the users, possibly without having to waste an Office license to our web server/web publishing machine?

Read More

How to open and edit a Word DOC or DOCX file from FileSystem or Byte array in C#

If you’re working with ASP.NET C# and you need to open, edit or otherwise access a Microsoft Word DOC or DOCX file, you can easily do that using the Microsoft.Office.Interop.Word library package. This post explains how to do so: you might find it useful in case you need to perform such task or whenever you want to read some insights regarding the process.

Introducing Interop.Word

To access the namespace from your ASP.NET project you have two main choices:

Needless to say, you should really go for the second option, but we’ll leave that to you.

Read More

Default IP Address and Default Password list for NETGEAR routers

In addition to this other post which contains the default IP Addresses and Password for almost any existing router brand, we’re also publishing a comprehensive list of NETGEAR modem/routers, with default URL and credentials for each one of them.

The list was updated by the end of April 2017 and should cover almost any NETGEAR device on the market: let’s hope yours is listed here as well!

Read More

Default Password and IP Address list for (almost) any existing Router

Whoever lost his Router user manual or doesn’t have it ready when he actually needs to configure the device will probably find this list useful enough, containing the default IP addresses of a lot of existing Routers (grouped by brands).

In case you need the default username and password credentials for authenticate yourself within the admin panel interface, we strongly suggest to visit to recover them.

UPDATE: If you’re looking for a NETGEAR router, you can find your own model in this other post!

Read More

How to delete files older than X days from FTP server or folder with a batch file in Windows

If you’ve read this post of mine you already know about FTPUSE: a great command-line freeware tool that we can use to map a FTP server or folder to a Windows drive letter. Think of it as a Map Network Drive that accepts FTP addresses instead of UNC shares. Such powerful feature can be used to automate a lot of tasks that we usually can’t do within FTP folders, such as – for example – deleting all the files older than X days.

Here’s how we can do that with the help of FTPUSE, assuming we have it installed:

Read More