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

Quickreport 2.0c with Delphi 3 crashed on Windows 2000

Status
Not open for further replies.

stanleyc

MIS
Nov 13, 2000
2
ID
Hi. My reports (Only those with 2 or more pages) crashed when I run it on windows 2000. (reports with 1 page will work just fine).
I'm using Delphi 3 with Quickreport 2.0c..
The exception is "Can't create file"
Thanks..
 
I know this is a wild shot, but did u ever get this problem resolved? I am currently getting this issue and desperate to fix it.

Regards
 
Make sure your temp directory as it is setup in the windows environment is not too long.

Make sure you have sufficent rights to the temporary file directory.
 
I believe i've isolated the problem to a specific file. The qrprntr.pas file has a bug.

To Fix...

At the end of the TQRStringStack class declaration in QRPRNTR.PAS unit, there is a missing } in the $endif directive:

{$ifndef win32}
{ TQRStringStack }

TQRStringStack = class
// ...
end;
{$endif

Simply change the statement to:
TQRStringStack = class
// ...
end;
{$endif}
 
If you only have the standard version and can't edit the pas file download the upgrade to 2.0k from it fix my problem with the same sort of errors.
 
I have the same problem and nasrogers solution corrects this bug. I have modified the TEMP and TMP environnement variable to 'C:\TEMP' instead of 'C>:\Documents and Settings\administrateur\Paramètres locaux\Temp' and it works.
Thanks a lot
 
Take a look at the TempFilename function in qrprntr.pas - it has a woefully inadequate array size to receive the temp folder; change it so the array is [0..MAX_PATH] and it'll work fine without requiring you to change your environment variables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top