By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,135 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

show the pdf file

samycbe
P: 83
I want to save the pdf file path which is selected by the user and show that in a screen when it is opened next time.

Please help me

samy
Apr 16 '07 #1
Share this Question
Share on Google+
4 Replies


iburyak
Expert 100+
P: 1,017
Where do you want to save a path?
I usually save it in a Registry and at the start read registry entree.
But you can save it in INI file or anywhere else on userís computer.


Are you comphortable with APIs?
Apr 16 '07 #2

samycbe
P: 83
I want to save the path in database (File will be in only one folder in server. It will not change).
Apr 16 '07 #3

iburyak
Expert 100+
P: 1,017
To open each file for each user next time you have to save file name on local machine. I assume that each user will have its own file unless you want to save each file with user name like samycbe.pdf

Irina.
Apr 16 '07 #4

iburyak
Expert 100+
P: 1,017
You can create a table on Server side to save data and retrieve it when necessary.

This table should have following columns:

Expand|Select|Wrap|Line Numbers
  1. Username 
  2. FilePath
You can save data with statement like this:
Expand|Select|Wrap|Line Numbers
  1. Insert into table_name (Username, FilePath) values (username_here, file_path_here)
Then you can retrieve data with following statement
Expand|Select|Wrap|Line Numbers
  1. Select FilePath from table_name where Username = user
I am not sure what answer are you looking for.
Apr 16 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.