private void imageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var imagesobject1 = new TXTextControl.Image {
                SaveMode = ImageSaveMode.SaveAsData
            };

            txtDescription.Images.Add(imagesobject1, -1);
        }
        private void imageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var imagesobject1 = new TXTextControl.Image {
                SaveMode = ImageSaveMode.SaveAsData
            };

            // var imagesobject2 = new TXTextControl.Image();
            txtDescription.Images.Add(imagesobject1, -1);
            // var filePath = imagesobject1.ExportFileName;
            //  var filefilter = imagesobject1.FilterIndex;
            // var filename = filePath.Replace(@"\", "").Replace(" ", "").Replace(":", "").Replace(";", "").Replace("'", "").Replace(".", "");
            //    var filename = DateTime.Today.Day + DateTime.Today.Month + DateTime.Today.Year + DateTime.Now.Hour.ToString() + DateTime.Now.Minute + DateTime.Now.Millisecond;
            // filename = filename.Replace(":", "").Replace("/", "").Replace(" ", "");
            // File.Copy(filePath, @"D:\PatientManagement\Patient\RTF\ServerImage\" + filename + Extend(filefilter));
            //imagesobject1.ExportFileName = @"D:\PatientManagement\Patient\RTF\ServerImage\" + filename + Extend(filefilter);
            //imagesobject1.FileName = imagesobject1.ExportFileName;
            //imagesobject1.ExportFilterIndex = filefilter;

            // imagesobject2 = imagesobject1;


            //txtDescription.Images.Add(imagesobject2, -1);
        }
Beispiel #3
0
 private void mnuInsert_imgAsChar_Click(object sender, EventArgs e)
 {
    TXTextControl.Image NewImage = new TXTextControl.Image();
    NewImage.InsertionMode = TXTextControl.ImageInsertionMode.AsCharacter;
    _textControl.Images.Add(NewImage, -1);
 }
Beispiel #4
0
 private void mnuInsert_Image_Click(object sender, System.EventArgs e)
 {
    TXTextControl.Image imageNew = new TXTextControl.Image();
    _textControl.Images.Add(imageNew, TXTextControl.HorizontalAlignment.Left, -1, TXTextControl.ImageInsertionMode.DisplaceText);
 }