Delphi
--
Questions
--
Followers
Top Experts
procedure TForm1.Button1Click(Sender
var
F: TextFile;
begin
//AssignFile(F, '\\LDSSFP5\145.17.203.39')
AssignFile(F, '\\LDSSFP5\ZPA5'); <- works fine.
ReWrite(F);
WriteLn(F, '#!A1#A9#ERN0///0.00#M1/1#
CloseFile(F);
end;
Using the UNC printer name works fine but I need to be able to use an IP address as in the first line. Any help would be appreciated.
Thanks
Paul.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
I'm kind of skeptical about this one, i never saw a assignfile working on a printer, tried it here didn't work either.
If you want to send raw data to a printer, just give a look the the unit printer.
Chad
Paul.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Delphi
--
Questions
--
Followers
Top Experts
Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.