search for: assignfil

Displaying 1 result from an estimated 1 matches for "assignfil".

Did you mean: assignfile
2009 Apr 27
6
File access denied when printing from a Delphi application
...ing the following error when I'm trying to print from a Delphi application: File access denied. This printer routine in my application is a routine to print text. So it prints to a file in LPT1 . The source code is more or less like this: Code: procedure Print; var File: TextFile; begin AssignFile(File, 'LPT1'); Rewrite(File); try Writeln(File, '...'); // ... finally CloseFile(File); end; end; I think the error occur in the AssignFile or Rewrite procedures, when the application tries to generate the file that will hold the printing on the system. I'...