![]() ![]() Image img = Image.FromFile( " myImage.jpg") It works fine but not able to open images. ReleaseComObject(wordobject) txtwriteinenglish.Focus() wordobject.Quit(SaveChanges:false, OriginalFormat: false, RouteDocument: false) Wordobject.Quit( ref nullobject, ref nullobject, ref nullobject) Txtwriteingerman.Text = rtbgermanfile.Lines ĭocs.Close( ref nullobject, ref nullobject, ref nullobject) Rtbgermanfile.Text = newtext2.ToString() String newtext2 = newtext.Replace( " \n\n", " \n") String newtext = name.Replace( " \n\n", " \n") String name = () name = String.Join(Environment.NewLine, name.Split( new char, StringSplitOptions.RemoveEmptyEntries)) Rtbgermanfile.Text = data.GetData(DataFormats.Rtf).ToString() IDataObject data = Clipboard.GetDataObject() ![]() Wordobject.DisplayAlerts = .WdAlertLevel.wdAlertsNone ._Document docs = ( ref File, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject, ref nullobject) () Object File = txtfilepath.Text // this is the path object nullobject = .Application wordobject = new .Application() ApplicationClass wordObject = new .ApplicationClass() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |