Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Samir Ibrahim
  Where is Samir Ibrahim?
 Chekka
 Lebanon
 Samir Ibrahim
 To: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 Tags
Subject: RE: Report docked in screen or form
Thread ID: 364973 Message ID: 365248 # Views: 41 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Saturday, December 22, 2012 7:30:32 PM         
   


> >
> > Hi Keon, Nice to see you again.
> >
> > yes, the rep_customer is my report, you can replace it with any report you have if you want to test the code.
> >
> > Please see my last posted msg.
> >
> > Thanks.
> >
> >
> > Samir Ibrahim
>
> Dear Samir,
>
> Of course I would be able to replace it with any other report, but than I should replace it with a report which works with 'your' table which you hardcoded in your sample.
> why dont you please supply an example which I or anybody could just instantiate without any further codings?
> Please also reply which Reportbehavior setting you are using and is my understanding - you want should like to have a reportpreview docked at init - correct?
>
> Regards,
>
> Koen

Hi Koen.

Yes, the report should be docked at init, and continued to be docked when I resize the screen

The report engine does not mattar, I am currently using the 80

here is sample code, copy/paste and run.

When I run the report, and chose "Fit To Page" or "Whole Page" the report works exactly as I wanted. If I close the report and run it again, It will preview in the way I close it previously (FOXUSER effect)

Now, how to change that behaviour and force the report to be previewed "Whole Page" all the time?


_screen.WindowType= 1
_screen.TitleBar = 1
Set Reportbehavior 80 && or 90 it doesnot mattar
*Set Reportbehavior 90
Set Sysmenu off
Set Default To Justpath(Sys(16))
Release Windows "Standard"
Set Status Bar Off
Set Talk Off

oRepForm = CREATEOBJECT("Form")
WITH oRepForm
 .Caption = "rep_name"
 .WindowState = 2  
 .Show()
ENDWITH
*REPORT FORM rep_customers PREVIEW Window (oRepForm.Name) Object Type 1
Report Form _samples + "Solution\Reports\colors.frx" PREVIEW Window (oRepForm.Name) Object Type 1
oRepForm.Release()

Set Sysmenu on
Close Databases all
Set Status Bar on
_screen.TitleBar = 1

Samir Ibrahim

ENTIRE THREAD

Report docked in screen or form Posted by Samir Ibrahim @ 12/20/2012 12:40:32 PM
RE: Report docked in screen or form Posted by Jun Tangunan @ 12/20/2012 11:28:45 PM
RE: Report docked in screen or form Posted by anand kulkarni @ 12/21/2012 7:40:49 AM
RE: Report docked in screen or form Posted by Samir Ibrahim @ 12/21/2012 5:15:35 PM
RE: Report docked in screen or form Posted by Koen Piller @ 12/21/2012 9:59:52 PM
RE: Report docked in screen or form Posted by Samir Ibrahim @ 12/22/2012 12:57:22 PM
RE: Report docked in screen or form Posted by Koen Piller @ 12/22/2012 6:33:16 PM
RE: Report docked in screen or form Posted by Samir Ibrahim @ 12/22/2012 7:30:32 PM
RE: Report docked in screen or form Posted by Koen Piller @ 12/22/2012 11:24:42 PM
RE: Report docked in screen or form Posted by Samir Ibrahim @ 12/22/2012 1:00:59 PM
RE: Report docked in screen or form Posted by Anil Sharma @ 12/23/2012 5:54:25 PM