Hi, I have this line of code:
lbImpresoras.Assign(Printer.Printers);
lblImpresoras is created, the missing is Printer.Printers.
In the uses section I've added Printers unit. It contains a variable called Printer of TPrinter.
I'm using the exact line of code in another program and it works, but here gives me an access violation.
I'm missing some initialization or something?