TH-Soft wrote:
PDerryberry wrote:
there was a code problem I finally found.
Something we can learn?
Was the problem outside the code snippet you shared with us?
Yes. Because of the 'presentation', the page appeared to me to be in portrait, when it was in reality in landscape. So the setting was working fine. I initially assumed because the report ran off the page in PDFSharp that it was in portrait mode instead of landscape. It was hard to tell in Adobe Reader. Once I realized the report actually was in landscape, then I figured out what was the real problem. This particular report in VB uses x,y coordinates to print instead of one continuous line. It appears that the x,y coordinates in printing in VB translate about 25% larger when passed to PDFSharp. I just multiplied them by .75 before PDFSharp saw them, and that put everything back in perspective.