Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Preview Doesn't Work!
Message
From
09/09/1999 16:27:56
Rich Lieblich
Infosys Technologies, Inc.
Fanwood, New Jersey, United States
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00257606
Message ID:
00263139
Views:
66
Well, George... the good news is I got the print preview to work EXACTLY as I wanted!!!! The bad news is that it took the silliest workaround code I've ever had to use..... Maybe if I recapped, you might have some insights as to WHY I needed to do what I did....:

1. put SCREEN=OFF in CONFIG.FPW. Then setup code invokes my form:

do form initscr.scx
read events

2. user selects report, clicks on "Preview". Preview window appears maximized using the following code...:

oPreviewFrm=CreateObject("PreviewForm")
THISFORM.WindowState=2 && make "Report Designer..." window maximized
THISFORM.TitleBar=0 && turn off to avoid ugly double title bar problem
report form "trade activity.frx" environment for record_id='1';
noconsole preview in window (oPreviewFrm.Name)
THISFORM.TitleBar=1 && turn back ON title bar
THISFORM.Height=390 && restore original window size; otherwise app window
THISFORM.Width=620 && will be FULL SCREEN
THISFORM.AutoCenter=.T. && otherwise, app window appears in top left of display

3. user closes report designer/print preview window; my app's window is restored centered on the display as desired.

4. If you recall, the "PreviewForm" class was an empty form in the class library viewform.vcx that you originally pointed me to.

Any thoughts on why I needed to resort to this?? Maybe my code and comments will bring to light something wrong with my original form design?? Thanks again so much for your help!!!..... Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform