Learn how to create invoice PDF from HTML in VB.NET with this source code sample. ByteScout PDF SDK is the library for pdf documents generation, modification and updates. Can also generate and fill PDF forms. Provides support for text (fonts, style, size, font family), layers, pdf form fields, vector and raster drawings. It can be used to create invoice PDF from HTML using VB.NET.
You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout PDF SDK for create invoice PDF from HTML below and use it in your application. In your VB.NET project or application you may simply copy & paste the code and then run your app! Code testing will allow the function to be tested and work properly with your data.
Trial version of ByteScout PDF SDK is available for free. Source code samples are included to help you with your VB.NET app.
Imports System.Drawing.Printing Imports Bytescout.PDF.Converters Module Module1 ''' <summary> ''' This example demonstrates how to create invoice from HTML. ''' </summary> <STAThread> Sub Main() Using converter As New HtmlToPdfConverter() converter.PageSize = PaperKind.Letter converter.Orientation = PaperOrientation.Portrait ' Convert input HTML to output pdf converter.ConvertHtmlToPdf("invoice.html", "result.pdf") End Using ' Open result file in default PDF viewer Process.Start("result.pdf") End Sub End Module