Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fatal Exception Error
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00605467
Message ID:
00605473
Views:
8
>Hi all
>
>I have developed an application and installed the same at a site and all works well (100 percent).
>
>However, when i installed the SAME application at another site, the program keeps on generating the following error whenever a form is opened after having previewed a report through the REPORT FORM...... command
>
>QUOTE
>Fatal exception 0D has occurred at 0028 : C0059820 in VXD VCMPD(01) + 00000360
>UNQUOTE
>
>Pls. tell me why this is so and how can i overcome this problem.
>
>What are the other report generators that i could use instead of the VFP report generator ?
>
>Sincere thanks in advance.


Does the sites where it works OK have the same printer or access to the same printer. Does the site where the REPORT FORM does not work have a different printer.

When I distribute my apps I ensure I clear out the printer specific fields of my reports. VFP reports have a tendency to remember the printer that the report was developed with (or what the developer has defaulted to). So I do the following to clear out the report fields:
ADIR(laReportArray,'*.FRX')

FOR i = 1 To ALEN(laReportArray,1)
  SELECT 0
  USE laReportArray[i,1] ALIAS FixReport
  LOCATE FOR Objtype = 1 AND Objcode = 53
  REPLACE FixReport.Tag WITH ""
  REPLACE FixReport.Tag2 WITH ""
  * Possible bug in that this removed the landscape and portrait settings
  *REPLACE FixReport.Expr WITH "" 
  USE
ENDFOR
Hope this helps.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform