Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Load & Save Settings
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Load & Save Settings

 Post Reply Post Reply
Author
Message
nvierros View Drop Down
Groupie
Groupie
Avatar

Joined: 02 July 2006
Location: Australia
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote nvierros Quote  Post ReplyReply Direct Link To This Post Topic: Load & Save Settings
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.