Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird report problem?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00942354
Message ID:
00944405
Vues:
26
---
You can see that we are running the report to a preview window.

objReportPreview = NewObject("ReportPreview", "CommonControls", "Reports.APP")
objReportPreview.Name = "ReportPreview"
objReportPreview.Visible = .T.

Report Form(ThisForm.obj_Reports.cReportName) Preview In Window "ReportPreview" NoConsole

---

Um....

I can see that you're using an IN WINDOW clause, BUT. please keep in mind that is not the same as a WINDOW clause and that your giving me the code above does not tell me much of what I would need to know. Running reports to top forms is tricky, and each of these clauses has its own vagaries it is worth investigating.

what type of window is ReportPreview, how is it defined? Is it a child of your top form or a separate top form? Or a child of another form? Did you write this code originally in 6, 7, or 8?

Do any of these windows have activate/deactivate event code?

Right now, I can't even see whether it is a DEFINEd window or a window object, and I can't see what its ShowWindow property is or how it was Show()n, if the latter, or ACTIVATEd/SHOWn, if the former.

Who knows, it might be unrelated, but this stuff is really messy and especially when invoked from modeless top forms there is often weird interaction.

Some other random thoughts:

-- You really don't need to use NOCONSOLE with PREVIEW <g>.

-- Yes it is quite possible that there is a bug in the report and VFP is trying to move the report into the designer. Could there be a variable in an expression that is sometimes not in scope or something weird like that?

BTW... I know you think it doesn't make sense (and I agree it's a PITA in the middle of a running application) but VFP does try to drop you into the designer when a report fails. Keep in mind that MODI REPO and CREATE REPO *are* allowed in an EXE and that it is legal to MODI REPO [report built into the EXE].

-- You can debug reports in VFP 9, FWIW <g>.

-- Unless I missed it, I didn't see anything about NOWAIT on the REPORT FORM PREVIEW -- right?

-- are there spaces in your report names?

-- do the reports use private data sessions?

-- I very much doubt this has anything to do with printers. I also don't think that the pattern of OSes is necessarily meaningful; could just be an accident.

>L<
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform