Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report preview ...
Message
From
25/05/2002 09:00:54
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
25/05/2002 03:32:28
Daniel C.
InfoData Bacau
Bacau, Romania
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00661336
Message ID:
00661346
Views:
22
Hi Daniel,
You can use MOVE WINDOW and the like as Claudio suggests, however, I much prefer to create a form and use it as a template for the preview form. Here's an excerpt from my output class.
oPreview = NEWOBJECT('frmPreview'),'MSForms.vcx', '',This)
oPreview's caption is set in the init.
oPreview.IsPortrait = This.IsPortrait
REPORT FORM (m.FRXName) PREVIEW WINDOW (oPreview.Name)
oPreview.Release()

The frmPreview class is just a form--you can size it as you wish. In the Init I do this:
LPARAMETER oParent
SET SKIP OF MENU _MSYSMENU .T.
etc...

In the Destroy:
SET SKIP OF MENU _MSYSMENU .F.

You can also HIDE WINDOW "Print Preview" if you like, but I think you'll have to do that from the report itself (since you have to run that code after the preview has actually begun).
Note that frmPreview isn't made visible.



>Hi,
>I want to preview some reports into a specific area of the screen. Say like 1/2 of screen and get rid of the report toolbar ( print, close, etc ). Please advice, thanks.
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform