Consultor Eletrônico



Kbase P141163: Infragistics control ultraSchedulePrintDocument is not displaying the preview properly
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/17/2009
Status: Unverified

SYMPTOM(s):

Infragistics control ultraSchedulePrintDocument is not displaying the preview properly

Two dots are displayed instead of the preview


FACT(s) (Environment):

Changing the zoom settings doesn't solve the problem

The problem can also be reproduced with Visual Studio
The problem is only observed in one machine

Windows
OpenEdge 10.2A

CAUSE:

System.Drawing.Printing.PageSettings is not defined

FIX:

One System.Drawing.Printing.PageSettings needs to be defined per instance, as it is not created by default. The following variable should be defined in the class:

DEFINE PRIVATE VARIABLE pageSet AS System.Drawing.Printing.PageSettings NO-UNDO.

Add the following to the InitializeComponent method:

THIS-OBJECT:pageSet = NEW System.Drawing.Printing.PageSettings().