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 - Drawing Courier font text loses spaces
  FAQ FAQ  Forum Search   Register Register  Login Login

Drawing Courier font text loses spaces

 Post Reply Post Reply
Author
Message
Carneno View Drop Down
Team Player
Team Player
Avatar

Joined: 19 Apr 11
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Carneno Quote  Post ReplyReply Direct Link To This Post Topic: Drawing Courier font text loses spaces
    Posted: 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.
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Carneno View Drop Down
Team Player
Team Player
Avatar

Joined: 19 Apr 11
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Carneno Quote  Post ReplyReply Direct Link To This Post 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 &nbsp 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.
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