Esempio n. 1
0
        /// <summary>
        /// 生成显示文本的Label控件
        /// </summary>
        /// <param name="exinfo"></param>
        private void GeneratePrintPreviewLabel(ExportInfo exinfo = null)
        {
            GetExportInfoValue(exinfo);
            PrintPreviewLabel previewLabel = null;

            try
            {
                previewLabel = new PrintPreviewLabel(PreviewControlPanel, exinfo);
                previewLabel.AddLabel();
            }
            finally
            {
                if (previewLabel != null)
                {
                    previewLabel.Dispose();
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 生成显示文本的Label控件
        /// </summary>
        private PrintPreviewLabel GeneratePrintPreviewLabel(ExportInfo exinfo = null)
        {
            GetExportInfoValue(exinfo);
            PrintPreviewLabel tempPreviewLabel = null;
            PrintPreviewLabel previewLabel     = null;

            try
            {
                tempPreviewLabel = new PrintPreviewLabel(PreviewControlPanel, exinfo);
                ShowExinfo(exinfo);
                tempPreviewLabel.AddLabel();
                ControlDetail    = string.Empty;
                previewLabel     = tempPreviewLabel;
                tempPreviewLabel = null;
            }
            finally
            {
                if (tempPreviewLabel != null)
                {
                    tempPreviewLabel.Dispose();
                }
            }
            return(previewLabel);
        }