T O P I C R E V I E W |
klausdoege |
Posted - Aug 21 2020 : 08:28:41 I want to set the position before calling the dialog. Everything works, (ppTopLeft, ppTopRight, ppLeft, ppCenter, ppRight, ppBottomLeft, ppBottom, ppBottomRight) just not ppTop. What can I do. is OK ImageEnVect.IO.PrintPreviewParams.Position := TIOPrintPreviewPosition(ppLeft); Don't work ImageEnVect.IO.PrintPreviewParams.Position := TIOPrintPreviewPosition(ppTop); Why ??? I can change it in the DoPrintPreviewDialog(iedtMaxi) OK, but i want to put it before.
Klaus www.klausdoege.de |
2 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Aug 21 2020 : 15:51:29 Hi Klaus
Change it to:
ImageEnVect.IO.PrintPreviewParams.Position := ppTop;
And you will probably get an error about mismatched types.
Presumably ppTop is defined in your application elsewhere (e.g. by another component). If so, you can use:
ImageEnVect.IO.PrintPreviewParams.Position := imageenio.ppTop;
Nigel Xequte Software www.imageen.com
|
klausdoege |
Posted - Aug 21 2020 : 08:42:08 Hi, when i use ImageEnVect.IO.PrintPreviewParams.Position := TIOPrintPreviewPosition(1); then it wok's fine ?
Klaus www.klausdoege.de |
|
|