How to export the grid to excel in blazor webassembly client side

i am working on blazor webassembly client side i am trying to export the grid to excel
i am trying this code
public void Export(string type)
{
service.Export("IdleReport", type, new Query() { OrderBy = grid.Query.OrderBy, Filter = grid.Query.Filter });
} in razor page
and

public void Export(string table, string type, Query query = null)
{
navigationManager.NavigateTo(query != null ? query.ToUrl($"{table}/{type}") : $"{table}/{type}", true);
} it is in sevice

and i am using the EportExcelController but it is not working

I already answered your other post. Exporting is possible only server-side and you can check how CRUD pages will do that in WebAssembly application.

If you continue to post duplicate questions we will have no other option but discontinue your account.