Print Page | Close Window

QuickPDF Using Custom Paper Size

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=3189
Printed Date: 05 Apr 26 at 7:01PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: QuickPDF Using Custom Paper Size
Posted By: vermillion
Subject: QuickPDF Using Custom Paper Size
Date Posted: 15 Oct 15 at 2:07AM
Hello,

I have been trying to understand the SetupCustomPrinter method as it relates to custom paper size for some time now. Can someone help?

The documentation says this:
For custom paper size
0 Uses length and height to specify custom size in tenths or millimetres
For paper size:
1 to 68, DMPAPER_XXX (Win32 API DEVMODE data structure)
For paper height and width:
Size of paper in tenths of millimetres

How does it work if I DONT want to use paper size, but I want to do dimensions? I tried this:

SetupCustomPrinter(printerName, 0, 1);
SetupCustomPrinter(printerName, 2, 10000);
SetupCustomPrinter(printerName, 3, 10000);

This doesn't work, as the first call to SetupCustomPrinter return 0 indicating invalid setting values. What is the correct way to do this?

Thanks,

Vermillion



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