bettyboop
Member
- Joined
- Jan 20, 2022
- Messages
- 6
- Programming Experience
- Beginner
how do you retrieve a name of a PDF file stored in a database field? If I hard code it works fine
string filename = "name of file here.pdf"
System.Diagnostics.Process.Start(filename);
BUT I would like to retrieve name of pdf file depending on the choice of the user
Example
Craft1 = " craft directions1.pdf"
Craft2 = "craft2 directions.pdf"
When I put :
string filename = patternLinkTextBox.ToString();
System.Diagnostics.Process.Start(filename);
throws exception
The system cannot find the file specified'
string filename = "name of file here.pdf"
System.Diagnostics.Process.Start(filename);
BUT I would like to retrieve name of pdf file depending on the choice of the user
Example
Craft1 = " craft directions1.pdf"
Craft2 = "craft2 directions.pdf"
When I put :
string filename = patternLinkTextBox.ToString();
System.Diagnostics.Process.Start(filename);
throws exception
The system cannot find the file specified'