C# Class CSReportDll.cPrintAPI

Show file Open project: javiercrowsoft/CSReports.net

Public Methods

Method Description
getDefaultPrinter ( String &deviceName, String &driverName, String &port, int &paperSize, int &orientation, int &width, int &height ) : void
getcPrinterFromDefaultPrinter ( System.Windows.Forms.PrintDialog printDialog ) : cPrinter

Private Methods

Method Description
endDoc ( int m_hDC ) : int
getPaperSizeFromSizeName ( string sizeName ) : int
getSizeFromPaperSize ( csReportPaperType paperSize, int orientation, int &width, int &height ) : void
getcPrint ( System.Windows.Forms.PrintDialog printDialog, string deviceName, string driverName, string port ) : cPrinter
getcPrint ( System.Windows.Forms.PrintDialog printDialog, string deviceName, string driverName, string port, int orientation, int paperSize, int width, int height ) : cPrinter
printerPaperBinNameToId ( string p, string p_2, string paperBin ) : int
printerSetPaperBin ( string m_deviceName, int m_oldPaperBin ) : void
showPrintDialog ( System.Windows.Forms.PrintDialog printDialog, string &deviceName, string &driverName, string &port, csReportPaperType &paperSize, int &orientation, int &fromPage, int &toPage, int &copies, int &paperBin ) : bool

Method Details

getDefaultPrinter() public static method

public static getDefaultPrinter ( String &deviceName, String &driverName, String &port, int &paperSize, int &orientation, int &width, int &height ) : void
deviceName String
driverName String
port String
paperSize int
orientation int
width int
height int
return void

getcPrinterFromDefaultPrinter() public static method

public static getcPrinterFromDefaultPrinter ( System.Windows.Forms.PrintDialog printDialog ) : cPrinter
printDialog System.Windows.Forms.PrintDialog
return cPrinter