Selecting from multiple printers at runtime
Hi,
I'm working on an application that needs to manage multiple printers, the one to use should be selected at runtime.
How can I do the runtime selection of the desired printer?
Until now, I have been trying to do it as follow, but it invariably selects the Windows default printer, and not the one that I selected on runtime.
Code ...
String ImpresoraSeleccionada = "A"; // This line of code is not real, but it is for selecting the desired printer
frxR_TicketProduccionSIAP->PrintOptions->Printer = ImpresoraSeleccionada;
frxR_TicketProduccionSIAP->PrepareReport(true);
frxR_TicketProduccionSIAP->Print();
Code ...
What am I doing wrong?
Any help would be appreciated.
I'm using C++ Builder Berlin Enterprise.
Best regards,
Patricio Cerda
I'm working on an application that needs to manage multiple printers, the one to use should be selected at runtime.
How can I do the runtime selection of the desired printer?
Until now, I have been trying to do it as follow, but it invariably selects the Windows default printer, and not the one that I selected on runtime.
Code ...
String ImpresoraSeleccionada = "A"; // This line of code is not real, but it is for selecting the desired printer
frxR_TicketProduccionSIAP->PrintOptions->Printer = ImpresoraSeleccionada;
frxR_TicketProduccionSIAP->PrepareReport(true);
frxR_TicketProduccionSIAP->Print();
Code ...
What am I doing wrong?
Any help would be appreciated.
I'm using C++ Builder Berlin Enterprise.
Best regards,
Patricio Cerda
Comments