Load & Save Settings |
Post Reply |
Author | |
nvierros
Groupie Joined: 02 July 2006 Location: Australia Status: Offline Points: 44 |
Post Options
Thanks(0)
Posted: 06 September 2006 at 1:54am |
Hi,
I just wanted to know how the load and savesetting features of the report control work.
.savesettings has not additional paramerters (where are the settings being saved?)
.loadsettings has a (profile as string) variable, BUT what on earth is the profile?
Sorry, but i could not find any documentation on this.
Cheers
Nick
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Nick,
These are layout settings: each column options, GroupsOrder and header settings. You can find technical details in the implementation of DoPropExcange member. For a ReportControl this member saves/loads layout settings. You can use XML PropExcange, save as file and look for more details. SaveSettings/LoadSettings just calls DoPropExcange for a binary PropExcange and convert binary data to a string. Using these functions you can easily save/load layout as string (and store this string in application or user profile). Example below:
-- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |