اشتراکها
یک نمونه در اینجا: «datepicker شمسی برای Angular Material»
می تونم rollback کنم به angular cli 1.7.4 ???
نظرات مطالب
Performance در AngularJS قدم اول
در نسخههای قدیمیتر نیز میتوانید از Angular bindonce استفاده کنید.
سلام.. بنده این کد رو نوشتم ولی اصلا اون سلول ایمیج رو در نظر نمیگیره.هرکاری میکنم اصلا نشون نمیده.. دلیلش چیه؟
لازم به ذکره که من قبلش یه جدول سه ستونه درست کردم و داخلش یه لوگو گذاشتم که اون به خوبی چاپ میشه ولی این اصلا!
var infoTable = new PdfPTable(6)
{
WidthPercentage = 100,
RunDirection = PdfWriter.RUN_DIRECTION_RTL,
ExtendLastRow = false,
SpacingBefore = 15,
};
infoTable.DefaultCell.Border = 2;
infoTable.AddCell(new PdfPCell(new Phrase("اطلاعات شناسنامه ای", tfont))
{
RunDirection = PdfWriter.RUN_DIRECTION_RTL,
HorizontalAlignment = Element.ALIGN_LEFT,
Border = 2,
PaddingBottom = 15,
Colspan=2
});
infoTable.AddCell(new PdfPCell(new Phrase("اطلاعات خانوادگی", tfont))
{
RunDirection = PdfWriter.RUN_DIRECTION_RTL,
HorizontalAlignment = Element.ALIGN_LEFT,
Border = 2,
PaddingBottom = 15,
Colspan = 2
});
infoTable.AddCell(new PdfPCell(new Phrase("اطلاعات دانشگاهی", tfont))
{
RunDirection = PdfWriter.RUN_DIRECTION_RTL,
HorizontalAlignment = Element.ALIGN_LEFT,
Border = 2,
PaddingBottom = 15,
Colspan = 2
});
var universityLogoImage = Image.GetInstance(imgPath);
universityLogoImage.ScaleAbsolute(30, 30);
//این عکس رو اصلا نشون نمیده topTable.AddCell(new PdfPCell(universityLogoImage) { HorizontalAlignment = Element.ALIGN_CENTER, Border = 2, }); infoTable.AddCell(new PdfPCell(new Phrase("وضعیت تاهل:", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase(dt.Rows[0][22].ToString() == "0" ? "مجرد" : "متاهل", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase("کد تحصیلی:", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase(dt.Rows[0][0].ToString(), docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase("تحصیلات همسر:", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase(dt.Rows[0]["wife_edu"].ToString(), docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase("شماره پرونده:", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase(dt.Rows[0]["t_parvande_num"].ToString(), docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase("تحصیلات پدر:", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase(dt.Rows[0]["father_edu"].ToString(), docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase("کد مرکز خدمات:", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase(dt.Rows[0]["bime_code"].ToString(), docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase("شغل پدر:", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase(dt.Rows[0]["father_job"].ToString(), docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase("پایه قبولی:", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase(dt.Rows[0]["enter_paye"].ToString(), docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 2, PaddingBottom = 10, }); infoTable.AddCell(new PdfPCell(new Phrase("", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 0 }); infoTable.AddCell(new PdfPCell(new Phrase("", docFont)) { RunDirection = PdfWriter.RUN_DIRECTION_RTL, HorizontalAlignment = Element.ALIGN_LEFT, Border = 0 }); int[] infoTableColumnsWidth = { 20, 15, 20, 15,20,15 }; infoTable.SetWidths(infoTableColumnsWidth); doc.Add(infoTable);
اشتراکها