Recent Documents List

Stimulsoft Reports.NET discussion
Post Reply
johnham
Posts: 98
Joined: Fri Sep 19, 2008 2:27 pm
Location: Richland, WA, USA

Recent Documents List

Post by johnham »

I am using the Ribbon interface and provide my own saving/loading logic to save/load from my SQL Database. Is there a way I can customize the Recent Documents List with Report ID's from my database and then load them using my custom loading logic when they are clicked on?
Thanks,
John Hamilton
Hamilton & Company, LLC
johnham
Posts: 98
Joined: Fri Sep 19, 2008 2:27 pm
Location: Richland, WA, USA

Recent Documents List

Post by johnham »

:grinder: bump :grinder:
Thanks,
John Hamilton
Hamilton & Company, LLC
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Recent Documents List

Post by Jan »

Hello Johnham,
I am using the Ribbon interface and provide my own saving/loading logic to save/load from my SQL Database. Is there a way I can customize the Recent Documents List with Report ID's from my database and then load them using my custom loading logic when they are clicked on?
Please get latest prerelease build. We have made some improvements regarding customization recent files. You can use following code to add file recent file:

Code: Select all

designerControl.AddRecentFile(string file, object tag)
To get list of all recent files you can use following property:

Code: Select all

designerControl.RecentFiles
Also you can use following static events:

Code: Select all

StiOptions.Engine.GlobalEvents.DisplayRecentFileInDesigner
StiOptions.Engine.GlobalEvents.OpenRecentFileInDesigner
Thank you.
johnham
Posts: 98
Joined: Fri Sep 19, 2008 2:27 pm
Location: Richland, WA, USA

Recent Documents List

Post by johnham »

BRILLIANT!!!

:biggrin:
Thanks,
John Hamilton
Hamilton & Company, LLC
Post Reply