Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Opening Report Preview maximized with attached toolbar

236 views
Skip to first unread message

Kent Lester

unread,
Jul 15, 2003, 5:22:25 PM7/15/03
to
Does anyone know how to "force" the Report Preview to open in a
maximized window with the toolbar docked? No matter what I try, this
doesn't happen. The docking status of the toolbar does not seem to be
stored in foxuser.

Mike Pratt

unread,
Jul 15, 2003, 5:35:07 PM7/15/03
to
Hi Kent,

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

Rick Bean

unread,
Jul 15, 2003, 5:40:43 PM7/15/03
to
Kent,
From my friend Cathy Pountney, author of "The Visual FoxPro© Report Writer: Pushing it to the Limit and Beyond" - available at http://www.hentzenwerke.com/.

"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...

Lee Mitchell

unread,
Jul 15, 2003, 5:42:32 PM7/15/03
to
Hi Kent:

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

Fred Taylor

unread,
Jul 15, 2003, 9:11:50 PM7/15/03
to
Yes, it is stored in the FOXUSER table.

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


Stuart Dunkeld

unread,
Jul 15, 2003, 9:52:48 PM7/15/03
to
Kent Lester wrote:

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

Kent Lester

unread,
Jul 16, 2003, 11:24:49 AM7/16/03
to
Was this done from Fox or from an exe? I've found that Fox remembers
the toolbar location but the standalone exe does not.

Kent Lester

unread,
Jul 16, 2003, 11:27:47 AM7/16/03
to
Many thanks to all for this advice! I'll be trying all these
suggestions out.

Mike Pratt

unread,
Jul 16, 2003, 12:15:28 PM7/16/03
to
Hi 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

Mike Pratt

unread,
Jul 16, 2003, 12:15:29 PM7/16/03
to
Hi Rick,

I'll add Cathy's book to my 'get' list.

I learn something here every day.

Later, and thanks,

Mike

Later,

Mike

0 new messages