I asked this question about a month ago, but it must have been overlooked.
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 a several unlabeled buttons top left.
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;
rt.availabledialogs :=[wpStartPrint,wpdiaPrint,wpdiaPrinterSetup,wpdiaSaveAs,wpdiaSaveAsPDF,wpdiaFind,wpdiaPageSetup] ;
windowstate := wsmaximized;
dlg.Execute;
dlg.Free;
end;
Alles anzeigen