C1Report 自訂紙張大小的問題 |
尚未結案
|
chrischi
初階會員 發表:58 回覆:59 積分:28 註冊:2004-05-04 發送簡訊給我 |
大家好 我使用 Component One 撰寫 Windows Forms Application .NET 報表,
但遇到一個問題, 就是自訂報表的問題, 怎麼報表元件都會有這樣的問題,
微軟也不知道為什麼弄個 Form 的東西(控制台/印表機/伺服器內容設定的那個 Form),
之前用 Quick Report 是因為有出新版本所以解決掉了這個問題, 現在
要用 C1Report 又出現這個問題, 試了一堆所謂的 Solution 也沒有辦法解決 : Solution 1 : c1Report1.Layout.PaperSize = Custom
c1Report1.Layout.CustomWidth = paperWidthInTwips
c1Report1.Layout.CustomHeight = paperHeightInTwips Solution 2 : private void button1_Click(object sender, System.EventArgs e)
{
// define custom paper size, 20" x 60"
PaperSize cps = new PaperSize("MyCustomSize", 2000, 6000);
// assign custom paper size to report document
PrintDocument doc = this.c1Report1.Document;
doc.DefaultPageSettings.PaperSize = cps;
// show it
this.c1Report1.Render();
this.c1PrintPreview1.Document = doc;
} 試了以上官方的 FAQ 所提到的 Solution 都沒用, 也不知道是那兒出了問題,
只是要簡單的以中二刀列印幾列資料測一測自訂紙張大小的報表, 但列印結果
就是不是所預期的, 雖然列印內容是自訂紙大小沒錯, 但跳頁時仍以標準紙張
大小(如 A4, Letter 等)做跳頁, 那還不是等於沒有達到自訂紙張大小的要求. 現在 Quick Report 只要將元件紙張大小設為自訂就可以正確的列印自訂紙張
大小的報表, 不知道 C1Report 該如何才能解決呢 ? 開發環境 Windows Professional 2000 Pack 4
Borland Delphi 2005 Arch Update 3
Component One C1Report (Borland Delphi 2005 Arch Bundled version)
FuTek F80 印表機 (有支援自訂紙張)
謝謝 Chris
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |