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!
DrawText() and Commas |
Post Reply |
Author | |
davbrat
Beginner Joined: 21 Jul 14 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 21 Jul 14 at 9:10PM |
Hello all,
I just started playing with the library and I have run into this while using DrawText()... I have a string that contains a comma inside it, which causes the string NOT to be drawn when using DrawText(). If the comma is removed, the string is drawn. What would cause this? Thanks Dave |
|
Paul
Moderator Group Joined: 25 Jun 14 Location: Slovakia Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi Dave,
please post your code snippet, let us see where should be the problem. Pal |
|
davbrat
Beginner Joined: 21 Jul 14 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hello Paul,
I found the problem,. I'm using Clarion 9.1 and the COM control. In Clarion strings are wrapped in single quotes. So in my PDF form class... SELF.FillBox_C3('Fresno, CA 93721') !The form's box C3 would be filled with 'Fresno, CA 93721' later I would call my DrawText() Method wrapper and passed it the X,Y & Value parameters... Result = PDF_Container{'DrawText('& pX &','& pY &','& pValue &')'} Which would result in the text not displaying on the form. But I found I needed to wrap the text string with double quotes and now all is working fine. Changed it to... Result = PDF_Container{'DrawText('& pX &','& pY &',"'& pValue &'")'} Now the pValue is wrapped when passed to the COM control. It seems that most methods work with the single quoted strings,while others may choke. So I've went back to my base class and made sure all passed strings are now wrapped in double quotes. Thanks, Dave |
|
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