Print Page | Close Window

Load & Save Settings

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=4977
Printed Date: 13 July 2025 at 11:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Load & Save Settings
Posted By: nvierros
Subject: Load & Save Settings
Date 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



Replies:
Posted By: sserge
Date Posted: 06 September 2006 at 1:17pm
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:

<?xml version="1.0" encoding="UTF-8"?>
<LAYOUT CompactMode="1" ShowGroupBox="0" FreezeColumnsCount="0">
<Columns>
<Column ItemIndex="0" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="1" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="2" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="3" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="4" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="5" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="6" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="7" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="8" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="9" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="10" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="11" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<Column ItemIndex="12" SortIncreasing="1" Visible="1" Alignment="0" StaticWidth="50" AutoWidth="50"/>
<GroupsOrder Count="0"/>
<SortOrder Count="0"/>
</Columns>
<Header AllowColumnRemove="1" AllowColumnResize="1" AllowColumnReorder="1" AllowColumnSort="1" AutoColumnSizing="0" ShowItemsInGroups="0"/>
</LAYOUT>


--
WBR,
Serge
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net