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!
Wide characters in a printer name causes crash |
Post Reply |
Author | |
Xan
Beginner Joined: 23 Jan 13 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 24 Jan 13 at 8:06PM |
Hello,
I'm developing a browser plugin that prints PDFs silently in the background. Everything is working great, except for one minor issue: whenever the printer name contains anything other than ASCII, my plugin crashes completely when issuing a DPLPrintDocument command. And I'm just using the normal DPLGetDefaultPrinterName(InstanceID) as the printer's name. (I've also tried fetching the default printer myself into a string and passing that, with the same result. I think this is unlikely to come up in the real world, but it does seem like a problem. Has anybody else seen this? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Xan!
It works like designed i fear. Which version you're using? If you look into the reference you can see that the activex-version returns with a string, delphi- and dll-version with a widestring. I think you should try the dll-version (widestring result)? Cheers and welcome here, Ingo Edited by Ingo - 24 Jan 13 at 8:49PM |
|
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