04-08-18, 06:20 PM
ضع اسم الطابعة في PrinterName
ضع اسم الدرج في PaperSource.SourceName
حدد اتجاه الورقة في Landscape ب True أو False
Landscape: ▄▄
Portait: ▌
مثال يحتاج للتجربة والتعريف بالنتيجة:
ضع اسم الدرج في PaperSource.SourceName
حدد اتجاه الورقة في Landscape ب True أو False
Landscape: ▄▄
Portait: ▌
مثال يحتاج للتجربة والتعريف بالنتيجة:
PHP كود :
PrintDocument1.PrinterSettings.PrinterName = "اسم الطابعة"
PrintDocument1.DefaultPageSettings.PaperSource.SourceName = "اسم الدرج"
PrintDocument1.DefaultPageSettings.Landscape = True
PrintDocument1.Print()
