Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
DEVMODE |
Post Reply
|
| Author | |
mchsk
Beginner
Joined: 02 May 13 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: DEVMODEPosted: 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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store