Print Page | Close Window

Reports - Load Settings

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1978
Printed Date: 17 November 2024 at 9:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Reports - Load Settings
Posted By: DDJJ
Subject: Reports - Load Settings
Date 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? 




Replies:
Posted By: Oleg
Date 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


Posted By: DDJJ
Date 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.



Posted By: DDJJ
Date 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.




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