XtraReport導(dǎo)出問(wèn)題
發(fā)表于2019-05-10
回復(fù):0
查看:3921 |
在VS2010中的XtraReport設(shè)計(jì)頁(yè)面的Preview頁(yè)面上面點(diǎn)擊導(dǎo)出按鈕時(shí)會(huì)有導(dǎo)出模式選擇.
而在程序運(yùn)行時(shí),點(diǎn)擊導(dǎo)出按鈕就直接按默認(rèn)模式導(dǎo)出了,請(qǐng)問(wèn)有什么辦法在頁(yè)面運(yùn)行時(shí)點(diǎn)導(dǎo)出按鈕時(shí)也能選擇導(dǎo)出模式(或者能在后臺(tái)自定義一個(gè)模式也行)。 注:頁(yè)面運(yùn)行時(shí)導(dǎo)出用的是 ReportToolbar上的導(dǎo)出按鈕。
DevExpress.XtraPrinting.XlsExportOptions options = new DevExpress.XtraPrinting.XlsExportOptions();
options.ExportMode = new DevExpress.XtraPrinting.XlsExportMode();
string aa= options.ExportMode.ToString();
這里我可以取到導(dǎo)出的模式,但是不知道如何去設(shè)置這個(gè)模式,也就是給他賦值,好像不能直接賦值。求教。 注:不是要導(dǎo)出文件類(lèi)型的選擇,要的是導(dǎo)出內(nèi)容的模式(different files 或者 single file ) 默認(rèn)是single file 我想要 different files
我已經(jīng)搞定了:options.ExportMode = DevExpress.XtraPrinting.XlsExportMode.DifferentFiles;
怎么關(guān)閉問(wèn)題啊。。。。。。
登錄 慧都網(wǎng)發(fā)表評(píng)論