Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another C000005 error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01227789
Message ID:
01228034
Vues:
11
I've taken out everything but the ORIENTATION item. (As an aside, anytime I modify the report and save this field gets reset back to all these values - any way to prevent that?) But I'm still getting the errors.

I put some code in to see if anything was happening to Select area, datasession, etc
=MESSAGEBOX("data session "+TRANSFORM(SET("datasession")))  ---> 2
=MESSAGEBOX("SELECTED = "+TRANSFORM(SELECT())) ----> 10
=MESSAGEBOX("ALIAS = " + ALIAS()) ---> crsReport

REPORT FORM ("reports\"+thisform.orptdef.rpt_formname) TO PRINTER PROMPT PREVIEW

=MESSAGEBOX("data session "+TRANSFORM(SET("datasession"))) ----> 2
=MESSAGEBOX("SELECTED = "+TRANSFORM(SELECT())) ----> 7
=MESSAGEBOX("ALIAS = " + ALIAS()) ----> " " 
=MESSAGEBOX("USED = "+IIF(USED('crsReport'),'Y','N')) ----> Y
What could cause the Work Area to change in the report. There are no UDF's which could do this. There are some Data Groupings......could that be the cause????

But even immediately selecting the cursor and re-doing the report causes the error.


Here's some more wierd behavior that I hope can be a clue.

The preview opens in a normalsized window (windowstate=0). I can change pages,etc. but when I next try to preview a report (same report or different one) I get the error. However, if I maximize the window before closing it, I can then re-run the reports without error.

Unfortunately, when the window is maximized, attempting to change the page generated the same error. Once the window has been maximized, trying to "normalize" it results in an error.

I think I'm normally fairly good at debugging my Fox coding errors, but everything works from within VFP - it only fails in the app. I am truly stymied and appreciate any and all help.



>>On the other hand..............
>>Looking at the FRX directly. The first record has an ObjType of 1. The Expr field has
>>ORIENTATION=1
>>PAPERSIZE=1
>>SCALE=100
>>ASCII=100
>>COPIES=1
>>DEFAULTSOURCE=15
>>PRINTQUALITY=600
>>COLOR=1
>>DUPLEX=1
>>YRESOLUTION=600
>>TTOPTION=3
>>COLLATE=1
>
>
>Yes .. that has printer environment information in it. All the DEFAULTSOURCE, PRINTQUALITY, YRESOLUTION and similar lines are printer environment. That all needs to be removed and then try again. It's okay to keep ORIENTATION and COPIES and a few non-printer related items.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform