Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Preview Doesn't Work!
Message
From
03/09/1999 15:34:14
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:
00261332
Views:
54
Hi George,

Looking much much better, but one last problem- here's the sequence of events- whaddya think...:

1. click on "print preview" button on my app's main form.
2. app window DISAPPEARS.... it's minimized on the task bar.
3. right click on it; select Maximize.
4. REPORT PREVIEW APPEARS FULL-SCREEN!! VOILA!!!
5. close this window- my app's main form re-appears.

soooo everything OK except for 3..... can't figure out why I need to maximize the task bar button to get the print preview to come up.... I use this code:

oPreviewFrm=CreateObject("PreviewForm")
release classlib ViewForm
THISFORM.Visible=.F.
report form "trade activity.frx" environment for record_id='1';
noconsole preview in window (oPreviewFrm.Name)
THISFORM.Visible=.T.
_SCREEN.LEFT = -5000

...and the generated class definition code for PreviewForm from the class browser is:

**************************************************
*-- Class: previewform (c:\primdata\viewform.vcx)
*-- ParentClass: form
*-- BaseClass: form
*-- Time Stamp: 09/03/99 02:53:03 PM
*
DEFINE CLASS previewform AS form
ScaleMode = 3
Height = 581
Width = 802
Desktop = .F.
ShowWindow = 2
DoCreate = .T.
AutoCenter = .T.
Caption = ""
TitleBar = 0
WindowType = 0
WindowState = 2
AlwaysOnTop = .T.
Name = "previewform"
ENDDEFINE
*
*-- EndDefine: previewform
**************************************************

Thanks for any other suggestions; best regards..... Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform