Hi all,
I am using the following code to open a word file using Process Class :
VB Code:
Cursor.Current = System.Windows.Forms.Cursors.WaitCursor 'Creating the new instance of a process class Dim startProg As New Process 'Prividing Application Name and File name to be opened startProg.StartInfo.FileName = progAssociated startProg.StartInfo.Arguments = " E:\PROJECTS\VSS22NDCENTURY\DOCUMENTS\Requirement Management\T-SRS-0001-034.doc" Trace.Flush() startProg.StartInfo.WindowStyle = ProcessWindowStyle.Maximized 'Maximized state 'Starting the Process startProg.Start() Trace.Flush() Cursor.Current = System.Windows.Forms.Cursors.Default
where progAssociated is coming out to be
"C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE"
ny idea....




Reply With Quote