내 응용 프로그램에 체크 박스가있는 격자보기가 있습니다. 여러 확인란 선택 인쇄 버튼을 클릭하면 별도의 창에서 PDF 파일을 열 수 있습니다. 내 코드는 코드 쇼 위asp.net을 사용하여 새 창에서 여러 PDF 파일을 여는 방법
for (int i = 0; i < grdAdditionalInsured.Rows.Count; i++)
{
CheckBox chk = (CheckBox)grdAdditionalInsured.Rows[i].Cells[0].FindControl("chkAdditionalInsured");
if (chk.Checked == true)
{
//**some code to get the id based on values**
string file = "/CertPrints/" + id.ToString() + ".pdf";
String js = @"WindowPopup('" + file + "');";
ScriptManager.RegisterStartupScript(this, this.GetType(), file, js, true);
}
}
만 마지막 레코드 pdf 파일입니다, 저에게 제안을주지하시기 바랍니다.
감사합니다! – bUKaneer