簡單實用的列印報表

2021-04-17 18:16:07 字數 1013 閱讀 8679

頁面如上,我想看了你應該知道怎麼辦吧,只要提取源就可以了。

後台頁面**主要是填寫所需的資訊:

this.descrption.text="";

datatable dt=data.tables[0];

for(int i=0;i";

this.descrption.text+=""+dt.rows[i]["productnm"].tostring()+""; //商品名稱

this.descrption.text+=""+dt.rows[i]["productcode"].tostring()+""; //商品編號

this.descrption.text+=""+dt.rows[i]["productcolor"].tostring()+"";//商品顏色

this.descrption.text+=""+dt.rows[i]["sizemark"].tostring()+""; //型號

this.descrption.text+=""+dt.rows[i]["orderquantity"].tostring()+"";//訂貨數量

this.descrption.text+=""+dt.rows[i]["sendquantity"].tostring()+""; //發貨數量

this.descrption.text+=""+""; //收貨數量

this.descrption.text+="";

}this.descrption.text+="";

這樣就很容易的實現了頁面列印。

沒有採取什麼報表模組和專用軟體。此種方法關鍵就是把所有需要的資訊都顯示在要列印的網頁上,這也就是它所以簡單的原因。如果想本地印表機呼叫伺服器資料那就複雜了。列印方法是ie整合的不需要其他支援,再有就是後台**關於**的輸出,要注意一些特殊的字元。

這篇文章是本人研究所得,是原創哦,嘿嘿。

注釋:this.descrption.text是乙個頁面下的lable用與擴充套件輸出**,它的內容將呈現html格式所以輸出後就看不到它了。這個方法可以滿足一般需求的列印了。

單據列印 簡單實用的銷售開單列印軟體

隨著公司業務量的越來越多,開單列印 統計查詢單據這些工作量也越來越多,耗時還費力。稍有疏忽,就會出差錯。公司的開單人員越來越感覺到傳統的手工開單已經不能跟上公司業務發展的步伐。越來越多的公司管理人員也把目光對準了辦公自動化這個領域。開始尋求一款能解決公司銷售管理的簡單實用的軟體。今天,在銷售型小企業...

列印報表的腳注

procedure treportform.printfooterreport2 sender tobject begin with sender as tbasereport do begin setfont times new roman 8 呼叫tbasereport元件的setfont方法設...

水晶報表的列印

using system using system.data using system.configuration using system.collections using system.web using system.web.security using system.web.ui usin...