I'm using a twpPreviewdlg, and want to allow the user to setup a printer and print. I must be misunderstanding how to do this. The following doesn't do it. I do get an unlabeled button top left that closes the dialog.
I'm using the twppreviewdlg so I don't have to create a form.
Code
dlg := TWPPreviewDlg.Create(nil);
with dlg do begin
DisabledDialogs := DisabledDialogs-[wpdiaPrint,wpdiaPrinterSetup,wpdiaSaveAsPDF];
ViewOptions := ViewOptions + [wpShowCR,wpShowFF,wpShowNL,wpShowSPC,wpSHowHardSPC];
SinglePageMode := True;
EditBox := RT;
windowstate := wsmaximized;
dlg.Execute;
dlg.Free;
end;
Alles anzeigen