public static void Run()
        {
            // ExStart:PrintDocumentWithPrintOptions
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_LoadingAndSaving();

            var document = new Aspose.Note.Document(dataDir + "Aspose.one");

            var printerSettings = new PrinterSettings()
            {
                FromPage = 0, ToPage = 10
            };

            printerSettings.DefaultPageSettings.Landscape = true;
            printerSettings.DefaultPageSettings.Margins   = new System.Drawing.Printing.Margins(50, 50, 150, 50);

            document.Print(new PrintOptions()
            {
                PrinterSettings        = printerSettings,
                Resolution             = 1200,
                PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(),
                DocumentName           = "Test.one"
            });
            // ExEnd:PrintDocumentWithPrintOptions
        }
示例#2
0
        public static void Run()
        {
            // ExStart:PrintDocument
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_LoadingAndSaving();

            var document = new Aspose.Note.Document(dataDir + "Aspose.one");

            document.Print();
            // ExEnd:PrintDocument
        }
示例#3
0
        public static void Run()
        {
            // ExStart:PrintDocument
            // ExFor:Document
            // ExFor:Document.Print
            // ExSummary:Shows how to sent document to a printer using standard Windows dialog with default options.

            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_LoadingAndSaving();

            var document = new Aspose.Note.Document(dataDir + "Aspose.one");

            document.Print();

            // ExEnd:PrintDocument
        }