I’m not sure is this the right place to ask but I’m grateful for help. I tried to search but maybe I don’t know even the right terms to search for.
I would like to get my app to save a document always to a “downloaded files” folder.
Now I have the filepath there but I would like to get it to be dynamic(is that the right word?). So if I export my app and someone uses it from their computer the program would be able to save the documents to the downloaded files folder in their machine.
I tried it but I sadly got this
“Argument ‘FilePath’: BC30451: ‘Enviroment’ is not declared. It may be inaccessible due to its protection level. Variable ‘FilePath’ is missing. Please use Data Manager to recreate it.”
Sadly I noticed that I was wrong yesterday and the program is not really working.
I have Word Application Scope and I tried to put the variable containing this Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), “Downloads”) to the path.
Then I would like to add the document name after that but I’m not sure how…
I tried to use + documentNameVariable+“.docx” which was not working of course.
Is there anything I could do to make the program understand what I want?