Reports - Load Settings |
Post Reply |
Author | |
DDJJ
Senior Member Joined: 13 December 2004 Status: Offline Points: 143 |
Post Options
Thanks(0)
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? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You need step1, Save settings only store _order of columns_ not realy columns data.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
DDJJ
Senior Member Joined: 13 December 2004 Status: Offline Points: 143 |
Post Options
Thanks(0)
|
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. |
|
DDJJ
Senior Member Joined: 13 December 2004 Status: Offline Points: 143 |
Post Options
Thanks(0)
|
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". Thanks for your help with using SaveSettings/LoadSettings. |
|
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 |