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

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

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

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

哆啦的時(shí)光機(jī) 2018-12-07 02:33:00
我在winform制作了一個(gè)名為PredictOrderReport.rdlc的報(bào)表(其中的字段來自數(shù)據(jù)集DateSetPredictOrderReport),并使用了ReportView把這個(gè)報(bào)表添加進(jìn)去了(這里顯示的數(shù)據(jù)集是DateSetPredictOrderReport)?,F(xiàn)在在ReportView的代碼中如下面所寫,可打印出來的報(bào)表除了固定下來的內(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是報(bào)表所在的程序名稱,不知道是不是寫這個(gè)還是得寫數(shù)據(jù)集DateSetPredictOrderReport;dtPredictOrderReports是有數(shù)據(jù)內(nèi)容的,將他作為數(shù)據(jù)源給這個(gè)報(bào)表。這些疑問還請高手們幫忙解釋下,謝謝了!? 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貢獻(xiàn)1883條經(jīng)驗(yàn) 獲得超3個(gè)贊

dtPredictOrderReports這個(gè)是空的

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

TA貢獻(xiàn)1911條經(jīng)驗(yàn) 獲得超7個(gè)贊

自己解決了!

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

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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