询问者
C# 在执行图片打印的时候 打印不全 怎么解决??

常规讨论
全部回复
-
你好:
有可能是你要打印的图片太大导致的,你可以尝试一下Graphics.DrawImage的其他重载方法试试。
Image bmIm; private void PrintImage(Image img) { bmIm = img; PrintDocument pd = new PrintDocument(); pd.OriginAtMargins = true; pd.DefaultPageSettings.Landscape = true; pd.Print(); } void pd_PrintPage(object sender, PrintPageEventArgs e) { double cmToUnits = 100 / 2.54; e.Graphics.DrawImage(bmIm, 0, 0,(float)(27 * cmToUnits),(float)(18 * cmToUnits)); }
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已编辑 CaillenModerator 2014年3月3日 9:49