Leadtools.Forms.DocumentWriters Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
GetFormatFileExtension Method
See Also 
Leadtools.Forms.DocumentWriters Namespace > DocumentWriter Class : GetFormatFileExtension Method



format
The document format requested.
format
The document format requested.
Gets the default file extension for the specified document format.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetFormatFileExtension( _
   ByVal format As DocumentFormat _
) As String
Visual Basic (Usage)Copy Code
Dim format As DocumentFormat
Dim value As String
 
value = DocumentWriter.GetFormatFileExtension(format)
C# 
public static string GetFormatFileExtension( 
   DocumentFormat format
)
C++/CLI 
public:
static String^ GetFormatFileExtension( 
   DocumentFormat format
) 

Parameters

format
The document format requested.

Return Value

A String containing the file extension for the specified format (without the ".").

Example

For an example, refer to DocumentWriter.

Remarks

This method will return the default file extension commonly used with file of types format. For example, Adobe PDF files commonly have "pdf" extensions, Microsoft Word documents commonly have "doc" extensions and so forth.

For more information on the various document formats supported by the LEADTOOLS Document Writers, refer to DocumentFormat.

To get a friendly name for a particular document format use GetFormatFriendlyName.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms.DocumentWriters requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features