fastreport里如何用代码来实现改变默认的打印机? 
如何用程序代码来动态实现自定义纸张?

解决方案 »

  1.   

    frreport1.ChangePrinter(1,2);//用2号打印打印
    frreport1.PrintPreparedReportDlg;
      

  2.   

    用 printers.Printer.Printers 获得打印机列表
    用 printers.printer.printers.Indexof('打印机名') 获取指定打印机索引
    用 frreport1.ChangePrinter(0, i);i就是取出来的打印机索引 来设置当前打印机
      

  3.   

    用 printers.Printer.Printers 获得打印机列表
    可以获得网络打印机列表吗?
      

  4.   

    printers是什么呀。。
    我输入了printers以后,后面不出现Printer.Printers 。。
    高手,请教!!
      

  5.   

    uses printers;//要引用单元 printers;
      

  6.   

    fastreport理如何用程序代码来动态实现自定义纸张?
      

  7.   

    //自定义纸张
      for i := 0 to fr.Pages.Count - 1 do
      begin
        if 横向 then
          fr.Pages[i].ChangePaper(256, Width, Height, -1, poLandscape)
        else
          fr.Pages[i].ChangePaper(256, Width, Height, -1, poPortrait);
        //Landscape --横向打印,Portrait -- 纵向打印
      end;