Aspose.Cells.Examples.CSharp.KnowledgeBase.FAQs.FileFormatInformation.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            // Load File
            FileFormatInfo finfo = FileFormatUtil.DetectFileFormat(dataDir + "sample.xls");
            Console.WriteLine(finfo.FileFormatType == FileFormatType.Excel95);
            // ExEnd:1
        }
    }
FileFormatInformation