Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

PrintInBackground...

edited April 2003 in General
Do you have any examples where you use the PrintInBackground method.
I'm trying to use this method so that no windows are displayed. I'm
using the following code:

ArcReport.ShowCancelDialog:= False;
ArcReport.ShowPrintDialog:= False;
ArcReport.DeviceType:= dtArchive;
ArcReport.AllowPrintToArchive:= True;
ArcReport.ShowAutoSearchDialog:= False;
ArcReport.ArchiveFileName := 'd:\ArchTest.raf';

ArcReport.PrintInBackground;

I keep getting the same error:

EInvlidOperation: "Canvas does not allow drawing."

This error is followed by:

TppBackgroundPringThread.PrintInBackground: Ten second timeout
exceeded for background printing thread to create report container.

Am I forgetting to set another property? Do you have any examples
where this method is used?

Thanks,
Mike

Comments

This discussion has been closed.