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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Wide characters in a printer name causes crash
  FAQ FAQ  Forum Search   Register Register  Login Login

Wide characters in a printer name causes crash

 Post Reply Post Reply
Author
Message Reverse Sort Order
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Topic: Wide characters in a printer name causes crash
    Posted: 24 Jan 13 at 8:48PM
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
Back to Top
Xan View Drop Down
Beginner
Beginner


Joined: 23 Jan 13
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xan Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store