翻譯|使用教程|編輯:楊鵬連|2021-06-21 09:54:06.610|閱讀 213 次
概述:本文介紹了FastReport VCL報(bào)表如何保存/恢復(fù)設(shè)置、清除報(bào)表樣式、樣式庫創(chuàng)建的詳細(xì)教程。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
FastReport VCL是用于 Delphi、C++ Builder、RAD Studio 和 Lazarus 的報(bào)告和文檔創(chuàng)建 VCL 庫。它提供了可視化模板設(shè)計(jì)器,可以訪問 30 多種格式,并可以部署到云、網(wǎng)站、電子郵件和打印中。
立即點(diǎn)擊下載FastReport VCL v6.9最新版
保存/恢復(fù)設(shè)置
Pascal:
frxReport1.Styles.SaveToFile('c:\1.fs3'); frxReport1.Styles.LoadFromFile('c:\1.fs3');C++:
frxReport1->Styles->SaveToFile("c:\\1.fs3"); frxReport1->Styles->LoadFromFile("c:\\1.fs3");清除報(bào)表樣式
它可以通過兩種方式執(zhí)行:
frxReport1.Styles.Clear;或者
frxReport1.Styles := nil;樣式庫創(chuàng)建
以下示例說明了如何創(chuàng)建庫并向其添加兩組樣式。
Pascal:
var Styles: TfrxStyles; StyleSheet: TfrxStyleSheet; StyleSheet := TfrxStyleSheet.Create; { the first set } Styles := StyleSheet.Add; Styles.Name := 'Styles1'; { here one can add styles to the Styles set} { the second set } Styles := StyleSheet.Add; Styles.Name := 'Styles2'; { here one can add styles to the Styles set}C++:
TfrxStyles * Styles; TfrxStyleSheet * StyleSheet; StyleSheet = new TfrxStyleSheet; // the first set Styles = StyleSheet->Add(); Styles->Name = "Styles1"; // here one can add styles to the Styles set // the second set Styles = StyleSheet->Add(); Styles->Name = "Styles2"; // here one can add styles to the Styles set
如果您對(duì)FastReport 動(dòng)物,歡迎加入FastReport QQ 交流群:702295239
還想要更多嗎?您可以點(diǎn)擊閱讀【FastReport報(bào)表2021最新資源盤點(diǎn)】,查找需要的教程資源。上是FastReport .NET正在慧都網(wǎng)火熱銷售中!>>查看價(jià)格詳情
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自: