Serenity: Problem with ExcelExportHelper

Created on 29 Mar 2016  路  6Comments  路  Source: serenity-is/Serenity

Hi,

Does anyone had issues with Excel exporting?
I might be missing something but I am getting the following "Resource not found" error when using exporting to Excel.
image

My code is the following:

 protected override List<ToolButton> GetButtons()
            {
                var buttons = base.GetButtons();
                buttons.Add(Common.ExcelExportHelper.CreateToolButton(this,
                GreidaBeintService.BaseUrl + "/ListExcel", this.OnViewSubmit));
                buttons.RemoveAt(0);
                return buttons;
            }

I would really appreciate if someone knows a quick fix for this :)

All 6 comments

Too difficult, or learning to learn it

Did you add the action Endpoint FileContentResult ListExcel to greidabeing or waht ever module ?

@107295472 Yin stop commenting on all topics. If it is so difficult, try your luck with something else. Start with English maybe.

@biggikalli If you don't implement ListExcel action in your GreidaBeintEndpoint, it won't find resource.

Start English

Thank you for your quick answers. Worked like a charm as always.
According to your suggestions, I referred to how the Northwind.Order Endpoint is set up.

And Yin, thank you for the motivation - if you could do it, then the rest of us can :)
Everything is possible with a little patience!

Was this page helpful?
0 / 5 - 0 ratings