[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Possible solution to: Unable to print SQR report direct from Maximo4 or SQRWB4



Dear All,

Possible solution to problem raised below.


Report will not print directly, but can preview and print from preview.

Detail:

As far as I am aware, this problem relates to SQRP.exe version 4.0.3, and
possibly to earlier versions too.

The report will run in PREVIEW, and print from preview, through Maximo
(using SQRT.exe) and SQR Workbench,
but will NOT PRINT DIRECTLY through either. An SQRP.exe or SQRWB.exe
application error may occur; possibly
stating a "divide by zero", a memory address exception of some kind, or an
"access denied". In extreme cases
when using SQRWB, SQRWB may crash and the operating system kills it.

You may get a (6602) - Error in the SQR Print error log file, which may
relate to a lack of system resources or an access problem.

Solutions:

(1) SQR.ini FONTS.

(a) Find the SQR.ini file, which will probably be under the Windows
directory.
(b) Find the [fonts] setup section.
(c) Check that the font-number that you are using in your report is
registered in the SQR.ini.
     (i)  If it isn't - EITHER register the font-number with a valid font
OR use a font-number / font that is registered
          in the SQR.ini.
     (ii) If it is - check that the font that your font-number points to
(e.g 4=Arial,Proportional) actually exists on your system.
          This may be a particular problem with font
6=AvantGarde,Proportional which does not come as standard with
          Windows NT 4.

NOTE: Despite the fact that the SQR.ini file states that a 'substitute' is
used if the SQR application cannot find a font, this is not
so with SQRWP.exe 4.0.3 and earlier. You may find that the report previews
(through SQRWV.exe) with a font different to that
which you chose in your code - e.g Arial instead of AvantGarde. This is
SQRWV.exe substituting the font. Unfortunately SQRWP.exe
does not do this - it falls over instead.

(2) MAXIMO Shortcut (courtacy of Jeremy Smith).

(a) Locate the Maximo shortcut, which may reside on the desktop, on the
start menu, or both.
(b) Create a new directory on your root drive.
(c) Click the right button over the Maximo shortcut and select
'properties'.
(d) Goto the 'Short-cut' tab and set the 'Start in:' path to your new
directory.
(e) Run Maximo from the short cut, and try the report.


Many thanks for your help again Peter.


Regards,


Martin Hunter, SSIL.