cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Gets Cut Off Halfway

Former Member
0 Kudos

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:

[http://www.trendytechnology.com/good_report.jpg]

Bad Report Sample:

[http://www.trendytechnology.com/bad_report.jpg]

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

Former Member
0 Kudos

This might sound stupid but try this.

Click on Database menu ---> Set Datasource ---> Update.

Then Click on Database menu ---> verify Database.

I am saying this because, one of the forum members had a similar issue and it was resolved by this strange method.

Try it and let us know if it works

Regards

Jehanzeb

Former Member
0 Kudos

The problem is that is does work for as long as I do NOT use the code that calls the PrintDocument. If I just use the Crystal Reports functionality in my application (using the Viewer), everything looks great.

Thanks!

Edited by: Robert Mattson on Aug 1, 2008 5:22 PM