Eurico Chagas Filho wrote on 2010-12-15: 
> Hi
> 
> Is there a way to control the position of the report preview ? Like
> it's top and left positions ?
> I am using the report listener.
> 
> TIA, E.
> 

Eurico,

I don't use the report listener. 
How I control it is using a DEFINE WINDOW command followed by the PREVIEW
WINDOW window name clause on the REPORT command.


      nWidth = _SCREEN.WIDTH/FONTMETRIC(6,_SCREEN.FONTNAME,_SCREEN.FONTSIZE)

      nHeight =
_SCREEN.HEIGHT/FONTMETRIC(1,_SCREEN.FONTNAME,_SCREEN.FONTSIZE)-2 
      DEFINE WINDOW repwindow AT 0,0 SIZE nHeight,nWidth SYSTEM ZOOM ;
         CLOSE FLOAT TITLE "Report Preview" ;
         FONT _SCREEN.FONTNAME,_SCREEN.FONTSIZE NAME repwindow
      ZOOM window repwindow max
      SET RESOURCE TO REPORTSTOOLBAR.DBF
      SET RESOURCE ON
        REPORT FORM ... NOEJECT NOCONSOLE TO PRINTER PROMPT PREVIEW WINDOW
repwindow
        SET RESROUCE OFF
      RELEASE WINDOW repwindow

I also control the tool bar by changing the RESOURCE to a compiled in DBF.

Tracy Pearson
PowerChurch Software




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/001e01cb9cae$08e0e4b0$1aa2ae...@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to