OfficeHelper.GetProductName Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetProductName(string)

Gets the name of the Office product that can open the filetype specified by path (e.i. Word, Excel, PowerPoint).

public static string GetProductName(string path)

Parameters

path
string

The path of the file.

Returns

string

The Office product name or null if no product was found.