بعد البحث الطويييييييييييييل وجدت هذا الكود فحبذا لو يجربه أحد لأنه لا يتوفر لدي طابعة الآن :
By using this line of code the report should get printed to the default printer installed on the client PC:
ReportDocument.PrintToPrinter(1,true,0,0);
If you want to hardcode the printer name, you can use an approach more like this:
//Report directly printing by Printer
string strSystemName = "\\\\SYSTEM\\";
string strPrinterName = "PrinterName";
rptPrint.PrintOptions.PrinterName = strSystemName + strPrinterName;
rptPrint.PrintToPrinter(1, false, 0, 0);
rptPrint.Close();
rptPrint.Dispose();
I don't think hardcoding the printer would be useful unless there is only one printer available.
وهذا رابط الموقع الأصلي :

