Print Page | Close Window

custom printing options

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2887
Printed Date: 17 Jan 26 at 3:36PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: custom printing options
Posted By: priya
Subject: custom printing options
Date Posted: 06 May 14 at 9:57AM
Hi,
I need to set custom print options for printing.
I can see that I can do this using SetupCustomPrinter function.
But I can't find any documentation saying what values to be set for what option.
Where should I look?
I need the full set of values.
A quick reply appreciated.
 
Thanks,
Priya
 



Replies:
Posted By: mLipok
Date Posted: 06 May 14 at 8:29PM
did you read this:

http://www.debenu.com/docs/pdf_library_reference/SetupCustomPrinter.php

edit:
and check 
Debenu Quick PDF Library 10.14 Dashboard (3.10)

in "Rendering and printing" there is "Custom PDF printing" example.

there is this one example:


// Welcome to Debenu Quick PDF Library Engine
// ------------------------------- 
// Use 'QP' to access the Debenu Quick PDF Library object
// Use MsgBox(string text) to display a popup dialog
// Use Preview.OpenFromFile(string filename) to load a PDF in the Preview PDF tab
// Use DisplayPDFReader(string filename) to display a PDF in the default PDF reader
// Use GetOutputFolder() to access the default output folder
// Use GetInputFolder() to access the default input folder
// -------------------------------

/* Create a custom printer and specify your own settings  */

// Load a sample file from the input folder

QP.LoadFromFile(GetInputFolder() + "JavaScript.pdf", ""); 

// Create the custom printer

CustomPrinter = QP.NewCustomPrinter("Microsoft XPS Document Writer");

// Setup the settings for the customer printer

// Medium quality

QP.SetupCustomPrinter(CustomPrinter, 5, 2); 

// Monochrome

QP.SetupCustomPrinter(CustomPrinter, 6, 1); 

// Horizontal Duplex

QP.SetupCustomPrinter(CustomPrinter, 7, 3);

// Configure print options

iPrintOptions = QP.PrintOptions(0, 0, "Printing Sample");

// Print the current document to the default printing 
// using the options as configured above

QP.PrintDocument(CustomPrinter, 1, 1, iPrintOptions);




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk