# List and print all supported file types This article explains how to list and print file types supported by GroupDocs.Viewer for .NET The [Supported file formats]({{< ref "viewer/net/getting-started/supported-document-formats.md" >}}) page lists all file formats supported by GroupDocs.Viewer. To list or print out all the supported file formats within your application, follow these steps: 1. Call the [GetSupportedFileTypes](https://reference.groupdocs.com/net/viewer/groupdocs.viewer/filetype/methods/getsupportedfiletypes) method of the [FileType](https://reference.groupdocs.com/net/viewer/groupdocs.viewer/filetype) class. 2. Enumerate the collection of the [FileType](https://reference.groupdocs.com/net/viewer/groupdocs.viewer/filetype) objects. The following code snippet shows how to list supported file formats in the console: {{< tabs "list-supported-file-types">}} {{< tab "C#" >}} ```csharp using System; using System.Collections.Generic; using GroupDocs.Viewer; // ... // Get list of file types. IEnumerable supportedFileTypes = FileType.GetSupportedFileTypes(); // Display list of file types foreach (FileType fileType in supportedFileTypes) { Console.WriteLine(fileType); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports System Imports System.Collections.Generic Imports GroupDocs.Viewer ' ... Module Program Sub Main(args As String()) ' Get list of file types. Dim supportedFileTypes As IEnumerable(Of FileType) = FileType.GetSupportedFileTypes() ' Display list of file types For Each fileType As FileType In supportedFileTypes Console.WriteLine(fileType) Next End Sub End Module ``` {{< /tab >}} {{< tab "list-supported-file-types.txt" >}} ```text Zipped File (.zip) Rar Compressed File (.rar) Consolidated Unix File Archive (.tar) Bzip2 Compressed File (.bz2) Gnu Zipped File (.gz) Gnu Zipped File (.gzip) Drawing Exchange Format File (.dxf) AutoCAD Drawing Database File (.dwg) Stereolithography File (.stl) Industry Foundation Classes File (.ifc) [TRUNCATED] ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/developer-guide/retrieving-document-information/how-to-list-and-print-all-supported-file-types/ListSupportedFileTypes/list-supported-file-types.txt) {{< /tab >}} {{< /tabs >}}