Paul E. Schoen
2010-04-25 10:07:09 UTC
I have recently added a Quick Report component in my D4 application, and as
it was my first attempt it took a little while getting things to work. But
finally I was able to generate reports (print preview) and all seemed fine,
but then I sometimes got this EFCreateError saying it cannot create file
'$%^#@' or some such gobbledegook. Sometimes also I got an error like
"Canvas does not support object".
I have a SubDetailBeforePrint procedure which adjusts the colors of some
text, and using the debugger it seems to crash when it processes the last
record. But I could not see any real problem. The print preview actually
shows but it seems like the final record causes the crash.
Finally I was able to determine that there was one record that caused the
problem if I used the ID Field text 'Test1', and then selected for all
ID='Test1' for the report. But if I named it 'Test2' it was OK, whether I
selected for ID='Test1' or ID='Test2'. I can also delete the record and
other records with ID='Test1' seem to be OK, but if I make a new record with
that ID it crashes. I'm about tapped out. Maybe I'll find it tomorrow after
I get some sleep.
The other strange thing I saw before this problem happened, is that the
print preview showed some of the data text in green or red as I intended,
but in the actual print (using a PDF creator engine) I sometimes get a wrong
color on one or more lines. And also I have some lines that are 4 points
wide, and show as thick lines in the print preview, but the PDF shows them
as thin. And when I first started working with Quick Reports it seemed that
the lines showed up as the correct width in the PDF.
Any ideas appreciated. Thanks.
Paul
it was my first attempt it took a little while getting things to work. But
finally I was able to generate reports (print preview) and all seemed fine,
but then I sometimes got this EFCreateError saying it cannot create file
'$%^#@' or some such gobbledegook. Sometimes also I got an error like
"Canvas does not support object".
I have a SubDetailBeforePrint procedure which adjusts the colors of some
text, and using the debugger it seems to crash when it processes the last
record. But I could not see any real problem. The print preview actually
shows but it seems like the final record causes the crash.
Finally I was able to determine that there was one record that caused the
problem if I used the ID Field text 'Test1', and then selected for all
ID='Test1' for the report. But if I named it 'Test2' it was OK, whether I
selected for ID='Test1' or ID='Test2'. I can also delete the record and
other records with ID='Test1' seem to be OK, but if I make a new record with
that ID it crashes. I'm about tapped out. Maybe I'll find it tomorrow after
I get some sleep.
The other strange thing I saw before this problem happened, is that the
print preview showed some of the data text in green or red as I intended,
but in the actual print (using a PDF creator engine) I sometimes get a wrong
color on one or more lines. And also I have some lines that are 4 points
wide, and show as thick lines in the print preview, but the PDF shows them
as thin. And when I first started working with Quick Reports it seemed that
the lines showed up as the correct width in the PDF.
Any ideas appreciated. Thanks.
Paul