Free Support Forum - aspose.com

Problem calling Aspose.Excel on windows form

Yesterday, i just installed the latest version of aspose.Excel and i wanted to try it on windows form, so i created small cs file like you can see below:

using System;
using Aspose.Excel;

public class udon
{

public static void Main()
{
Excel m = new Excel();
}

}

when i compile this : csc small.cs, it produced error message:

Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

can.cs(2,7): error CS0246: The type or namespace name 'Aspose' could not be found (are you missing a using directive or an assembly reference?)

What 's going on here, i completely had installed the latest version of aspose.excel on my computer yesterday.


But if i call Aspose.Excel from asp file , it works fine.


Cheers,

Mr.Okinawa

Dear Mr. Okinawa,

To compile you program with command line, please add reference to Aspose.Excel.dll.

You can try:

csc /reference:C:\Program Files\Aspose\Aspose.Excel\Bin\Aspose.Excel.dll small.cs