Hello all,
From within VS 2012, I've just created a new C# winform application. From the Nuget package, I've just finished installing the Free Spire.PDF for NET.
I'm grasping at straws to understand a few things so I figured I'd post them here in hopes of finding an answer.
My task is the following:
I'm creating a C# winform application that will need to create a single PDF document holding one or more pages.
Once created, that document will be automagically sent to a particular printer (not the default one but another printer...) without prompting the PrintDialog().
In short, my application sells tickets. Once a ticket (or more) is sold, I need to create a PDF document in which the first page will hold the receipt and all subsequent page(s) will be the ticket(s).
I can't seem to find any examples of How to create a single PDF document having multiple pages.
Consider the following:
I have an Order object which has a string Receipt property.
I also have a collection of string which represents the ticket(s).
Both the receipt and ticket(s) are strings which will hold HTML.
I've already found the example that shows how to LoadFromHTML() but I'm still not getting how do I loop my tickets collection and add pages to my initial: PdfDocument pdf = new PdfDocument();
If anyone could help me shed some light on this, that would be great!
Thanks