MICR
prinitng 글꼴로 체크를하고 있습니다. Gridview에서 선택한 레코드에 대해 수표를 생성합니다. 나는 두 개의 레코드가있는 gridview에서 선택하는 경우 내가 그들에게 지혜로운 페이지를 보여 드리고자합니다인쇄하기 전에 이미지를 미리 볼 수 있습니까?
http://projects.erikzaadi.com/jQueryPlugins/jQuery.printElement/
여기에 따라 인쇄하기 전에 미리 싶습니다
public void print()
{
try
{
PrivateFontCollection PFC = new PrivateFontCollection();
PFC.AddFontFile(Server.MapPath("ADVMICR.TTF"));
FontFamily fm = new FontFamily(PFC.Families[0].Name, PFC);
Font PrintFont = new Font(fm, 12);
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
//Specify the printer to use. HP LaserJet P2035
pd.PrinterSettings.PrinterName = "HP LaserJet P2035";
pd.Print();
}
catch (Exception Ee)
{
}
}
public void pd_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawString("PAY TO THE ORDER OF", drFont, drawBrush, 15.0F, 120.0F);
e.Graphics.DrawString(FirstName + "," + MiddleInitial + ":" + LastName, drnarrowFont1, drawBrush, 145.0F, 117.0F);
e.Graphics.DrawString(CompanyName, drarialblackFont, drawBrush, 140.0F, 30.0F);
e.Graphics.DrawString(Address1, drsmallFont, drawBrush, 140.0F, 45.0F);
e.Graphics.DrawString(City + "," + StateName, drsmallFont, drawBrush, 140.0F, 55.0F);
e.Graphics.DrawString(Country + "," + ZipCode, drsmallFont, drawBrush, 140.0F, 69.0F);
e.Graphics.DrawString("DATE", drFont, drawBrush, 595.0F, 70.0F);
e.Graphics.DrawString(strDateTime, drnarrowFont, drawBrush, 650.0F, 65.0F);
e.Graphics.DrawString("MEMO", drFont, drawBrush, 15.0F, 262.0F);
e.Graphics.DrawString(iCheckno.ToString().PadLeft(4, (char)48), drFont, drawBrush, 730.0F, 20.0F);
e.Graphics.DrawString(strFractionCode1, drnarrowFont, drawBrush, 720.0F, 40.0F);
e.Graphics.DrawString("DOLLARS", drFont, drawBrush, 700.0F, 170.0F);
}
을 다음과 같이 샘플 코드입니다. 어떤 사람이 나를 도울 수 있습니까?