使用c#

时间:2018-01-02 17:00:34

标签: c# .net excel interop

我想用两个或多个条件过滤excel中的列。语法最多允许两个条件。我使用的数组概念并不起作用。帮助我。谢谢。

语法为here

我的代码在

下面
Range.AutoFilter(Feild:1,Criteria1:"USD", Operator: XlAutoFilterOperator.xlOr,Criteria2:"HKD");

1 个答案:

答案 0 :(得分:0)

mmm您的代码static async Task<UserCredential> GetCredential() { var clientSecretPath = HttpRuntime.AppDomainAppPath + "client_secret.json"; var credPath = HttpRuntime.AppDomainAppPath + "credentials/GoogleAnalyticsApiConsole/"; UserCredential credential; using (var stream = new FileStream(clientSecretPath, FileMode.Open, FileAccess.Read)) { var secrets = GoogleClientSecrets.Load(stream).Secrets; credential = await GoogleWebAuthorizationBroker.AuthorizeAsync( secrets, new[] {AnalyticsReportingService.Scope.Analytics}, "analytics@mysite.com", CancellationToken.None, new FileDataStore(credPath, true)); return credential; } }

中的错误

试试这个:

有两个标准:

failed to launch browser with https //accounts.google.com/o/oauth2/v2/auth

多个标准:

Feild