Skip to Content
0
Former Member
Dec 28, 2007 at 10:44 PM

PrintToPrinter doesn't flush print buffer to printer

73 Views

Post Author: jtkaylor

CA Forum: .NET

I'm having a problem with PrintToPrinter.

I have a VB.NET app that sends a Crystal Report to the printer after it has displayed it in the viewer. The program runs fine aside from the fact that the first print job doesn't get sent to the printer until the second report is displayed, and the second doesn't get printed until the third report is displayed, ad infinitum.

I am just using the following statement:

myReport.PrintToPrinter(1, False, 1, 1)

I am not setting any printer properties, just am using the defaults.

I am using Visual Studio 2003.

Any ideas of what might be the problem?