public void BuildeDocument(CnRecipientInfo cnRecipientInfo, int kg, string docFilePath, bool IsPrintRequired = false)
        {
            this.cnRecipientInfo = cnRecipientInfo;
            this.kg = kg;

            Object Nothing = System.Reflection.Missing.Value;
            Application WordApp = new Application();
            Document WordDoc = WordApp.Documents.Add(ref Nothing, ref Nothing, ref Nothing, ref Nothing);

            WordDoc.ActiveWindow.ActivePane.View.SeekView = WdSeekView.wdSeekMainDocument;
            WordApp.Selection.Font.Name = "微软雅黑";
            WordApp.Selection.Font.Size = this.fontSize;
            WordApp.Selection.Font.Scaling = 100;
            WordApp.Selection.ParagraphFormat.LineSpacingRule = WdLineSpacing.wdLineSpaceExactly;
            WordApp.Selection.ParagraphFormat.LineSpacing = 20;

            WordApp.Selection.TypeText("亲爱的快递员,您辛苦了~!累了就休息休息~注意身体~");
            WordApp.Selection.TypeParagraph();

            WordApp.Selection.Font.Size = 8f;
            WordApp.Selection.TypeText(new string('-',120));
            WordApp.Selection.TypeParagraph();

            WordApp.Selection.Font.Size = this.fontSize; ;
            WordApp.Selection.TypeText(string.Format("邮编:\t\t{0}", this.cnRecipientInfo.PostCode));            
            WordApp.Selection.TypeParagraph();

            WordApp.Selection.TypeText(string.Format("地址:\t\t{0}", this.cnRecipientInfo.Address));
            WordApp.Selection.TypeParagraph();

            WordApp.Selection.TypeText(string.Format("收件人:\t\t{0} \t\t\t\t{1}", this.cnRecipientInfo.Name, this.cnRecipientInfo.Name.NameToPinyin()));
            WordApp.Selection.TypeParagraph();

            WordApp.Selection.TypeText(string.Format("电话:\t\t{0}", this.cnRecipientInfo.TelListText));
            WordApp.Selection.Font.Size = 8f;
            WordApp.Selection.TypeParagraph();

            WordApp.Selection.TypeText(new string('-', 120));
            WordApp.Selection.TypeParagraph();

            WordApp.Selection.TypeText("★ 祝愿宝宝与妈妈开心快乐每一天 ☆ 也祝快递员天天开心:)★ ");
            WordApp.Selection.TypeParagraph();

            WordApp.Selection.TypeParagraph();
 
            object filename = Path.Combine(docFilePath, string.Format("{0} {1} 地址.doc",this.cnRecipientInfo.Name, DateTime.Now.ToString("MM-dd_HHmmss")));

            WordDoc.SaveAs(ref filename, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing);

            if (IsPrintRequired) WordDoc.PrintOut();
            
            WordDoc.Close(Type.Missing, Type.Missing, Type.Missing);
            WordApp.Quit(Type.Missing, Type.Missing, Type.Missing);


        }
        public void CnRecipientLabelBuilderTest1()
        {
            CnRecipientInfo cnRecipientInfo = new CnRecipientInfo()
            {
                Name = "张锐锋",
                Address = "广东省潮州市名邦花苑A区4幢1202",
                PostCode = "521000",
                TelList = new List<string>() { "13903090504", "13903090505", "13903090504", "13903090505" },
                Remark = "Atm3*6"
            };

            CnRecipientLabelBuilder labelBuilder = new CnRecipientLabelBuilder();

            labelBuilder.BuildeDocument(cnRecipientInfo, 10,@"D:\");


        }
        public CnRecipientInfo Parse(string CN_Input)
        {
            recipient = new CnRecipientInfo();

            this.input = CN_Input;

            this.PreProcess();

            this.itemList = BreakInputIntoItemList(input);

            this.recipient.Name = this.FindName();

            this.recipient.PostCode = this.FindPostCode();

            this.recipient.TelList = this.FindTelList();

            this.recipient.Address = this.FindAddress();

            this.recipient.ProviceCity = this.FindProviceCity();


            return recipient;

        }
        private void PrintCNAddressLabel()
        {
            if (this.SelectedItem == null) return;

            var info = new CnRecipientInfo()
            {
                Name = this.SelectedItem.Name,
                Address = this.SelectedItem.CnAddress,
                PostCode = this.SelectedItem.PostCode,
                Remark = this.RemarkTxt,
                TelList = new List<string>() { this.SelectedItem.MainTel, this.SelectedItem.OtherTels },
            };
            this.cnLabelPrinter.BuildeDocument(info,
                this.CnLabelKgValue.StrToInt(),
                this.directoryService.GetOrCreateCnLabelDir(),true);


        }