Ticket T1026540
Visible to All Users

.NET Core API sample generating pdf documents using Blazor Server Reporting component

created 4 years ago

Hi,
I'm looking for a sample on how to implement an ASP.NET core API that can generate documents (invoices in my case)
using Blazor Server Reporting component, and can deliver a pdf or docx.
I see it as an alternative for JSReport

I would basically call (POST to) the REST API with the data to be merged in the invoice, and the API has to generate the pdf
and save it somewhere given a predefined name.

Templates for the invoices could be created/designed in a separate application if needed.

Thanks for any pointers.

Answers approved by DevExpress Support

created 4 years ago

Hi Steph,

You can use our Reporting components in order to accomplish this task. Please refer to the Create an Invoice help topic to learn how you can create and design an Invoice report. Then to export this report to the desired format use the solution demonstrated in the Print and Export Without a Preview help topic. You can find a sample project that demonstrates this on GitHub: How to Print and Export a Report in the ASP.NET Core Application without the Document Viewer.

Also, you can use the Blazor Reporting UI widgets to preview and design a report in your Blazor application.

Let me know if you have any further questions regarding this.

    Comments (1)

      thank you for the pointers, very usefull.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.