第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

高手進??!rdlc報表打印出來沒有內(nèi)容,求助!

高手進??!rdlc報表打印出來沒有內(nèi)容,求助!

哆啦的時光機 2018-12-07 02:33:00
我在winform制作了一個名為PredictOrderReport.rdlc的報表(其中的字段來自數(shù)據(jù)集DateSetPredictOrderReport),并使用了ReportView把這個報表添加進去了(這里顯示的數(shù)據(jù)集是DateSetPredictOrderReport)?,F(xiàn)在在ReportView的代碼中如下面所寫,可打印出來的報表除了固定下來的內(nèi)容外全是空的(固定的內(nèi)容也很模糊看不清,不知道什么原因)。請高手幫忙解釋下,代碼如下:PredictOrderReportView_Load(object sender, EventArgs e)? {? this.reportViewer1.RefreshReport();? }? ?public partial class PredictOrderReportView : Form? {? private DataTable dtPredictOrderReports;? public PredictOrderReportView(DataTable dtShipmentReport)? {? InitializeComponent();? this.dtPredictOrderReports = dtShipmentReport;? LocalReport localReport = this.reportViewer1.LocalReport;? localReport.Refresh();? localReport.ReportEmbeddedResource = "Leis.View.Operation.HawbDeparture.PredictOrderReport.rdlc";? localReport.DataSources.Add(new ReportDataSource("PredictOrderReport", dtPredictOrderReports));//這里的PredictOrderReport是報表所在的程序名稱,不知道是不是寫這個還是得寫數(shù)據(jù)集DateSetPredictOrderReport;dtPredictOrderReports是有數(shù)據(jù)內(nèi)容的,將他作為數(shù)據(jù)源給這個報表。這些疑問還請高手們幫忙解釋下,謝謝了!? localReport.Refresh();? PrintLable(localReport);? }? public void PrintLable(LocalReport lreport)? {? if (lreport == null) return;? ReportPrint reportPrint = new ReportPrint(lreport);? PrintController printController = new StandardPrintController();? reportPrint.PrintController = printController;? reportPrint.PageHeight = 90;? reportPrint.PageWidth = 110;? reportPrint.MarginLeft = 0.2;? try? {? reportPrint.Print(); ? ? }? catch (Exception e)? {? throw (e);? }? }
查看完整描述

2 回答

?
白板的微信

TA貢獻1883條經(jīng)驗 獲得超3個贊

dtPredictOrderReports這個是空的

查看完整回答
反對 回復(fù) 2019-01-21
?
Smart貓小萌

TA貢獻1911條經(jīng)驗 獲得超7個贊

自己解決了!

查看完整回答
反對 回復(fù) 2019-01-21
  • 2 回答
  • 0 關(guān)注
  • 472 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號