Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview in a desktop window
Message
From
24/10/2000 11:33:19
 
 
To
24/10/2000 09:42:50
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00431990
Message ID:
00433558
Views:
18
>Fred, you specified a WindowState = 2, which maximizes the form. You need a DeskTop = .T. as in:
>
>oPreview = NEWOBJECT("Form")
>oPreview.DeskTop = .T.
>oPreview.Caption = "Preview - " + ThisReport.Name
>oPreview.SizeOrMaximize() && Figure out the size.
>REPORT FORM (FRXName) WINDOW (oPreview.Name)
>oPreview.Release()
>
>You need not Show the form.
>
>

If you say so, but I seem to have had some kind of problem if I didn't show the form. The inherited preview window didn't have all the attributes I needed unless I did the Show(). I do NOT want a DeskTop form, as all of our forms still use the VFP frame.

Whatever, it works for me as shown.

>>>Ok, but...
>>>
>>>After making the form appear on the desktop, the report still insists on appear within the FoxPro frame.
>>>
>>>Any ideas?
>>>
>>>By the way, its VFP5. Don't know if VFP6 would help.
>>>
>>>
>>
>>Works the way I showed you in VFP6. I don't have VFP5 installed anymore, sorry.
>>
>>
>>
>>>>>Sorry, but how does that from what I've done?
>>>>>
>>>>>How do you create a desktop form?
>>>>>
>>>>
>>>>All you've done is modify the main VFP screen. You need to create a form object and put your preview in in it.
>>>>
>>>>oForm = CREATEOBJECT("Form")
>>>>oForm.WindowState = 2
>>>>oForm.Caption = "Whatever you need to see"
>>>>oForm.Show()
>>>>REPORT FORM (FRXName) WINDOW oForm.Name PREVIEW
>>>>oForm.Release()
>>>>
>>>>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform