Esempio n. 1
0
        public HMA300Print(string filePath, string printName, Dictionary <string, object> dataSource)
        {
            PageXmlReader Reader = new PageXmlReader(filePath);

            this.Page = Reader.Read();
            if (printName.IsNotEmpty())
            {
                this.Page.DefaultPrinter = printName;
            }
            this.DataSource = dataSource;
        }
Esempio n. 2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="filePath"></param>
        /// <param name="printName"></param>
        /// <param name="dataSource"></param>
        /// <param name="LandScope">是否翻转打印</param>
        public DocumentPrint(string filePath, string printName, Dictionary <string, object> dataSource, bool LandScope = false)
        {
            PageXmlReader Reader = new PageXmlReader(filePath);

            this.Page = Reader.Read();
            if (printName.IsNotEmpty())
            {
                this.Page.DefaultPrinter = printName;
            }
            this.Page.LandScope = LandScope;
            this.DataSource     = dataSource;
        }