求大神帮看一段批量打印的代码(有点有关问题)
求大神帮看一段批量打印的代码(有点问题)
if (i < Form1.Pimages.Count - 1)
{
//读取图片
Image Ptemp = (Bitmap)Image.FromFile(Form1.Pimages[i]);
if (Print.docToPrint.DefaultPageSettings.Landscape == false)
{
if (Ptemp.Width > Ptemp.Height)
{
Ptemp = Angle((Bitmap)Ptemp, 90);
}
}
else
{
if (Ptemp.Width < Ptemp.Height)
{
Ptemp = Angle((Bitmap)Ptemp, 90);
}
}
Picsize = FitSize((long)(((double)Ptemp.Width / Print.DPI) * 100), (long)(((double)Ptemp.Height / Print.DPI) * 100), e.PageBounds.Size.Width, e.PageBounds.Size.Height);