原創|使用教程|編輯:鄭恭琳|2015-12-23 11:04:04.000|閱讀 1832 次
概述:本片文章主要介紹Stimulsoft Reports.Net開發者遇到的報表設計器相關的常見問題及解決方案。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
< Stimulsoft Reports.Net v2015.3最新版本下載>
絕大多數設計元素都是在配置中進行設置的。因此你可以取消不需要以及用戶覺得復雜的服務。
將下面的屬性值設置為false,報表代碼書簽將會被隱藏。
StiOptions.Designer.CodeTabVisible = false;
方法如下:
StiOptions.Designer.DontAskSaveReport = true;
使用StiDesigner.LoadingDesigner靜態事件。
你應該使用以下兩個靜態屬性:
使用專用的Restrictions類。示例:
C#
StiReport report = new StiReport(); report.Dictionary.Restrictions.Add("Customers", StiDataType.DataSource, StiRestrictionTypes.DenyShow); report.Dictionary.Restrictions.Add("DataSource._ID", StiDataType.DataColumn, StiRestrictionTypes.DenyShow);
VB
Dim Report As StiReport = New StiReport() Report.Dictionary.Restrictions.Add("Customers", StiDataType.DataSource, StiRestrictionTypes.DenyShow) Report.Dictionary.Restrictions.Add("DataSource._ID", StiDataType.DataColumn, StiRestrictionTypes.DenyShow)
使用報表的ReportFile屬性。
使用下面的代碼隱藏幫助菜單:
C#
StiConfig.Load(); StiMainMenuService service = StiConfig.Services.GetService(typeof(StiMainMenuService)) as StiMainMenuService; service.ShowHelp = false;
VB
StiConfig.Load() Dim Service As StiMainMenuService = TryCast(StiConfig.Services.GetService(GetType (StiMainMenuService)), StiMainMenuService) Service.ShowHelp = False
購買最新正版授權!""
慧都年終盛典火爆開啟,一年僅一次的最強促銷,破冰鉅惠不容錯過!!優惠詳情點擊查看>>
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn