I am developing software using Visual Basic 2008 Professional Edition and I am using the Designer included in Visual Basic 2008. I also have code which uses the PrintDocument object. My problem is whenever I go to produce output using the PrintDocument object and then try to view a Crystal Report (using the Viewer), the text is half truncated on every line.
If I run the Crystal Report first, everything looks fine. It is only after I use the PrintDocument object that everything gets screwed up.
Good Report Sample:
Bad Report Sample:
What am I doing wrong? Am I not disposing of objects correctly when I use the PrintDocument? Or is there something I should be doing when initializing Crystal Reports?