تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
استعمال الطابعات الصغيرة
#1
السلام عليكم و رحمة الله و بركاته
أريد طباعة الفاتورة على شكل تلك التي نراها في السوبر ماركت ، هل يمكن استعمال تقارير الكريستال ريبورت مع هذا النوع من الطابعات ؟ و كيف يمكن تحديد طول الورقة الذي يكون متغير بنسب كبيرة من 5 سم حتى اكثر من 50 سم؟
السلام عليكم ة رحمة الله و بركاته
الرد }}}
تم الشكر بواسطة:
#2
اكيييييييد ممكن

فقط قم بختيار الطابعه وايضا الطول والعرض
تفضل الكود ب 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(1False00)
End Sub 
وهذا باc#
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(1false,0,0);

واذا كنت من مبرمجين c++ تفضل
PHP كود :
void PrintReport(StringprinterName)
{
   
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(1false,0,0);
}; 
ارجو ان اكون قد افدك ولكن تذكر هذا بالنسبه crystal report فقط

للتعامل بواسطه doc
تفضل
http://www.computerhope.com/issues/ch000199.htm
من خلال بحثي في النترنت وجدت هذا الرابط ولكن باc#
من هنا ^_^ تفضل الزينونه
microsoft partner
Team administrator
MCPD,MCITP,OCP,MP,MCC
Xprema Systems
الرد }}}
تم الشكر بواسطة: Sajad , ahmed saba
#3
السلام عليكم و رحمة الله و بركاته
شكرا على الافادة ، بالنسبة لطول التقرير كيف يتم تعيينه؟
السلام عليكم و رحمة الله و بركاته
الرد }}}
تم الشكر بواسطة:
#4
وعليكم السلام ورحمه الله تعالى وبركاته
اخي شوف الكود وراح تفهم
انه الصفحه ديناميكيه فقط تحتاج للتباعد عن الهامش عن طريق marge
microsoft partner
Team administrator
MCPD,MCITP,OCP,MP,MCC
Xprema Systems
الرد }}}
تم الشكر بواسطة: ahmed saba
#5
السلام عليكم و رحمة الله و بركاته
شكرا جزيلا أخي لنا عودة بعد شراء الطابعة و تجربتها
السلام عليكم و رحمة الله و بركاته
الرد }}}
تم الشكر بواسطة:


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم