Super Updated Version, Part 2

In my early attempts, which I unfortunately did not document, I just had the code insert the word “Exhibit” plus a counter, all at a hard-coded font and size. It took me a while to figure out how to make iText7 do that. Of course, it would be far better to give users the choice…

Continue reading Super Updated Version, Part 2

Super Updated Version, Part 1

I’m realizing how difficult it is to go step-by-step, documenting everything! I’ve made some big changes and added a bunch of functions. I’ll explain everything in detail, and of course, you can download the code at the end. Here are the application settings. They are bound to the controls of some of the forms. The…

Continue reading Super Updated Version, Part 1

Oops, Design Flaw!

I ran into a couple of problems. Remember the code we used to loop through the PDFs in a folder? Here it is. The first problem is that EnumerateFiles does not guarantee the order of files returned. It seems that the order was by file name, but I found exceptions, and I can’t tell if…

Continue reading Oops, Design Flaw!

The PDFLegal Main Form

We haven’t done anything with the Form1 that was automatically created, so let’s rename it to MainForm. The first thing I do with forms is to change the font from the 8.25 pt Microsoft San Serif or something to Segoe UI 9 pts. That way, everything else put into the form inherits that font. Let’s…

Continue reading The PDFLegal Main Form

Adding a Single-record Form

So far, we have a form that displays clients in a read-only grid. Now we need a CRUD form, that is, a form that will let us create, update, and delete clients. We’ll create one from the GenericForm template and call it ClientForm. Notice that the form’s Text property, which is reflected as the form’s…

Continue reading Adding a Single-record Form

Let’s Run!

At this point, we have dropped a data source onto the form, and Visual Studio has done its code generation thing. We should be able to run the application and, even though we haven’t entered any data, we should at least get an empty form. So press F5 or click on the Start button. Hey,…

Continue reading Let’s Run!