hi, my code is like this:
object fileName = b.Name; object readOnly = false; object isVisible = true; object missing = System.Reflection.Missing.Value; try { wordAPP.Visible = true; Word.Document aDoc = wordAPP.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing); aDoc.Activate(); } catch (Exception e1) { MessageBox.Show(e1.ToString()); } i tried many options but still not successful.
This problem doesnot exist when we try to open a word file for first time as a open word application is closed and tried to open same or different document in word this happens. As long as word is open we can simply open any files any time .
thanks
|
No responses found. Be the first to respond and make money from revenue sharing program.
|