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: Samir Ibrahim
  Where is Samir Ibrahim?
 Chekka
 Lebanon
 Samir Ibrahim
 Tags
Subject: RE: Report docked in screen or form
Thread ID: 364973 Message ID: 365221 # Views: 45 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Saturday, December 22, 2012 1:00:59 PM         
   


It seem this code did the trick except one thing

_screen.WindowType= 1
Set Sysmenu off
Set Default To Justpath(Sys(16))
Release Windows "Standard"
Set Status Bar Off
Set Talk Off
Open Database _SAMPLES +"\Northwind\northwind.dbc"
oRepForm = CREATEOBJECT("Form")
WITH oRepForm
 .Caption = "rep_name"
 .WindowState = 2  
 .Show()
ENDWITH
REPORT FORM rep_customers PREVIEW Window (oRepForm.Name) Object Type 1
oRepForm.Release()


Set Sysmenu on
Close Databases all
Set Status Bar on


In this code, no need for read event or clear event.


Now.. How to preview this report and zoom state is "Fit to Page"?

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