Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Karben Selim Mejia
  Where is Karben Selim Mejia?
 San Pedro Sula
 Honduras
 Karben Selim Mejia
 To: Suvi Joseph
  Where is Suvi Joseph?
 Bangalore
 India
 Suvi Joseph
 Tags
Subject: RE: How to maximise report window?
Thread ID: 16234 Message ID: 16260 # Views: 2 # Ratings: 0
Version: Unknown Category: Reports and Printers
Date: Monday, October 14, 2002 5:36:20 PM         
   


Dear Suvi, Don't know why but I have just the same problem, the report doesn't maximize eventhough I send the CTRL+F10 befor running the report. How ever maybe this little trick could help you with that issue. I don't use it but It works.

ind the method where you call the report form add some code like this one

LOCAL oPreviewReportWindow as Form 
oPreviewReportWindow = CREATEOBJECT("form")
oPreviewReportWindow.WindowState = 2  && Maximize
oPreviewReportWindow.Name = "PrintPreviewWindow"
*:Note that you have to Show the Window before running the report becuase if you don't the Maximize State won't work
oPreviewReportWindow.Show
 
REPORT FORM YourReport.frx TO PRINTER PREVIEW WINDOW PrintPreviewWindow

oPreviewReportWindow.Release 



Regards

Karben Selim Mejia

I always have the last word in my home, "Yes sweet heart, what ever you say"

Honduras, Central America
The very center of the world

ENTIRE THREAD

How to maximise report window? Posted by Suvi Joseph @ 10/13/2002 11:29:19 AM
RE: How to maximise report window? Posted by Jatin Shahani @ 10/13/2002 11:49:59 AM
RE: How to maximise report window? Posted by Jatin Shahani @ 10/13/2002 12:00:10 PM
RE: How to maximise report window? Posted by Suvi Joseph @ 10/13/2002 12:37:26 PM
RE: How to maximise report window? Posted by Simon Arnold @ 10/13/2002 9:08:48 PM
RE: How to maximise report window? Posted by Suvi Joseph @ 10/14/2002 7:49:21 AM
RE: How to maximise report window? Posted by Karben Selim Mejia @ 10/14/2002 5:36:20 PM
RE: Mejaks' tip: Neat! Posted by Rene Relucio @ 10/15/2002 2:45:47 PM
Thanks!! Posted by Suvi Joseph @ 10/15/2002 2:58:47 PM
RE: Can we show Page x of y in preview caption? Posted by Suvi Joseph @ 1/14/2003 9:34:36 AM
RE: Can we show Page x of y in preview caption? Posted by Eric den Doop @ 1/14/2003 10:25:15 AM