I don't have a problem with printing except that whenever my document grows beyond one page, the bottom margin on page 1 is printed in and each subsequent page has printing in the top margin and the bottom margin
If I could simply print the entire document with one call to DrawString while contraining to the printing bounds I wouldn't be having this problem, but the problem is more complex.
I have a minimum of 108 different fixed size fields that must be printed,(i.e they are NN characters long), plus 7 dynamic fields that the length is unknown.
I'd post the code, but it is pretty huge considering I have to set the XY corrdinates, font, justification, and pen for each item, plus each item has a box drawn around it. In the end, the result looks similar to a spreadsheet.
For a single page, everything works great, it is just when the document fields grow so the document will no longer fit on one page. Surely there is a better way than checking the Y coordinate of each item and cutting off the printing if it exceeds the allotted space, especially considering that many of the fields are in different controls and I am looping through each control to get the items to print. If the page height is exceeded within the loop, this would seem to cause problems because the fields wouldn't be printed completley before the loop would start again.
I'll entertain any suggestions
I'll attach a PDF so you can understand what I am talking about.