getOrientation() публичный Метод

public getOrientation ( ) : int
Результат int
Пример #1
0
        public bool showDialog(int pages)
        {
            csReportPaperType paperSize = 0;
            int orientation             = 0;
            int fromPage = 0;
            int toPage   = 0;
            int paperBin = 0;

            paperSize   = m_paperInfo.getPaperSize();
            orientation = m_paperInfo.getOrientation();

            fromPage = 1;
            toPage   = pages;

            if (cPrintAPI.showPrintDialog(
                    m_printDialog,
                    ref m_deviceName,
                    ref m_driverName,
                    ref m_port,
                    ref paperSize,
                    ref orientation,
                    ref fromPage,
                    ref toPage,
                    ref m_copies,
                    ref paperBin))
            {
                m_paperInfo.setPaperSize(paperSize);
                m_paperInfo.setOrientation(orientation);
                m_paperInfo.setPagesToPrint(fromPage.ToString() + "-" + toPage.ToString());
                m_paperInfo.setPaperBin(paperBin);

                return(true);
            }
            else
            {
                return(false);
            }
        }