To maximize use:
KEYBOARD "{ctrl+f10}"
REPORT FORM report...
I have been "hacking" at how tho dock the toolbar for a while now.
I will be watching this thread.
Later,
Mike
On Tue, 15 Jul 2003 17:22:25 -0400, Kent Lester <kle...@nospam.com>
wrote:
Later,
Mike
"You have two options. The first is to stuff the keyboard as follows:
SET RESOURCE OFF
KEYBOARD '{CTRL+F10}'
REPORT FORM MyReport PREVIEW
SET RESOURCE ON
You have to turn the resource file off to use the above method, otherwise, the CTRL+F10 is a toggle and the user will get it maximized the first time, then small, then max, etc.
The second choice is to put the following line in the Init method of the Data Environment of the report:
ZOOM WINDOW "Report Designer" MAX
Either of these will work!!
Cathy"
"Kent Lester" <kle...@nospam.com> wrote in message news:3F147091...@nospam.com...
I made sure the resource was on and pointed to a valid Foxuser file. I
think ran this code, and docked the Print Preview toolbar where I wanted
it. I closed the report preview window. When I ran the code again, the
preview window appeared maximized, and the toolbar was docked.
ZOOM WINDOW report max
REPORT FORM zbob PREVIEW nowait
I hope this helps.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell
*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retires June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003
Look for the entry with an ID of REPORTTOOLS and for your other toolbars,
there are entries with an ID of TTOOLBAR for the Report Controls, Report
Designer, Color Palette and Layout toolbars.
--
Fred
Microsoft Visual FoxPro MVP
Please respond only to the newsgroups so that all may benefit.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/2003
If you don't want to use a resource file to dock the toolbar this is the
code we use in our print preview form:
lnCol = mcol("Report Designer")
lnRow = mrow("Report Designer")
mouse dblclick at -0.1,0.1 WINDOW "Print Preview"
mouse at lnRow, lnCol window "Report Designer"
Stuart
I have RESOURCE=OFF in config.fpw (VFP8) and I am showing my report in
a top level maximized modal form.
I should be able to use:
DOCK WINDOW ("Print Preview") POSITION 0
to dock the toolbar but I haven't been able to locate the proper
location (event) for the command to make it work.
Where should the code go?
TIA,
Mike
On Wed, 16 Jul 2003 02:52:48 +0100, Stuart Dunkeld <us...@example.net>
wrote:
Later,
Mike
I'll add Cathy's book to my 'get' list.
I learn something here every day.
Later, and thanks,
Mike
Later,
Mike