save file dialog changes db connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vedika
    New Member
    • Feb 2008
    • 9

    #1

    save file dialog changes db connection

    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
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by vedika
    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....???

    Comment

    • vedika
      New Member
      • Feb 2008
      • 9

      #3
      Originally posted by dip_developer
      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.Sta rtupPath 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.

      Comment

      • dip_developer
        Recognized Expert Contributor
        • Aug 2006
        • 648

        #4
        Originally posted by vedika
        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.Sta rtupPath 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......

        Comment

        Working...