Пример #1
0
        public string GetClinicMedicalRecord()
        {
            CommClient.MedicalRecord myd = new CommClient.MedicalRecord();

            CommContracts.MedicalRecord medicalRecord = new CommContracts.MedicalRecord();
            if (CurrentRegistration != null)
            {
                medicalRecord = myd.GetMedicalRecord(CurrentRegistration.ID);
            }

            return(medicalRecord.ContentXml);
        }
        private void textControl1_Loaded(object sender, RoutedEventArgs e)
        {
            textControl1.Focus();

            //dsAddresses = new DataSet();
            //dsAddresses.ReadXml("data2.xml");

            mailMerge1 = new MailMerge();
            mailMerge1.TextComponent = textControl1;

            TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
            ls.ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWord;
            ls.LoadSubTextParts       = true;

            //textControl1.Load("333.docx", StreamType.WordprocessingML, ls);

            CommClient.MedicalRecord    medicalRecordClient = new CommClient.MedicalRecord();
            CommContracts.MedicalRecord medicalRecord       = medicalRecordClient.GetMedicalRecord(7);

            textControl1.Load(medicalRecord.ContentXml, TXTextControl.StringStreamType.RichTextFormat);
        }