Recent

Author Topic: Preview on secondary screen  (Read 2002 times)

itgiu

  • Newbie
  • Posts: 4
Preview on secondary screen
« on: June 07, 2020, 11:01:19 am »
Hi,
I have a secondary monitor that extends the primary to the right. the application runs only on the primary monitor, but the preview of the report is always opened on the other monitor which is not close to the workstation.
Even setting defaultmonitor on the form I can not solve the problem. Can someone help me?
Thanks

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Preview on secondary screen
« Reply #1 on: June 07, 2020, 11:38:18 am »
Check the value of the preview report form's Left property.
Also the preview window's Position property may be set such that on a multi-monitor setup it is not shown where expected.
For instance poScreenCenter, poDesktopCenter and poMainFormCenter usually amount to the same outcome on a single-monitor setup. Not so if you have more than one monitor.
« Last Edit: June 07, 2020, 11:45:46 am by howardpc »

itgiu

  • Newbie
  • Posts: 4
Re: Preview on secondary screen
« Reply #2 on: June 07, 2020, 02:09:13 pm »
Solved Thanks

JonDee

  • Newbie
  • Posts: 1
Re: Preview on secondary screen
« Reply #3 on: July 14, 2020, 12:09:52 am »
I could not find the properties to set the position of the view or editor...
My solution (as a work around):

 Add the following code to
  * lr_View.pas
  * procedure TfrPreviewForm.FormCreate(Sender: TObject);
and 
  * lr_design.pas
  * procedure TfrDesignerForm.RestoreState;
 
   left := application.mainform.left;
   top := application.mainform.top;
   width := application.mainform.width;
   height := application.mainform.height;
   WindowState := wsNormal;

Did I miss a better solution?

JonDee



 

TinyPortal © 2005-2018