Author: Cotton Jerry P
Posted: 2001-04-20 at 14:16:36
Create yourself a class based on a form
add a method to the form
.reportpreview
put the following code in the method
oPrintForm.WindowState = 2
oPrintForm.Visible = .t.
report form (thisform.reportname) preview window (oPrintForm.Name)
oPrintForm.visible = .f.
then run your reports like so
oPrintForm.reportname="userdata"
oPrintForm.reportpreview
Just instantiate oPrintForm at the start of you app.
This eliminates a couple other problems with the print preview toolbar also.
Mr. Jerry Cotton, MCP
<mailto:cottonjp@2mawcp.usmc.mil>
(252)466-4854 fax (252)466-4806 DSN-582
> -----Original Message-----
> From: Brian.Searle@indsys.ge.com [mailto:Brian.Searle@indsys.ge.com]
> Sent: Friday, April 20, 2001 2:01 PM
> To: Multiple recipients of ProFox
> Subject: VFP6 Report Preview Maximize
>
>
> Can anyone tell me if it is possible to maximize the print preview
> automatically?
>
> I was hoping for something like:
>
> Report Form myform Preview Maximize
>
> but I can't find much information on the preview option anywhere.
>
> Brian Searle
> brian.searle@indsys.ge.com
>
>
>