Hi all, when I print to a dox matrix printer, I use the following,
var
file_ptr: textfile;
begin
assignfile(file_ptr,'LPT1:');
try
assignfile(file_ptr,'LPT1:');
except
On E: Eprinter do
begin
Showmessage('Invalid Printer');
Exit;
end;
end;
However I would like to print to another dotmatrix printer on the
network, which has been captured, and resides at LPT2,
assignPRN(file_ptr);
{$I-}
rewrite(file_ptr);
{$I+}
if IOResult = 0 then
else
begin
assignfile(file_ptr,'LPT2:');
{$I-}
rewrite(file_ptr);
{$I+}
end;
The problem is Delphi does'nt see the printer, any idea's, suggestions,
I might try..
Cheers..