using system;
using system.collections.generic;
using system.componentmodel;
using system.data;
using system.drawing;
using system.text;
using system.windows.forms;
using system.drawing.printing;
using system.drawing.drawing2d;
static rectangle getrealpagebounds(printpageeventargs e, bool preview)
private
void button1_click(object sender, eventargs e)
else
this.printdocument1.print();}}
private
void printdocument1_printpage(object sender, system.drawing.printing.printpageeventargs e)
private
void printdocument1_endprint(object sender, system.drawing.printing.printeventargs e)
private
void printdocument1_beginprint(object sender, system.drawing.printing.printeventargs e)}}
c 列印邊距2
using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.text using system.window...
JXL設定Excel的列印範圍
jxl中設定excel檔案的列印範圍方法。writablesheet sheet workbook.getsheet 0 sheetsettings setting sheet.getsettings 設定列印範圍 右上的列號和行號,左下的列號和行號 setting.setprintarea 1,2...
C 範圍for語句
在c 11中間,引入了範圍for語句,它的作用就是簡化遍歷給定序列的操作。語法形式如下 for declaration expression statement declaration 定義的變數 expression 要遍歷的物件 statement 語句 舉例 string s string 一...