CompletIT Community Server

Welcome to CompletIT Community Server Sign in | Join | Help
in Search

Persistence output written to the program launch folder

Last post 12-14-2009, 9:09 AM by mgarner. 3 replies.
Sort Posts: Previous Next
  •  12-03-2009, 8:13 AM 19811

    Persistence output written to the program launch folder

    I am using the DataGridViewExtension and find that the settings are being written to the program launch folder instead of the default folder.No matter what change I make to the folder setting, it continues to write to the launch folder.

    Environment:
    Vista and Windows 7
    VB.NET (VS2008)

    Code:

    Imports CompletIT.Windows.Forms.Export.Excel
    Imports CompletIT.Windows.Forms.Export.Pdf
    Imports CompletIT.Windows.DataGridViewExtension
    Imports CompletIT.Windows.DataGridViewExtension.Persistence
    Imports CompletIT.Windows.DataGridViewExtension.Persistence.Xml

    ' Next line is optional. If omitted, path should default to  DGVEXmlPersistenceManager.ExtensionSettingsPathDefaultValue
    DGVEXmlPersistenceManager.ExtensionSettingsPath = "c:\\temp"
    DataGridViewExtensionComponent.Extension.UpdateAllGridsWithPersistedSettings()
    DGVEThemesManager.UpdateListWithSavedThemes()

    Dim ExcelExportDescription As ExcelExportDescription = New ExcelExportDescription()
    DGVEExportingManager.Export(Me.GeoCodingTargetDataGrid, ExcelExportDescription, True)


    After export, settings are persisted in the folder that the program launched from. The persistence configure method:
          DataGridViewExtensionComponent.Persistence.Configure() 
    displays the default path correctly.

    I have looked through the documentation and through this forum and cannot find a solution.

    Thanks

     

     

     

     

     

     

     

     

     

  •  12-12-2009, 8:59 AM 19814 in reply to 19811

    Re: Persistence output written to the program launch folder

    Can anyone help me with this? Why does the extension write to the application folder instead of the default path (or the path specified in .ExtensionSettingsPath)?

    Thanks

  •  12-14-2009, 2:07 AM 19815 in reply to 19814

    Re: Persistence output written to the program launch folder

    Hi,

    the extension writes the xml files with GRID settings to the C;\\temp in your case - but that does not mean that the EXPORT settings will be written down in that folder

    Maybe you need to set

    DGVEExportSettingsManager.ExportingSettingsBaseDirectory

    Sincerely Yours
    Alexander Alexandrov
    Support Team

  •  12-14-2009, 9:09 AM 19819 in reply to 19815

    Re: Persistence output written to the program launch folder

    Yes! That works.

    I am sorry that I was confusing the persistence settings with the export settings.

     

    Best regards,

    Michael Garner

View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems