How to do it...

  1. Add an aspx web page that contains invoice details. I have simply taken from the example on DocRaptor's site and modified it slightly. Call this page InvoicePrint.aspx.
I have included the CSS in a style sheet called invoice.css. Be sure to get this from the source code accompanying this book.

There are a few ways you could approach this code. This is not necessarily the only way to create the web pages. If you are using .NET Core MVC, your approach would probably be different. However if you do this, remember that this code is just to illustrate the concept here.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InvoicePrint.aspx.cs" Inherits="Serverless.InvoicePrint" %>    <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> ...

Get C# 7 and .NET Core Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.