Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Reports - Load Settings
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Reports - Load Settings

 Post Reply Post Reply
Author
Message
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Topic: Reports - Load Settings
    Posted: 17 March 2005 at 9:14am

I'm getting some odd results when saving/loading reports.  Please confirm that I'm doing this properly:

Step 1.  Format the report.  I'm adding columns to the report control, with appropriate formatting, etc.

Step 2.  Getting the data for the report.

Step 3.  Adding the data to the report (AddItem, etc.).

Step 4.  Checking to see if the report has been saved to a file.  If true, LoadSettings method called to load layout.

Main question = Do I skip Step 1 (and run Step 4 in it's place) if I already know that the report's layout was previously saved?  In other words, does the LoadSettings method replace, or merely complement, the process of formatting the report? 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2005 at 12:31am
You need step1, Save settings only store _order of columns_ not realy columns data.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2005 at 8:31am

OK.  To summarize, it sounds like the SaveSettings method saves certain formatting information regarding the columns in a report, but does not save any specific information regarding which columns are included in the report.

First, add columns (Column objects) to report control. Second, add data to the report (Record and Item objects). Finally, call the LoadSettings method to retrieve any specific formatting the user may have set for the report.

Now I need to figure out why LoadSettings does not seem to be working in my case.  I will save the settings for a report, but when I go to open the report again, and use LoadSettings, one or more columns are switched from NOT visible at SaveSettings time, to visible at LoadSettings time.  I use the same columns (Step 1) every time.

Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2005 at 3:50pm

FYI...my problems with column visibility related to VB code issues.  With the large number of report definitions I am using, some were getting "criss-crossed".Embarrassed

Thanks for your help with using SaveSettings/LoadSettings.

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.188 seconds.