|
分類:[VB.NET]
出来ました! trapemiyaさんの1の処理方法でうまくいきました。 この書き方でおかしくないのかどうかわかりませんが… とりあえずうまくいきました。
'***** 入荷ウェハ状態 ***** 2005/07/11追加 For intRow = 0 To 24 e.Graphics.DrawLine(wkPen075, 40, 174 + intRow * 28, 320, 174 + intRow * 28) '間線 e.Graphics.DrawString(CStr(intRow + 1).PadLeft(2, "0"), prtFont10, Brushes.Black, 46, 154 + 28 * intRow) Next e.Graphics.DrawLine(wkPen175, 40, 174 + 24 * 28, 320, 174 + 24 * 28) '間線
sqldata = "SELECT * FROM PC_TBL_実績詳細 " & _ "WHERE ロットNo = '" & strLotNo & "' " & _ "ORDER BY ロットNo"
pgobj.pg_connect() '###DB Connect dttbl = pgobj.pg_reader(sqldata, "get").Tables("get") pgobj.pg_disconnect() '###DB DisConnect
i = 0 imax = dttbl.Rows.Count
For intRow = 1 To 25 If i < imax Then If dttbl.Rows(i)(1) = intRow And dttbl.Rows(i)(32) = "OK" Then e.Graphics.DrawString(dttbl.Rows(i)(6), prtFont12, Brushes.Black, 72, 154 + 28 * intRow - 28) e.Graphics.DrawString(dttbl.Rows(i)(7), prtFont12, Brushes.Black, 182, 154 + 28 * intRow - 28) e.Graphics.DrawString(dttbl.Rows(i)(8), prtFont12, Brushes.Black, 252, 154 + 28 * intRow - 28) PassSUM += dttbl.Rows(i)(6) DefSUM += dttbl.Rows(i)(7) QualitySUM += dttbl.Rows(i)(8) i = i + 1 ElseIf dttbl.Rows(i)(1) = intRow And dttbl.Rows(i)(32) = "NG" Then e.Graphics.DrawString(dttbl.Rows(i)(32), prtFont12, Brushes.Black, 72, 154 + 28 * intRow - 28) i = i + 1 Else rect = New Rectangle(40, 146 + 28 * intRow - 28, 30, 28) e.Graphics.FillRectangle(Brushes.Black, rect) End If Else rect = New Rectangle(40, 146 + 28 * intRow - 28, 30, 28) e.Graphics.FillRectangle(Brushes.Black, rect) End If
Next e.Graphics.DrawString(PassSUM, prtFont12, Brushes.Black, 72, 154 + 28 * 26 - 28) e.Graphics.DrawString(DefSUM, prtFont12, Brushes.Black, 182, 154 + 28 * 26 - 28) e.Graphics.DrawString(QualitySUM, prtFont12, Brushes.Black, 252, 154 + 28 * 26 - 28)
|