dfaruque / Serenity.Extra

Name of the repo says that this is an EXTRA of http://serenity.is platform
60 stars 34 forks source link

how to use report design path at client side #66

Closed reach2rv closed 2 years ago

reach2rv commented 3 years ago

Hi @dfaruque

I want to give flexibility to user to define report format for each voucher and then at runtime fetch the design view and load data in that to generate report. can you please brief me how I can use your _Ext Reporting to achieve the same.

dfaruque commented 3 years ago

You can create a report design file (.cshtml) with the simple two line

@model YourModel

@Html.Raw(Model.ReportContent)

Model.ReportContent should contain the HTML markup which you can prepare with a custom template.