Board index » delphi » choosing printer in app and printing labels
Pascal Schmidt-Volkmar
![]() Delphi Developer |
Pascal Schmidt-Volkmar
![]() Delphi Developer |
choosing printer in app and printing labels2003-10-07 08:36:51 PM delphi36 Hi there, I am using the printers class to print labels. With printers.enddoc the labels are always printed on the standard printer. Is there a possibility to choose internally from the list of available printers? Maybe by their name?? I need to print out a random number of labels. These labels should be printed on endless paper where in each row you have four labels. Till now I am printing two lines on each label by telling the dots for each textline, which is - I know - stupid. Is there a way to do that in a loop or something? Thanks, Pascal |
Cruxy
![]() Delphi Developer |
2003-10-07 10:21:15 PM
Re:choosing printer in app and printing labelsQuoteI am using the printers class to print labels. With printers.enddoc selected options). I'd look in the source of the Printer-Setup dialog to get the information you want. QuoteI need to print out a random number of labels. These labels should be With all this information you could calculate the necessary distances/offsets and sizes and print them in a loop. The height of textlines could also be obtained by the printers canvas. |