ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PrintPreviewParams.Position
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Aug 21 2020 :  08:28:41  Show Profile  Reply
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

klausdoege

Germany
389 Posts

Posted - Aug 21 2020 :  08:42:08  Show Profile  Reply
Hi,
when i use
ImageEnVect.IO.PrintPreviewParams.Position := TIOPrintPreviewPosition(1);
then it wok's fine ?


Klaus
www.klausdoege.de
Go to Top of Page

xequte

38615 Posts

Posted - Aug 21 2020 :  15:51:29  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: