0

Hoping someone out there can help. I have a fairly simple piece of code for viewing files

System.Diagnostics.Process.Start(tFileInfo.FullName)

Basically passes the path of a file to the process and let Windows deal with how to open it. Have also tried

Dim myProcess As New System.Diagnostics.Process
      With myProcess
        .StartInfo.UseShellExecute = True
        .StartInfo.FileName = tFileInfo.FullName
        .StartInfo.CreateNoWindow = False
        .Start()
      End With

Works beautifully on my machine, but on three others i have tested it on, it opens PDF and TXT files no problem, but as soon as I attempt to open a Word file or an Excel file
I get "There is not enough memory or disk space to open Word" and similar in Excel if the application is not already open. If the Office app is open, the code works perfectly. Has anyone come across this before?

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Ranx
0

Solved this. Not related to the code at all, but the user name

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.