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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Illegal operation when printing report to a window 1

Status
Not open for further replies.

Bengt

Programmer
Jan 19, 2001
1
SE
I have programmed a database aplication using DataFlex and written rather complicated Crystal Report report which worker until a certain time. Then it started to crash when printing to a window, but it still worked iif i print to a printer.

I think have isolated the problem to one formula field in the report. I erased everything except this field including all data files except the one that this field referde to, and I still got the crash.

The eroor message is:

CRRUN32 caused an invalid page fault in module CRPE32.DLL at 0167:1029aa00.

The only field in my report is a formula field which refers to the following formula:

IF {sysfil91.F_SKATTEBEVIS} = "J" then "F-skattebevis finns"

If I delete the first part of the formula so only

"F-skattebevis finns"

is left, the report works. If I make a new report using the same datafile and copying my long formula above to this report, it works.

I have run into a similar problem once before and then I solved it that way, but I didn't found any way to copy big parts of a report to another one so it was a big job. And obviously, it was a bad solution, as the same problem appeared again.

I am very grateful for ideas how to solve this.

Bengt
 
Bengt: To resolve the data problem try using Verify Database - this will re-read your Dataflex files and validate the fields in use - sounds like the problem you're having is that Crystal is objecting to that specific field - have you renamed or retyped it?

A tip - to copy large formulas between reports - place a Text Object on the page footer of the old report, insert into it all of your formulas you want transferred, copy the text object into the clipboard (Ctrl-X), move to the new report and paste the text object into the page footer (Ctrl-V) and hey presto! all the formulas appear in the new report!! Enjoy! David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top