1-) C# RMOS - pdf yazdırma
2-) DEVEXPRESS İLE AŞAĞIDAKİ .DLL LERİ EKLE
c:\Program Files (x86)\DevExpress 18.1\Components\Bin\Framework\DevExpress.Docs.v18.1.dll
C:\Program Files (x86)\DevExpress 18.1\Components\Bin\Framework\DevExpress.Pdf.v18.1.Core.dll
veya
c:\Program Files (x86)\DevExpress 15.1\Components\Bin\Framework\DevExpress.Docs.v15.1.dll
C:\Program Files (x86)\DevExpress 15.1\Components\Bin\Framework\DevExpress.Pdf.v15.1.Core.dll
AŞAĞIDAKİ KOD DOGRUDAN YAZDIRIR
public void PdfYazdir(string pdfFileName)
{
PdfDocumentProcessor documentProcessor = new PdfDocumentProcessor();
documentProcessor.LoadDocument(pdfFileName);
// Declare the PDF printer settings.
PdfPrinterSettings pdfPrinterSettings = new PdfPrinterSettings();
// Specify the PDF printer settings.
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Portrait;
pdfPrinterSettings.PageNumbers = new int[] { 1, 3, 4, 5 };
// Setting the PdfPrintScaleMode property to CustomScale requires
// specifying the Scale property, as well.
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale;
pdfPrinterSettings.Scale = 90;
// Print the document using the specified printer settings.
documentProcessor.Print(pdfPrinterSettings);
}
veya
Process.Start(fileName);