createPrintForm

createPrintForm(): InstanceType updating;

The createPrintForm method of the GUIClass class creates a print form at run time, as shown in the following example.

vars
    pform : PrintForm;
begin
    pform := PrintForm.createPrintForm;
    ...                                 // do some processing here
end;

When you use this method to create a form:

The form and controls therefore have no window handle (that is, no value for the hwnd property inherited from the Window class) and cannot be accessed using any Windows external Application Programming Interface (API). Requests to show the form are also rejected.

Use the create print-form syntax to create GUI windows.

Using the createPrintForm method compared with using the create instruction is irrelevant to the print output that is produced. The only impact is the reduction in the amount of GUI windows resources that are used.

Use the createPrintForm method to create a form that will not create an actual GUI form and will not apply a skin (which may change the size of the client area).