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:
00944015
Vues:
23
.. 1) What is the exact line you use to do the REPORT FORM .. PREVIEW (I'm assuming that the preview is what you mean when you say "user closes report and then Designer pops up" -- please tell me if you mean something else) ?

Here is the code we are using to run the report. We create an object and fill the properties with the correct information for the report. You can see 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

objReportPreview.Release()

.. 2) Is this line of code always pretty much the same

Yes exactly the same for all reports. I don't know which line it is having a problem with because we can not really debug a report. It always happens when a user closes a report. They click close button and next thing you know VFP is bring up the MODI REPORT UI. It does not happen all the time only once in a while, and on all sorts of different machines. I can not narrow anything down, because it is quite random.

.. do they ever call the same report preview twice in succession ?

Yes the users will run the report more than once in succession. Sometimes it fails and sometimes it doesn't. I never run the report programmatically.

.. What type of environment invokes the REPORT FORM line(s)? Button? Modal form or modeless? Menu?

A button on a modeless form that runs as top level. It does not make any sense to me. The reports are built into the EXE. No paths exist on disk.

.. 5) If built in, do you ever find copies of the files on your user's disks after this experience?

No I sure haven't, but the only way out of the problem is to GPF foxpro. The mouse cursor is a sanddial, so I have to go in and kill the Task. Which once you kill the task, then it comes open and GPF's VFP application. That is the only way I konw how to get out of it because you can not click on anything.

.. Do any other forms in your application have the same title bar/caption?

No. I have only seen this occur on WinXP and Win2K machines. I have never seen this on a 98, but we do not have very many 98 computers out there running our software. Most machines over 90% are Win2K or higher.

.. 9) Do you use MODI/CREATE REPORT *anywhere* in your application?

No, and that is weirdest part. Any ideas? I am glad you had lots of questions because it made me think thru all the things I have either tried or should try. This error does not occur very often, but when it does the customer has no idea what to do. I checked for different types of printers and each customer has a different model. I thought maybe the driver, but each customer has different drivers. One thought I had was could it be something like an error occuring in the report, and VFP is trying to debug it? It would kindof make sense at development, but not a runtime.

TIA
Dale
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform