We need to provide a "export to excel" option, the problem is that all data comes from a WCF service (also developed by us). In the binding configuration we cannot increase the default value (that's the rule).
So, the main concern is how to get all data through the WS?, or if there is a better approach to export to excel, using WCF.
This is the code we use:
[WebMethod]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public static Result getDataFromDB() {
using (AppServiceClient ws = new AppServiceClient()) {
return ws.getAllDataFromDB();
}
}
Result is where all data will be returned, which has a list attribute with all data.
When executing the method above, an error raises indicating the max cuota has reached.