468,140 Members | 1,613 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,140 developers. It's quick & easy.

save file dialog changes db connection

9
hi,
I created one application in which there is export functionality. I am using sqlCE as database . When user click on "export" a save file dialog appeare and file saved in html format from database. but after that if i minimise application to systray and again open it then no any data from database will displayed.
If i save file in application startup path then on data from database is displaying.

Thanks
Vedika
Feb 20 '08 #1
3 1144
dip_developer
648 Expert 512MB
hi,
I created one application in which there is export functionality. I am using sqlCE as database . When user click on "export" a save file dialog appeare and file saved in html format from database. but after that if i minimise application to systray and again open it then no any data from database will displayed.
If i save file in application startup path then on data from database is displaying.

Thanks
Vedika
can you elaborate your problem a bit more....???
Feb 20 '08 #2
vedika
9
can you elaborate your problem a bit more....???
hi,
I am using sqlCE as database and developing a desktop application in c#.
There is one functionality in which "Export" it will take data from database and write it to a file and allow user to save it on their machine by savefile dialog control. But when user select different location to save the file than Application.StartupPath then the file will get saved But after that application can not get database file path.
It give error ./cbdb.sdf file not found .I think it search database file at that location where user select to save the "Exported" file.
Feb 20 '08 #3
dip_developer
648 Expert 512MB
hi,
I am using sqlCE as database and developing a desktop application in c#.
There is one functionality in which "Export" it will take data from database and write it to a file and allow user to save it on their machine by savefile dialog control. But when user select different location to save the file than Application.StartupPath then the file will get saved But after that application can not get database file path.
It give error ./cbdb.sdf file not found .I think it search database file at that location where user select to save the "Exported" file.
please post your code..........I did not understand your problem......
Feb 20 '08 #4

Post your reply

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

Similar topics

3 posts views Thread by bbxrider | last post: by
1 post views Thread by David Deacon | last post: by
4 posts views Thread by John | last post: by
4 posts views Thread by Richard | last post: by
reply views Thread by Dune | last post: by
3 posts views Thread by =?Utf-8?B?YXNkZg==?= | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.