Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Print Preview behavior in VFP9

Status
Not open for further replies.

vfp7guy

Programmer
Jul 2, 2002
45
0
0
CA
Since upgrading our distributed software to VFP9 (from VFP8), we are seeing a frequent strange behavior in the Print Preview in many of our viewable reports.

For a split-second, before the actual Report is previewed on the screen, there is a flash of one of the screen objects selection boxes on the screen. (You know the sizeable selection box that is normally around a selected object in the Report Designer.)

It is not causing a problem, but it looks tacky.

Any ideas? It doesn't occur in VFP8.
Here is an extract of the typical code we use when the user selects the VIEW button on a report:

CASE PrtOrView = "V"
oRepForm = CREATEOBJECT("Form")
WITH oRepForm
.Caption = "Client Listing"
.WindowState = 2 &&This will maximize the form
.Show()
ENDWITH

REPORT FORM (Thisform.FRXname) TO PRINTER PROMPT PREVIEW WINDOW (oRepForm.Name)
oRepForm.Release()
 
Hi!

I met same problem using VFP9 with report forced to be in VFP7.
Also VFP8 did not presented that 'object'.

-Bart
 
VFP7GUY,

Any news on this topic?
Pls. share if you find a solution to prevent this strange behaviour.

-Bart
 
Thanks for your replies Nifrabar, but you are the only member who has had any input.

So far, I haven't found the problem, but have not been able to spend a lot of time researching this one yet ... heavy development lately.
Hope to concentrate on it shortly.
 
VFP9 uses GDI for this reason,
if you dont want to lose your designs and want to use them with VFP9

put "Set ReportBehavior 80" command
before your report commands routine
after then you can switch back to via "Set ReportBehavior 90" command
HTH




Soykan OEZCELIK
 
Thanks Kosta ... I will give that a try today and will let you know.
 
Kosta ... I tried your suggestion for a couple of our reports ... there was no change.

I still get a quick flash of the selection box for one of the objects on that FRX in the print preview window.

Thanks for the tip anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top