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!
![]() |
Drawing Courier font text loses spaces |
Post Reply
|
| Author | |
Carneno
Team Player
Joined: 19 Apr 11 Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
Topic: Drawing Courier font text loses spacesPosted: 25 Apr 11 at 5:32PM |
|
Hello, I'm developing a VB 6.0 printing program using QuickPDF Library 7.24.
When I DrawWrappedText on a page with a standard Courier font and print the page, the page prints the text, but it loses all the spaces between words. It only leaves one space between each word.
If I draw this text on the page " 1HI CROYDON , PA 19021-6997", it prints as "1HI CROYDON , PA 19021-6997".
Does anybody know how to print text on a page as it is including the space characters?
Any help would be gratefully appreciated.
Thanks,
Tony
|
|
|
Stop The World, I want To Get Off.
|
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 Apr 11 at 10:07PM |
|
Hi Tony,
Extra spaces between words in strings are ignored. If you need to include multiple spaces in your strings then you will need to use the draw HTML text functions (for example DrawHTMLTextBox) and use the HTML space tags (e.g. ). Alternatively there is the DrawSpacedText function but it's not possible to selectively use extra spaces with this option. Cheers, - Rowan. |
|
![]() |
|
Carneno
Team Player
Joined: 19 Apr 11 Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 Apr 11 at 10:51PM |
|
Hello Rowan. Thanks again for helping on yet another issue.
I don't think the DrawHTMLTextBox will help. I would have to count the spaces between words and then fill those spaces with the   tags.
This text is spaced out the way it is so that it overlays a preprinted form without printing over the preprinted areas.
I did try the DrawSpacedText and that did not work.
Thanks,
Tony
|
|
|
Stop The World, I want To Get Off.
|
|
![]() |
|
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