اكيييييييد ممكن
فقط قم بختيار الطابعه وايضا الطول والعرض
تفضل الكود ب vb.net
وهذا باc#
واذا كنت من مبرمجين c++ تفضل
ارجو ان اكون قد افدك ولكن تذكر هذا بالنسبه crystal report فقط
للتعامل بواسطه doc
تفضل
http://www.computerhope.com/issues/ch000199.htm
من خلال بحثي في النترنت وجدت هذا الرابط ولكن باc#
من هنا ^_^ تفضل الزينونه
فقط قم بختيار الطابعه وايضا الطول والعرض
تفضل الكود ب vb.net
PHP كود :
Private Sub PrintReport(ByVal printerName As String)
Dim margins As PageMargins
' Get the PageMargins structure and set the
' margins for the report.
margins = Report.PrintOptions.PageMargins
margins.bottomMargin = 350
margins.leftMargin = 350
margins.rightMargin = 350
margins.topMargin = 350
' Apply the page margins.
Report.PrintOptions.ApplyPageMargins(margins)
' Select the printer.
Report.PrintOptions.PrinterName = printerName
' Print the report. Set the startPageN and endPageN
' parameters to 0 to print all pages.
Report.PrintToPrinter(1, False, 0, 0)
End Sub
PHP كود :
private void PrintReport(string printerName)
{
PageMargins margins;
// Get the PageMargins structure and set the
// margins for the report.
margins = Report.PrintOptions.PageMargins;
margins.bottomMargin = 350;
margins.leftMargin = 350;
margins.rightMargin = 350;
margins.topMargin = 350;
// Apply the page margins.
Report.PrintOptions.ApplyPageMargins(margins);
// Select the printer.
Report.PrintOptions.PrinterName = printerName;
// Print the report. Set the startPageN and endPageN
// parameters to 0 to print all pages.
Report.PrintToPrinter(1, false,0,0);
}
PHP كود :
void PrintReport(String* printerName)
{
PageMargins margins;
// Get the PageMargins structure and set the
// margins for the report.
margins = Report->PrintOptions->PageMargins;
margins.bottomMargin = 350;
margins.leftMargin = 350;
margins.rightMargin = 350;
margins.topMargin = 350;
// Apply the page margins.
Report->PrintOptions->ApplyPageMargins(margins);
// Select the printer.
Report->PrintOptions->PrinterName = printerName;
// Print the report. Set the startPageN and endPageN
// parameters to 0 to print all pages.
Report->PrintToPrinter(1, false,0,0);
};
للتعامل بواسطه doc
تفضل
http://www.computerhope.com/issues/ch000199.htm
من خلال بحثي في النترنت وجدت هذا الرابط ولكن باc#
من هنا ^_^ تفضل الزينونه
