BCB6怎么设置默认打印机
1个回答
2016-12-01
展开全部
//先把默认打印机名称拿出来
TPrinter *Prntr=Printer();
Prntr->PrinterIndex=-1;
AnsiString pname=Prntr->Printers->Strings[Prntr->PrinterIndex];
//重新设置默认打印机
int nIndex=Prntr->Printers->IndexOf("epson print");
Prntr->PrinterIndex=nIndex;
TPrinter *Prntr=Printer();
Prntr->PrinterIndex=-1;
AnsiString pname=Prntr->Printers->Strings[Prntr->PrinterIndex];
//重新设置默认打印机
int nIndex=Prntr->Printers->IndexOf("epson print");
Prntr->PrinterIndex=nIndex;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询