-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions - to give more power to this report #18
Comments
Awesome suggestions, thanks (and thanks for your email as well). I'll see what I can do when I have some free time. Meanwhile, please feel free to submit PRs if you want. Cheers :-) |
Ok, I remember why it converts to CS. I didn't want a compile step to be part of the runtime story. This library is used by several rich client applications (WinForms and WPF). Runtime compilation of the reports has two problems in those scenarios:
Situations where this isn't an issue - ie websites - you can just use a Razor view to generate the markup for the report directly, and cache it if needed. Note that you don't need to use Razor to use Crispin, you can just push the xrpt format straight in. I use RazorGenerator for the example application and library, and to generate a report DLL for the commercial applications that use Crispin. |
Re points one and two, it would probably be easier to add a preliminary step to convert a HTML document to something supported, ie wrap it in the required |
Try to allow any XHTML to be converted/parsed.
There are free tools that makes from a HTML XHTML.
What you should (could) do:
@* Generator: Template *@
]>
So if you modify the structure a bit, it could be a HTML to XHTML to PDF/CSV converter.
Don't fully understand why you need to generate templates into CS. Razor can do this on the fly, precompiled code can be cached (f.e. static variable inside class)...
Examples are cool, documentation would be even better.
The text was updated successfully, but these errors were encountered: