Please i need some help from you all. I need to write a c# code to select files(pdf files to be precise) from any location on my PC. Also, i need to get the filename and i will also like to manipulate the text contained in the file. Please, any help will be appreciated.
Jump to Post
You can drag a OpenFileDialog Component on your screen and set it up in code like this
openFileDialog1.Filter = "PDF File (*.pdf)|*.pdf|All Files (*.*)|*.*";you can get the filename after selecting a file like this
OpenFileDialog.FileNameAs for manipulating the contents of a pdf you can try something like this …
All 4 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.