Aspose.Pdf.Examples.CSharp.AsposePDFFacades.Printing.CheckPrintJobStatus.GetSetPrintOwnerName C# (CSharp) Method

GetSetPrintOwnerName() public static method

public static GetSetPrintOwnerName ( ) : void
return void
        public static void GetSetPrintOwnerName()
        {
            // ExStart:GetSetPrintOwnerName
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Printing();
            PdfViewer viewer = new PdfViewer();
            // Bind source PDF file
            viewer.BindPdf(dataDir + "input.pdf");
            // Specify the name of Print job
            viewer.PrinterJobName = GetCurrentUserCredentials();
            // ExEnd:GetSetPrintOwnerName
        }
        // ExStart:GetCurrentUserCredentials