日期:2014-05-18 浏览次数:20926 次
int 列=0;
for(var i =0; i< 标签数组.length; i++)
{
列++;
if(列==1)
{
PictureBox1.Image= 加载Image(标签数组[i]);
e.Graphics.DrawImage(PictureBox1.Image, 20, 0, 90, 58)
}
else if(列==2)
{
PictureBox2.Image= 加载Image(标签数组[i]);
e.Graphics.DrawImage(PictureBox2.Image, 154, 0, 90, 58)
}
else if(列==3)
{
PictureBox3.Image= 加载Image(标签数组[i]);
e.Graphics.DrawImage(PictureBox3.Image, 288, 0, 90, 58)
打印并且换页();
列=0;
}
}
if(列!=0)
{
打印并且换页();
}
------解决方案--------------------
没有,可能需要很多代码才能完成。
我看看我用D写的代码。
------解决方案--------------------
int 列=0;
int 行=0;
for(var i =0; i< 标签数组.length; i++)
{
列++;
行++;
if(列==1)
{
PictureBox1.Image= 加载Image(标签数组[i]);
e.Graphics.DrawImage(PictureBox1.Image, 20, 0, 90, 58)
}
else if(列==2)
{
PictureBox2.Image= 加载Image(标签数组[i]);
e.Graphics.DrawImage(PictureBox2.Image, 154, 0, 90, 58)
}
else if(列==3)
{
PictureBox3.Image= 加载Image(标签数组[i]);
e.Graphics.DrawImage(PictureBox3.Image, 288, 0, 90, 58)
if(行==10)
{
打印并且换页();
行=0;
}
列=0;
}
}
if(列!=0)
{
打印并且换页();
}
------解决方案--------------------