Range Check Error
Hello,
I have one of our customers report a range check error while trying to print
from the report preview screen. OS is XP SP3 (it can happen on any PC on
their network).
often when they click on print the print dialog appears followed immediatley
by a range check error. The print dialog behind the range check error is
not initialised properly (eg i can see label names where the descriptions
should be, they sent me a screenshot). They then have to exit the program
and re generate the report and it then works ok.
They tell me this started to happen about a month ago, the same version of
software had been working without any issues for at least a year and is
working ok at other customer sites. They say that they have not introduced
any new software during this time. (so possibly only windows updates and
Mcafee could have changed).
I an using Reportbuilder 9.03 with a custom print preview form and here is
the print button code
procedure TmySearchPrintPreview.actPrintExecute(Sender: TObject);
var Ptf: Boolean;
begin
if (FSearchPreview <> nil) then
FSearchPreview.BeforePreviewActionPerformed(paPrint);
Ptf := ppViewer1.Report.AllowPrintToFile; // turn off print to
file option here
try // will be done in our
save dialog
ppViewer1.Report.AllowPrintToFile := FALSE;
ppViewer1.Print;
finally
ppViewer1.Report.AllowPrintToFile := Ptf;
end;
if (FSearchPreview <> nil) then
FSearchPreview.AfterPreviewActionPerformed(paPrint);
end;
Help!!!!!
Thanks
I have one of our customers report a range check error while trying to print
from the report preview screen. OS is XP SP3 (it can happen on any PC on
their network).
often when they click on print the print dialog appears followed immediatley
by a range check error. The print dialog behind the range check error is
not initialised properly (eg i can see label names where the descriptions
should be, they sent me a screenshot). They then have to exit the program
and re generate the report and it then works ok.
They tell me this started to happen about a month ago, the same version of
software had been working without any issues for at least a year and is
working ok at other customer sites. They say that they have not introduced
any new software during this time. (so possibly only windows updates and
Mcafee could have changed).
I an using Reportbuilder 9.03 with a custom print preview form and here is
the print button code
procedure TmySearchPrintPreview.actPrintExecute(Sender: TObject);
var Ptf: Boolean;
begin
if (FSearchPreview <> nil) then
FSearchPreview.BeforePreviewActionPerformed(paPrint);
Ptf := ppViewer1.Report.AllowPrintToFile; // turn off print to
file option here
try // will be done in our
save dialog
ppViewer1.Report.AllowPrintToFile := FALSE;
ppViewer1.Print;
finally
ppViewer1.Report.AllowPrintToFile := Ptf;
end;
if (FSearchPreview <> nil) then
FSearchPreview.AfterPreviewActionPerformed(paPrint);
end;
Help!!!!!
Thanks
This discussion has been closed.
Comments
This was not a known issue with RB 9.03. If you revert back to the original
print dialog, do you still get the same error? Is is possible that your
customer changed their printer or printer driver in the last month? If this
worked correctly a month ago, something must have changed to cause the
error. For the record, we have never heard of a Windows update or virus
software update causing errors in ReportBuilder before but they might try
restoring one of their machines to a state when they know it worked and
re-test to be sure that is not the case.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Since posting I have connected in to one of the clients remotely to take a
look.
PS. Its not a replacement print dialog, it's the preview dialog. And the
error occurs after calling .Print
My findings so far :-
I was unable to re-create the Range Check Error, but when asked they said it
only happens a few times a day, once it happens they have to re-boot the pc
and it works again.
So I took a look at the installed printers and found that from the print
dialog on one of the printers HP8000 pressing the properties button
generated an Access Violation in HPBF022i.DLL.
But if I print a pdf in acrobat and then clicked on properties it worked ok.
It only appeared generate an error from the delphi/reportbuilder app.
?
So I downloaded the HP8000 driver from the HP Website and re-installed it
using the "Have Disk" option and picking the driver file.
Now the properties dialog is working ok from the app.
They will be using the system again from Tuesday next week and they will let
me know if they see any more issues on the PC with the re-installed driver.
?
Regards
Steve
Looking at further changes we made (RB 10, 11, 12). Updating to the latest
version will most likely solve the issue. We made some changes to the
printer logic to specifically handle range check errors in versions later
than RB 9.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com