BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

GetFileExtensionOf Method

Gets file extension of a given file.

string GetFileExtensionOf(string FileName)


Function GetFileExtensionOf(FileName As String) As String


def GetFileExtensionOf(self, FileName)


String GetFileExtensionOf(String FileName) throws PrinterException


function GetFileExtensionOf($FileName) 


BclPrnResult GetFileExtensionOf(BclPrinter* pPrinter,
                                const wchar_t* FileName,
                                wchar_t** poutVal);
Function GetFileExtensionOf(FileName As String) As String


Parameters

Remarks

N/A.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")

sExt = oPrinter.GetFileExtensionOf("C:\test\input.doc")

MsgBox "File extension: " + sExt