Print Page | Close Window

DEVMODE

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=2632
Printed Date: 16 Mar 26 at 7:19AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DEVMODE
Posted By: mchsk
Subject: DEVMODE
Date Posted: 02 May 13 at 9:06AM
Hello,

I would kindly ask for a help or instruction how to solve my problem, I am using delphi and QuickPDF 8.16.

I have implemented my own "print dialog" where i set pages to print, number of copies, orientation and just a few more options. Now there is a dropdown with printers available with "Preferences" button which leads me to the print preferences of the printer.

What I want to achieve -> I want to re-set the DEVMODE for the printer after the print operation, but I seem to be out of luck.

What is my simpliefied code:

1. I will show up the deialog, yeah :P
2. I will select the default printer in the combobox
3. When combobox.onchange is fired, the value of DevMode is read GetPrinterDevModeToString(PRINTERSTR);
4~ if "Preferences is hit" there are preferences to be set, but they are gonna stay permanent in the system(this is what i want to avoid)
5~ if printing i will additionaly set PrintOptions to myCustomPrinter
6. When printing and/or closing in any way i am trying to use SetPrinterDevModeFromString(DEVMODESTR);

.. i am expecting this to be working, but the printer printing preferences just keep the way i changed them in #4


any help is appreciated, thanks for the cool library anyway!
marek



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